diff options
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a82d31d154c..d7d58bdcca6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -16,6 +16,9 @@ | |||
| 16 | 16 | ||
| 17 | 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca> | 17 | 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca> |
| 18 | 18 | ||
| 19 | * progmodes/compile.el (compilation-error-regexp-alist-alist) <gnu>: | ||
| 20 | Rule out trailing spaces in file and directory names as well. | ||
| 21 | |||
| 19 | * minibuffer.el (completion--do-completion): Move point even if the | 22 | * minibuffer.el (completion--do-completion): Move point even if the |
| 20 | completion makes no change. | 23 | completion makes no change. |
| 21 | (completion-pcm-try-completion): Fix computation of new point. | 24 | (completion-pcm-try-completion): Fix computation of new point. |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 455a6ae21f9..2f5f329d0b1 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -237,8 +237,13 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) | |||
| 237 | ;; times of the form "HH:MM:SS" where MM is taken as a line number, so | 237 | ;; times of the form "HH:MM:SS" where MM is taken as a line number, so |
| 238 | ;; the last line tries to rule out message where the info after the | 238 | ;; the last line tries to rule out message where the info after the |
| 239 | ;; line number starts with "SS". --Stef | 239 | ;; line number starts with "SS". --Stef |
| 240 | |||
| 241 | ;; The core of the regexp is the one with *?. It says that a file name | ||
| 242 | ;; can be composed of any non-newline char, but it also rules out some | ||
| 243 | ;; valid but unlikely cases, such as a trailing space or a space | ||
| 244 | ;; followed by a -. | ||
| 240 | "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\)?\ | 245 | "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\)?\ |
| 241 | \\([0-9]*[^0-9\n]\\(?:[^\n ]\\| [^-\n]\\)*?\\): ?\ | 246 | \\([0-9]*[^0-9\n]\\(?:[^\n ]\\| [^-/\n]\\)*?\\): ?\ |
| 242 | \\([0-9]+\\)\\(?:\\([.:]\\)\\([0-9]+\\)\\)?\ | 247 | \\([0-9]+\\)\\(?:\\([.:]\\)\\([0-9]+\\)\\)?\ |
| 243 | \\(?:-\\([0-9]+\\)?\\(?:\\3\\([0-9]+\\)\\)?\\)?:\ | 248 | \\(?:-\\([0-9]+\\)?\\(?:\\3\\([0-9]+\\)\\)?\\)?:\ |
| 244 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ | 249 | \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ |