[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compilation mode highlighting wrong for filenames with spaces
From: |
Drew Adams |
Subject: |
compilation mode highlighting wrong for filenames with spaces |
Date: |
Sat, 20 Nov 2004 09:21:42 -0800 |
This is either a bug report or an enhancement request, depending on
how you look at it.
emacs -q
`M-x grep' in a directory that has files with names containing
spaces. Here's a sample output line:
Copy (3) of info+.el:45:;; foobar...
The file name is "Copy (3) of info+.el" (this is very common in
Windows, BTW). The highlighted "file name" according to grep/compile
is just "Copy". The number "3" is highlighted as if it were the
grep-hit line number. Nothing else on the line is highlighted. So,
both the file name and the line number are incorrectly highlighted.
The culpable code is in the defvar of
compilation-mode-font-lock-keywords in file compile.el:
;; Command output lines. Recognize `make[n]:' lines too.
("^\\([[:alnum:]_/.+-]+\\)\\(\\[\\([0-9]+\\)\\]\\)?[ \t]*:"
(1 font-lock-function-name-face) (3 compilation-line-face nil t))
In GNU Emacs 21.3.50.1 (i386-mingw-nt5.1.2600)
of 2004-07-26 on BERATUNG4
configured using `configure --with-gcc
(3.3) --cflags -I../../jpeg-6b-1/include -I../../libpng-1.2.4-1/include -I..
/../tiff-3.5.7/include -I../../xpm-nox-4.2.0/include -I../../zlib-1.1.4-1/in
clude'
- compilation mode highlighting wrong for filenames with spaces,
Drew Adams <=