Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
bb6da2f8
Commit
bb6da2f8
authored
Apr 30, 2008
by
Stefan Monnier
Browse files
(compilation-error-regexp-alist-alist) <gnu>:
Rule out trailing spaces in file and directory names as well.
parent
2a54a229
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/progmodes/compile.el
lisp/progmodes/compile.el
+6
-1
No files found.
lisp/ChangeLog
View file @
bb6da2f8
...
...
@@ -16,6 +16,9 @@
2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/compile.el (compilation-error-regexp-alist-alist) <gnu>:
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.
...
...
lisp/progmodes/compile.el
View file @
bb6da2f8
...
...
@@ -237,8 +237,13 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
;; 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:\\
)
\\|\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment