From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [ozymandias.dk@gmail.com: 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, 03 Aug 2007 18:02:11 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1186178581 15758 80.91.229.12 (3 Aug 2007 22:03:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Aug 2007 22:03:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 04 00:02:59 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IH5EL-0006qx-4p for ged-emacs-devel@m.gmane.org; Sat, 04 Aug 2007 00:02:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IH5EJ-0005jx-HN for ged-emacs-devel@m.gmane.org; Fri, 03 Aug 2007 18:02:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IH5Bu-0003SV-US for emacs-devel@gnu.org; Fri, 03 Aug 2007 18:00:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IH5Bt-0003PA-3Z for emacs-devel@gnu.org; Fri, 03 Aug 2007 18:00:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IH5Bs-0003Oo-UR for emacs-devel@gnu.org; Fri, 03 Aug 2007 18:00:13 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IH5Bh-0000NI-06 for emacs-devel@gnu.org; Fri, 03 Aug 2007 18:00:01 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IH5Dn-0008En-9i; Fri, 03 Aug 2007 18:02:11 -0400 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76013 Archived-At: Would someone please DTRT, then ack? ------- Start of forwarded message ------- X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=failed version=3.1.0 DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=kU2F8BG+JXLdwFum4x3UH5HPzeVdiFYCs4Y/ctk/WUub4cn/bDtJhNJI4cT6ZRgtyIrSUQg6WWegDftxZovJS/hsN659Fq14PY5lJ/BLnX1VkFF+NMnrXuT1rKp+cJ6hxeNVw3EkAZ7BORDvx8GX4wtSNc1NQSZE+GAI53wcVUE= Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; format=flowed To: bug-gnu-emacs@gnu.org From: Vagn Johansen Date: Fri, 3 Aug 2007 14:13:21 +0200 Subject: compile/grep: When directory tracking is used then next-error fails to go to the correct file when the basename was seen before. 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 _______________________________________________ bug-gnu-emacs mailing list bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs ------- End of forwarded message -------