diff options
| author | João Távora | 2017-09-19 14:25:34 +0100 |
|---|---|---|
| committer | João Távora | 2017-10-03 13:52:24 +0100 |
| commit | 734aa8818d2916f2fe2eb9fe4add66255379b938 (patch) | |
| tree | 0ab5e0c9606a2dab8a160e0fd352f632ce66c852 | |
| parent | ae64bf12a865d5d40b7541af0da9b971936994ec (diff) | |
| download | emacs-734aa8818d2916f2fe2eb9fe4add66255379b938.tar.gz emacs-734aa8818d2916f2fe2eb9fe4add66255379b938.zip | |
Flymake's flymake-proc.el parses column numbers from gcc/javac errors
Column numbers are not a great way of marking diagnostic regions, but
that's probably all that can be expected from the flymake-proc.el
backend. For now, try (end-of-thing 'sexp) to discover the
diagnostic's end position.
* lisp/progmodes/flymake-proc.el ()
(flymake-proc-err-line-patterns): Also parse column numbers,
if available, for gcc/javac warnings.
| -rw-r--r-- | lisp/progmodes/flymake-proc.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/flymake-proc.el b/lisp/progmodes/flymake-proc.el index abda259e898..dd6bf501733 100644 --- a/lisp/progmodes/flymake-proc.el +++ b/lisp/progmodes/flymake-proc.el | |||
| @@ -558,8 +558,8 @@ Convert it to flymake internal format." | |||
| 558 | ("\\(?:Parse\\|Fatal\\) error: \\(.*\\) in \\(.*\\) on line \\([0-9]+\\)" 2 3 nil 1) | 558 | ("\\(?:Parse\\|Fatal\\) error: \\(.*\\) in \\(.*\\) on line \\([0-9]+\\)" 2 3 nil 1) |
| 559 | ;; LaTeX warnings (fileless) ("\\(LaTeX \\(Warning\\|Error\\): .*\\) on input line \\([0-9]+\\)" 20 3 nil 1) | 559 | ;; LaTeX warnings (fileless) ("\\(LaTeX \\(Warning\\|Error\\): .*\\) on input line \\([0-9]+\\)" 20 3 nil 1) |
| 560 | ;; ant/javac. Note this also matches gcc warnings! | 560 | ;; ant/javac. Note this also matches gcc warnings! |
| 561 | (" *\\(\\[javac\\] *\\)?\\(\\([a-zA-Z]:\\)?[^:(\t\n]+\\):\\([0-9]+\\)\\(?::[0-9]+\\)?:[ \t\n]*\\(.+\\)" | 561 | (" *\\(\\[javac\\] *\\)?\\(\\([a-zA-Z]:\\)?[^:(\t\n]+\\):\\([0-9]+\\)\\(?::\\([0-9]+\\)\\)?:[ \t\n]*\\(.+\\)" |
| 562 | 2 4 nil 5)) | 562 | 2 4 5 6)) |
| 563 | ;; compilation-error-regexp-alist) | 563 | ;; compilation-error-regexp-alist) |
| 564 | (flymake-proc-reformat-err-line-patterns-from-compile-el compilation-error-regexp-alist-alist)) | 564 | (flymake-proc-reformat-err-line-patterns-from-compile-el compilation-error-regexp-alist-alist)) |
| 565 | "Patterns for matching error/warning lines. Each pattern has the form | 565 | "Patterns for matching error/warning lines. Each pattern has the form |