Subject: Compilation mode: file positions incorrectly identified

From: Ulrich Neumerkel <[email-masked]>
Date: Sat, 31 May 2008 01:38:14 +0200

--text follows this line--

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email-masked] mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

emacs -Q

M-x compile echo % /etc/issue:1:1

(So in stead of doing a real make with real errors, I have just issued
an echo to simulate actual error messages.  See also the recent keys
below that contain all keys typed.)

The compilation buffer now contains incorrectly highlighted (red)
text. Not only the file name, but also the % is highlighted red.  When
typing C-c C-c (compile-goto-error) on that highlighted text I get the
prompt (not shown in *Messages* below):

   Find this error in (default % /etc/issue):

The file name "% /etc/issue" is considered in stead of /etc/issue.

This problem occurs when using the plunit-package in SWI-Prolog. For
all intents and purposes there is no way to resolve this on the side
of SWI by changing the actual message format - this is intimately
mingled to the widely used (almost standard) error-reporting mechanism
in Prolog.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/opt/gupu/share/emacs/22.2/etc/DEBUG for instructions.

In GNU Emacs 22.2.1 (i686-pc-linux-gnu, X toolkit)
 of 2008-05-28 on gupu.complang.tuwien.ac.at
Windowing system distributor `The XFree86 Project, Inc', version 11.0.4003
configured using `configure  '--without-toolkit-scroll-bars' '--prefix' '/opt/gupu' '--with-git=no''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  locale-coding-system: iso-8859-1
  default-enable-multibyte-characters: t

Major mode: Compilation

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
M-x c o m p i l e <return> <M-backspace> <M-backspace> 
e c h o SPC % SPC / e t c / i s s u e : 1 : 1 <return> 
C-x o <down> <down> <down> <down> C-c C-c C-g <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu> 
<send-emacs-bug-report>

Recent messages:
("emacs" "-Q")
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading compile...done
(No files need saving)
Mark set
Quit
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done