From unknown Sat Sep 06 20:03:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11881: 23.3; m-! pwd shows true path but dired buffer shows symbol linked path Resent-From: Aeron Wang Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jul 2012 23:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11881 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11881@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.134179112325358 (code B ref -1); Sun, 08 Jul 2012 23:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jul 2012 23:45:23 +0000 Received: from localhost ([127.0.0.1]:57128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1So1AI-0006av-Dt for submit@debbugs.gnu.org; Sun, 08 Jul 2012 19:45:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34813) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SnzxX-0004t1-Oa for submit@debbugs.gnu.org; Sun, 08 Jul 2012 18:28:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnzsU-00006B-2N for submit@debbugs.gnu.org; Sun, 08 Jul 2012 18:22:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnzsT-000066-Sk for submit@debbugs.gnu.org; Sun, 08 Jul 2012 18:22:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnzsR-0001Nb-Ju for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 18:22:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnzsO-00005b-Nt for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 18:22:51 -0400 Received: from mail-gg0-f169.google.com ([209.85.161.169]:47327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnzsO-00005P-FJ for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 18:22:48 -0400 Received: by ggm4 with SMTP id 4so11097484ggm.0 for ; Sun, 08 Jul 2012 15:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=xwO5TNGDrTq5epDH7LEvVsFGvn2pfsjTucZSvaFHpxY=; b=or9hPLXijWnm6OXcoaSJCwlGPxVZyzUGsq0uvIwU4lLbQMkB35CE3DFHx69dz571ID 6/skXQcR5yeXCjVgkYjPFeuJgEVfDJL1gzjO742stDMHqcLPtAgkbkcfnX3yoTk2/oDh nuX4qVCoExnxnda15oJvPS2AJdMCieqedsqrCrTk41nNkwR19Xeq7hcP4oIghWfuqksy yBKTyPaPZkh4WjpD/aITWiZuLaN98/Kk38OYRRZ+U6P3hEf/0IKyxCDiRoBetgfLW5gX K9wnW0WpxjjONCzMUsL++qCqQVJljy4Y7+iRW/kWfbYUBe4umDvow59BCvCosI5t57jt EPSg== Received: by 10.42.154.199 with SMTP id r7mr19208186icw.55.1341786166333; Sun, 08 Jul 2012 15:22:46 -0700 (PDT) Received: from hlnx (bas4-toronto21-2925505063.dsl.bell.ca. [174.95.170.39]) by mx.google.com with ESMTPS id if4sm7648731igc.10.2012.07.08.15.22.45 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 Jul 2012 15:22:45 -0700 (PDT) From: Aeron Wang Date: Sun, 08 Jul 2012 18:24:31 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Mailman-Approved-At: Sun, 08 Jul 2012 19:45:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your report will be posted to the bug-gnu-emacs@gnu.org mailing list and the gnu.emacs.bug news group, and at http://debbugs.gnu.org. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': This is quite strange! and happened only occationally! I send this bug report from the buffer happenly has the problem. This is my journal of play with this problem... although nothing can stop this problem, and I also not sure what caused it... but must be Emacs, not shell. > === notes begin === * TODO 20120708/7 in dired buf, do m-! pwd, or bash -c pwd, got absolute path, not the linked one. when click S tabbar link to open Esession file: edebug on file-truename: access-file("/tse_home/awang/myapp/GTAGS" "Reading directory") insert-directory("/tse_home/awang/myapp/GTAGS" "--dired -alh" t nil) dired-insert-directory("/tse_home/awang/myapp/GTAGS" "-alh" nil t t) dired-readin-insert() dired-readin() (dired "~/myapp/GTAGS") --> some times it fails --> true.. actually no such dir at all! (dired "/tse_home/awang/myapp/") --> this works (dired "/tse_home/awang/myapp/emacs.data/GTAGS") --> this ok (dired "~/myapp/emacs.data/GTAGS") checked: set -o --> no pysical set shopt --> nothing special find-file-visit-truename --> nil find-file-existing-other-name --> nil looks like the real dir is absolute, since: m-! pwd -L also shows absolute one. echo $PWD also absolute one. but default-directory and dired-directory is relatiev one. - also, c-cs *shell* is also shows at absolute path! in *shell*, cd to linked path, do c-xc-f to show dired buf, it's still m-! pwd showing absolute! and: ELISP> (file-truename "~/mycvs/delme") --> ie file-truename already gone. "~/mycvs/delme" did: (defun file-truename (f) (message "true called on '%s'" f) f) the same behavior even it's called. even this the same behavior: ELISP> (unload-feature 'dired t) nil ELISP> (unload-feature 'dired-aux t) nil ELISP> (unload-feature 'dired-x t) nil then --> ELISP> (require 'dired) dired ELISP> (require 'dired-x) dired-x ELISP> (require 'dired-aux) dired-aux ELISP> (require 'files) files ELISP> (dired "~/myapp/") # --> still m-! pwd, giving absolute path! did 'shell and 'comint; the same. strange! strange! no idea!!! chk src on absolute: directory-files directory-files-and-attributes ELISP> (expand-file-name "~/mycvs/delme") "/tse_home/awang/mycvs/delme" ELISP> (file-name-absolute-p "~/mycvs/delme") t ok.. looks absolute is not that... search file_truename: buffer-file-truename is nil even did this, the same: ELISP> (defadvice file-truename (around any-my-name-advice (f) activate compile) (let () (message "true called on '%s'" f) f )) file-truename even in IELM buf, c-cd to it frm delme3 dired, do m-! pwd, still got: /mnt/wk1/mycvs/delme3 vc-follow-symlinks nil --> even set to 'ask, the same. vc-hooks.el: (vc-follow-link) you do not need to debug bash or pwd, since the dir is really at /mnt/wk1/mycvs/delme3. the issue is: why dired get there??? when *msg* current, m-! cd ~/mycvs;pwd ==> /tse_home/awang/mycvs so looks it's an emacs issue. when *dired* current, do above got true path. ie looks dired goes to true path but it still shows symlink path. del all bufs and do: (dired "~/mycvs"), and m-! pwd, still got /mnt/wk1/.. frm that buf, did report-emacs-bug and looks email sent out > === end notes === 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'. For information about debugging Emacs, please read the file /common/dev/awang/myapp/emacs233a/share/emacs/23.3/etc/DEBUG. In GNU Emacs 23.3.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2011-11-18 on lnx Windowing system distributor `The X.Org Foundation', version 11.0.60802000 configured using `configure 'CFLAGS= -g3 -O0' '--prefix=/common/dev/awang/myapp/emacs233a'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: en_US.utf-8 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.utf-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: shell-dirtrack-mode: t orgstruct-mode: t text-scale-mode: t Recent input: M-: ( C-y SPC - 1 ) M-: ( C-y SPC - 1 ) C-c N C-y M-% : SPC t ! M-< ( p C-M-% ^ ( ! \ C-x r k C-M-% $ SPC - 1 ) ! ) M-< C-p ( p r o g n C-x C-e M-< M-< M-< C-n C-p C-n C-M-% . * C-b C-b ( i n g g n o r e - e r r o r s SPC \ & ) y ! M-< M-< M-< C-x C-e M-: M-p M-p M-p M-r d i r e d ( C-e M-b C-b C-k SPC " ~ / m y c v s " ) M-: M-! p w d M-x M-p Recent messages: force to be writable Replaced 19 occurrences Replaced 20 occurrences true called on '/tse_home/awang/myapp/emacs.data/GTAGS/emacs.el/emacs/lisp/rect.elc' Replaced 19 occurrences Entering debugger... Replaced 19 occurrences nil # /mnt/wk1/mycvs Load-path shadows: From unknown Sat Sep 06 20:03:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11881: 23.3; m-! pwd shows true path but dired buffer shows symbol linked path Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jul 2012 06:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11881 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Aeron Wang Cc: 11881@debbugs.gnu.org Received: via spool by 11881-submit@debbugs.gnu.org id=B11881.13418170973951 (code B ref 11881); Mon, 09 Jul 2012 06:59:01 +0000 Received: (at 11881) by debbugs.gnu.org; 9 Jul 2012 06:58:17 +0000 Received: from localhost ([127.0.0.1]:57365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1So7vA-00011Z-Ii for submit@debbugs.gnu.org; Mon, 09 Jul 2012 02:58:15 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:60373) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1So7v7-00011R-Qk for 11881@debbugs.gnu.org; Mon, 09 Jul 2012 02:58:11 -0400 Received: from frontend4.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3WVy1r2mgHz3hhZQ; Mon, 9 Jul 2012 08:53:52 +0200 (CEST) Received: from igel.home (ppp-88-217-126-222.dynamic.mnet-online.de [88.217.126.222]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WVy0l1bSyzbbhx; Mon, 9 Jul 2012 08:52:55 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id AC669CA2A2; Mon, 9 Jul 2012 08:52:54 +0200 (CEST) From: Andreas Schwab References: X-Yow: I'd like some JUNK FOOD... and then I want to be ALONE -- Date: Mon, 09 Jul 2012 08:52:54 +0200 In-Reply-To: (Aeron Wang's message of "Sun, 08 Jul 2012 18:24:31 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Aeron Wang writes: > did: > (defun file-truename (f) (message "true called on '%s'" f) f) Why? This is not a valid definition for file-truename. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Sat Sep 06 20:03:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Aeron Wang Subject: bug#11881: closed (Re: bug#11881: 23.3; m-! pwd shows true path but dired buffer shows symbol linked path) Message-ID: References: <87o8xxlonx.fsf@gmail.com> X-Gnu-PR-Message: they-closed 11881 X-Gnu-PR-Package: emacs Reply-To: 11881@debbugs.gnu.org Date: Thu, 31 Oct 2019 14:36:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1572532563-30021-1" This is a multi-part message in MIME format... ------------=_1572532563-30021-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11881: 23.3; m-! pwd shows true path but dired buffer shows symbol linked = path which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11881@debbugs.gnu.org. --=20 11881: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11881 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1572532563-30021-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11881-done) by debbugs.gnu.org; 31 Oct 2019 14:35:31 +0000 Received: from localhost ([127.0.0.1]:53994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQBXs-0007mW-KI for submit@debbugs.gnu.org; Thu, 31 Oct 2019 10:35:30 -0400 Received: from giraff.fripost.org ([193.234.15.44]:43410 helo=outgoing.fripost.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQ3ql-0004Ok-9J for 11881-done@debbugs.gnu.org; Thu, 31 Oct 2019 02:22:27 -0400 Received: from localhost (localhost [127.0.0.1]) by outgoing.fripost.org (Postfix) with ESMTP id 7AC0B187F9DD; Thu, 31 Oct 2019 07:22:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=x.fripost.org; h= date:date:message-id:in-reply-to:references:subject:subject:from :from; s=9df9cdc7e101629b5003b587945afa70; t=1572502941; x= 1574317342; bh=MLoYcktJ/MCn1aOFlCLo/m6SbHuvSJ6/8fAufyZiphA=; b=Z 1+wuzSrm09H6mCYUUsWiDicHIwr/Vai72P/HzhfjulS8LTHi6C9hNX/MA4t3F2J9 pTH6olL4hJuiuOJBkln5/n7x4jiiaDszArdyDM3tVsLGt0YOWiaWM8MkhekHzI56 toxwPPLwOevzn4KILYZhzq362fDEpH51rj5e+q4hSsbzcHdTXjTS20ftlnMyolIg VaJophYZp3ZrQOpljISYFSmMIacGdWgSk89aNThuKBOK3QmGoDtQbsQOuOUvNIdW cHCQDvw6F+tlZeXZ2j9BeD6C3NUEfCly7Nw9AyoYVfPuVikomjas52S7GM8FpXYM Bvag/qyWQz/TtNPJOikzQ== X-Virus-Scanned: Debian amavisd-new at fripost.org Received: from outgoing.fripost.org ([127.0.0.1]) by localhost (giraff.fripost.org [127.0.0.1]) (amavisd-new, port 10040) with LMTP id yJ-b-Sr4-7_X; Thu, 31 Oct 2019 07:22:21 +0100 (CET) Received: from smtp.fripost.org (unknown [172.16.0.6]) by outgoing.fripost.org (Postfix) with ESMTP id 5D517187F9D9; Thu, 31 Oct 2019 07:22:21 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by smtp.fripost.org (Postfix) with ESMTPSA id 0ACF059A2889; Thu, 31 Oct 2019 07:22:03 +0100 (CET) Received: from skangas by joffe.skangas.se with local (Exim 4.92) (envelope-from ) id 1iQ3qN-00022A-4E; Thu, 31 Oct 2019 07:22:03 +0100 From: Stefan Kangas To: Andreas Schwab Subject: Re: bug#11881: 23.3; m-! pwd shows true path but dired buffer shows symbol linked path References: In-Reply-To: (Andreas Schwab's message of "Mon, 09 Jul 2012 08:52:54 +0200") Message-ID: <87o8xxlonx.fsf@gmail.com> Date: Thu, 31 Oct 2019 07:22:03 +0100 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 11881-done X-Mailman-Approved-At: Thu, 31 Oct 2019 10:35:27 -0400 Cc: 11881-done@debbugs.gnu.org, Aeron Wang X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Andreas Schwab writes: > Aeron Wang writes: > >> did: >> (defun file-truename (f) (message "true called on '%s'" f) f) > > Why? This is not a valid definition for file-truename. More information was requested, but none was given within 7 years, so I'm closing this bug. If this is still an issue, please reopen the bug report. Best regards, Stefan Kangas ------------=_1572532563-30021-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Jul 2012 23:45:23 +0000 Received: from localhost ([127.0.0.1]:57128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1So1AI-0006av-Dt for submit@debbugs.gnu.org; Sun, 08 Jul 2012 19:45:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34813) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SnzxX-0004t1-Oa for submit@debbugs.gnu.org; Sun, 08 Jul 2012 18:28:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnzsU-00006B-2N for submit@debbugs.gnu.org; Sun, 08 Jul 2012 18:22:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnzsT-000066-Sk for submit@debbugs.gnu.org; Sun, 08 Jul 2012 18:22:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnzsR-0001Nb-Ju for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 18:22:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnzsO-00005b-Nt for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 18:22:51 -0400 Received: from mail-gg0-f169.google.com ([209.85.161.169]:47327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnzsO-00005P-FJ for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 18:22:48 -0400 Received: by ggm4 with SMTP id 4so11097484ggm.0 for ; Sun, 08 Jul 2012 15:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=xwO5TNGDrTq5epDH7LEvVsFGvn2pfsjTucZSvaFHpxY=; b=or9hPLXijWnm6OXcoaSJCwlGPxVZyzUGsq0uvIwU4lLbQMkB35CE3DFHx69dz571ID 6/skXQcR5yeXCjVgkYjPFeuJgEVfDJL1gzjO742stDMHqcLPtAgkbkcfnX3yoTk2/oDh nuX4qVCoExnxnda15oJvPS2AJdMCieqedsqrCrTk41nNkwR19Xeq7hcP4oIghWfuqksy yBKTyPaPZkh4WjpD/aITWiZuLaN98/Kk38OYRRZ+U6P3hEf/0IKyxCDiRoBetgfLW5gX K9wnW0WpxjjONCzMUsL++qCqQVJljy4Y7+iRW/kWfbYUBe4umDvow59BCvCosI5t57jt EPSg== Received: by 10.42.154.199 with SMTP id r7mr19208186icw.55.1341786166333; Sun, 08 Jul 2012 15:22:46 -0700 (PDT) Received: from hlnx (bas4-toronto21-2925505063.dsl.bell.ca. [174.95.170.39]) by mx.google.com with ESMTPS id if4sm7648731igc.10.2012.07.08.15.22.45 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 Jul 2012 15:22:45 -0700 (PDT) From: Aeron Wang To: bug-gnu-emacs@gnu.org Subject: 23.3; m-! pwd shows true path but dired buffer shows symbol linked path Date: Sun, 08 Jul 2012 18:24:31 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 08 Jul 2012 19:45:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your report will be posted to the bug-gnu-emacs@gnu.org mailing list and the gnu.emacs.bug news group, and at http://debbugs.gnu.org. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': This is quite strange! and happened only occationally! I send this bug report from the buffer happenly has the problem. This is my journal of play with this problem... although nothing can stop this problem, and I also not sure what caused it... but must be Emacs, not shell. > === notes begin === * TODO 20120708/7 in dired buf, do m-! pwd, or bash -c pwd, got absolute path, not the linked one. when click S tabbar link to open Esession file: edebug on file-truename: access-file("/tse_home/awang/myapp/GTAGS" "Reading directory") insert-directory("/tse_home/awang/myapp/GTAGS" "--dired -alh" t nil) dired-insert-directory("/tse_home/awang/myapp/GTAGS" "-alh" nil t t) dired-readin-insert() dired-readin() (dired "~/myapp/GTAGS") --> some times it fails --> true.. actually no such dir at all! (dired "/tse_home/awang/myapp/") --> this works (dired "/tse_home/awang/myapp/emacs.data/GTAGS") --> this ok (dired "~/myapp/emacs.data/GTAGS") checked: set -o --> no pysical set shopt --> nothing special find-file-visit-truename --> nil find-file-existing-other-name --> nil looks like the real dir is absolute, since: m-! pwd -L also shows absolute one. echo $PWD also absolute one. but default-directory and dired-directory is relatiev one. - also, c-cs *shell* is also shows at absolute path! in *shell*, cd to linked path, do c-xc-f to show dired buf, it's still m-! pwd showing absolute! and: ELISP> (file-truename "~/mycvs/delme") --> ie file-truename already gone. "~/mycvs/delme" did: (defun file-truename (f) (message "true called on '%s'" f) f) the same behavior even it's called. even this the same behavior: ELISP> (unload-feature 'dired t) nil ELISP> (unload-feature 'dired-aux t) nil ELISP> (unload-feature 'dired-x t) nil then --> ELISP> (require 'dired) dired ELISP> (require 'dired-x) dired-x ELISP> (require 'dired-aux) dired-aux ELISP> (require 'files) files ELISP> (dired "~/myapp/") # --> still m-! pwd, giving absolute path! did 'shell and 'comint; the same. strange! strange! no idea!!! chk src on absolute: directory-files directory-files-and-attributes ELISP> (expand-file-name "~/mycvs/delme") "/tse_home/awang/mycvs/delme" ELISP> (file-name-absolute-p "~/mycvs/delme") t ok.. looks absolute is not that... search file_truename: buffer-file-truename is nil even did this, the same: ELISP> (defadvice file-truename (around any-my-name-advice (f) activate compile) (let () (message "true called on '%s'" f) f )) file-truename even in IELM buf, c-cd to it frm delme3 dired, do m-! pwd, still got: /mnt/wk1/mycvs/delme3 vc-follow-symlinks nil --> even set to 'ask, the same. vc-hooks.el: (vc-follow-link) you do not need to debug bash or pwd, since the dir is really at /mnt/wk1/mycvs/delme3. the issue is: why dired get there??? when *msg* current, m-! cd ~/mycvs;pwd ==> /tse_home/awang/mycvs so looks it's an emacs issue. when *dired* current, do above got true path. ie looks dired goes to true path but it still shows symlink path. del all bufs and do: (dired "~/mycvs"), and m-! pwd, still got /mnt/wk1/.. frm that buf, did report-emacs-bug and looks email sent out > === end notes === 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'. For information about debugging Emacs, please read the file /common/dev/awang/myapp/emacs233a/share/emacs/23.3/etc/DEBUG. In GNU Emacs 23.3.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2011-11-18 on lnx Windowing system distributor `The X.Org Foundation', version 11.0.60802000 configured using `configure 'CFLAGS= -g3 -O0' '--prefix=/common/dev/awang/myapp/emacs233a'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: en_US.utf-8 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.utf-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: shell-dirtrack-mode: t orgstruct-mode: t text-scale-mode: t Recent input: M-: ( C-y SPC - 1 ) M-: ( C-y SPC - 1 ) C-c N C-y M-% : SPC t ! M-< ( p C-M-% ^ ( ! \ C-x r k C-M-% $ SPC - 1 ) ! ) M-< C-p ( p r o g n C-x C-e M-< M-< M-< C-n C-p C-n C-M-% . * C-b C-b ( i n g g n o r e - e r r o r s SPC \ & ) y ! M-< M-< M-< C-x C-e M-: M-p M-p M-p M-r d i r e d ( C-e M-b C-b C-k SPC " ~ / m y c v s " ) M-: M-! p w d M-x M-p Recent messages: force to be writable Replaced 19 occurrences Replaced 20 occurrences true called on '/tse_home/awang/myapp/emacs.data/GTAGS/emacs.el/emacs/lisp/rect.elc' Replaced 19 occurrences Entering debugger... Replaced 19 occurrences nil # /mnt/wk1/mycvs Load-path shadows: ------------=_1572532563-30021-1--