# HG changeset patch # User Stefan Monnier # Date 1209543140 0 # Node ID 07fb6a1d52337c15f6f20c71a394f188f33aa7ff # Parent 41892e1c80a18af1ab8e020b53a505fdfef0f7cd (compilation-error-regexp-alist-alist) : Rule out trailing spaces in file and directory names as well. diff -r 41892e1c80a1 -r 07fb6a1d5233 lisp/ChangeLog --- a/lisp/ChangeLog Wed Apr 30 07:16:08 2008 +0000 +++ b/lisp/ChangeLog Wed Apr 30 08:12:20 2008 +0000 @@ -16,6 +16,9 @@ 2008-04-30 Stefan Monnier + * progmodes/compile.el (compilation-error-regexp-alist-alist) : + Rule out trailing spaces in file and directory names as well. + * minibuffer.el (completion--do-completion): Move point even if the completion makes no change. (completion-pcm-try-completion): Fix computation of new point. diff -r 41892e1c80a1 -r 07fb6a1d5233 lisp/progmodes/compile.el --- a/lisp/progmodes/compile.el Wed Apr 30 07:16:08 2008 +0000 +++ b/lisp/progmodes/compile.el Wed Apr 30 08:12:20 2008 +0000 @@ -237,8 +237,13 @@ ;; times of the form "HH:MM:SS" where MM is taken as a line number, so ;; the last line tries to rule out message where the info after the ;; line number starts with "SS". --Stef + + ;; The core of the regexp is the one with *?. It says that a file name + ;; can be composed of any non-newline char, but it also rules out some + ;; valid but unlikely cases, such as a trailing space or a space + ;; followed by a -. "^\\(?:[[:alpha:]][-[:alnum:].]+: ?\\)?\ -\\([0-9]*[^0-9\n]\\(?:[^\n ]\\| [^-\n]\\)*?\\): ?\ +\\([0-9]*[^0-9\n]\\(?:[^\n ]\\| [^-/\n]\\)*?\\): ?\ \\([0-9]+\\)\\(?:\\([.:]\\)\\([0-9]+\\)\\)?\ \\(?:-\\([0-9]+\\)?\\(?:\\3\\([0-9]+\\)\\)?\\)?:\ \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\