From f9b40d95c7753041c57d0de428382545fbf2b41d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jostein=20Kj=C3=B8nigsen?= Date: Sun, 20 Sep 2015 09:39:50 +0200 Subject: [PATCH] Emacs: compilation-mode fixes. It's common for Emacs-lisp module-developers to run Emacs byte-compilation in separate build-scripts. When invoking byte-compile on Emacs-lisp files you often get headers like: - In toplevel form: - In end of data: When these errors show up in the output of a build-script initiated through M-x compile and show up in a compilation-mode buffer, these lines gets treated as guile-errors for files with the respective names "toplevel form" and "end of data". This breaks prev-error and next-error based navigation. This patch fixes this by doing the following modifications: - Make guile-file only trigger on Scheme-files. - Reduce severity from error to warning. --- lisp/progmodes/compile.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index f9c097e..27a3833 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -477,7 +477,9 @@ File = \\(.+\\), Line = \\([0-9]+\\)\\(?:, Column = \\([0-9]+\\)\\)?" ;; "^\\([^ \t\r\n(]+\\) (\\([0-9]+\\):\\([0-9]+\\)) " 1 2 3) - (guile-file "^In \\(.+\\):\n" 1) + + ;; file-entries does not have to be errors, treat as info. + (guile-file "^In \\(.+\\.scm\\):\n" 1 nil nil 0) (guile-line "^ *\\([0-9]+\\): *\\([0-9]+\\)" nil 1 2) ) "Alist of values for `compilation-error-regexp-alist'.") -- 1.9.1