[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compile/grep: When directory tracking is used then next-error fails to g
From: |
Vagn Johansen |
Subject: |
compile/grep: When directory tracking is used then next-error fails to go to the correct file when the basename was seen before. |
Date: |
Fri, 3 Aug 2007 14:13:21 +0200 |
The problem occurs occurs when compiling or grepping. After running
the compile command that gave the output seen below then running
next-error four times only visits dir1/file.cpp. The third next-error
should have opened dir2/file.cpp. The problem occurs because the same
filename (basename) file.cpp is used in the two directories.
make -w -C dir1; make -w -C dir2
make: Entering directory `/Users/vagn/tmp/dir1'
g++ -Wall file.cpp
file.cpp: In function 'int main(int, char**)':
file.cpp:5: warning: unused variable 'xx1'
file.cpp:6: warning: unused variable 'xx2'
make: Leaving directory `/Users/vagn/tmp/dir1'
make: Entering directory `/Users/vagn/tmp/dir2'
g++ -Wall file.cpp
file.cpp: In function 'int main(int, char**)':
file.cpp:5: warning: unused variable 'yy'
file.cpp:6: warning: unused variable 'yy2'
make: Leaving directory `/Users/vagn/tmp/dir2'
In GNU Emacs 22.1.1 (i386-apple-darwin8.9.1, Carbon Version 1.6.0)
of 2007-06-15 on vj-mac.local
Windowing system distributor `Apple Inc.', version 10.4.10
configured using `configure '--enable-carbon-app''
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: nil
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
Major mode: C++/l
Minor modes in effect:
shell-dirtrack-mode: t
encoded-kbd-mode: t
show-paren-mode: t
minibuffer-electric-default-mode: t
iswitchb-mode: t
dir-locals-mode: t
display-time-mode: t
which-function-mode: t
recentf-mode: t
tooltip-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
abbrev-mode: t
hs-minor-mode: t
Recent messages:
compilation-next-error: Moved back before first error
compilation-next-error: Moved past last error
Mark set [2 times]
Wrote /Users/vagn/tmp/dir1/file.cpp
Mark set [3 times]
Auto-saving...done
Wrote /Users/vagn/tmp/dir2/file.cpp
(No files need saving)
Making completion list...
Loading emacsbug...done
--
Vagn Johansen
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- compile/grep: When directory tracking is used then next-error fails to go to the correct file when the basename was seen before.,
Vagn Johansen <=