GNU bug report logs - #11881
23.3; m-! pwd shows true path but dired buffer shows symbol linked path

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Aeron Wang <tmulus@HIDDEN>; dated Sun, 8 Jul 2012 23:46:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 11881 <at> debbugs.gnu.org:


Received: (at 11881) by debbugs.gnu.org; 9 Jul 2012 06:58:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 09 02:58:17 2012
Received: from localhost ([127.0.0.1]:57365 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1So7vA-00011Z-Ii
	for submit <at> 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 <whitebox@HIDDEN>) id 1So7v7-00011R-Qk
	for 11881 <at> 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 <schwab@HIDDEN>
To: Aeron Wang <tmulus@HIDDEN>
Subject: Re: bug#11881: 23.3;
	m-! pwd shows true path but dired buffer shows symbol linked path
References: <vjg629xgacg.fsf@HIDDEN>
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: <vjg629xgacg.fsf@HIDDEN> (Aeron Wang's message of "Sun, 08 Jul
	2012 18:24:31 -0400")
Message-ID: <m28vetcto9.fsf@HIDDEN>
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-Debbugs-Envelope-To: 11881
Cc: 11881 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

Aeron Wang <tmulus@HIDDEN> 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@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#11881; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Jul 2012 23:45:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 08 19:45:23 2012
Received: from localhost ([127.0.0.1]:57128 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1So1AI-0006av-Dt
	for submit <at> 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 <tmulus@HIDDEN>) id 1SnzxX-0004t1-Oa
	for submit <at> 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 <tmulus@HIDDEN>) id 1SnzsU-00006B-2N
	for submit <at> 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 <tmulus@HIDDEN>) id 1SnzsT-000066-Sk
	for submit <at> 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 <tmulus@HIDDEN>) id 1SnzsR-0001Nb-Ju
	for bug-gnu-emacs@HIDDEN; Sun, 08 Jul 2012 18:22:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tmulus@HIDDEN>) id 1SnzsO-00005b-Nt
	for bug-gnu-emacs@HIDDEN; 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 <tmulus@HIDDEN>) id 1SnzsO-00005P-FJ
	for bug-gnu-emacs@HIDDEN; Sun, 08 Jul 2012 18:22:48 -0400
Received: by ggm4 with SMTP id 4so11097484ggm.0
	for <bug-gnu-emacs@HIDDEN>; 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 <tmulus@HIDDEN>
To: bug-gnu-emacs@HIDDEN
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: <vjg629xgacg.fsf@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> 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@HIDDEN 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/")
#<buffer /tse_home/awang/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:
<down-mouse-1> <mouse-1> M-: ( C-y SPC - 1 ) <return> 
<help-echo> <help-echo> <down-mouse-5> <mouse-5> <down-mouse-5> 
<mouse-5> <down-mouse-1> <mouse-movement> <mouse-movement> 
<drag-mouse-1> M-: ( C-y SPC - 1 ) <return> <down-mouse-1> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<help-echo> <mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <help-echo> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <drag-mouse-1> C-c 
N C-y <help-echo> <down-mouse-4> <mouse-4> <down-mouse-4> 
<mouse-4> <down-mouse-4> <mouse-4> <down-mouse-1> <mouse-movement> 
<mouse-movement> <mouse-movement> <drag-mouse-1> M-% 
: SPC t <return> <return> ! M-< ( p <backspace> <backspace> 
C-M-% ^ <return> ( <return> ! \ <backspace> <backspace> 
<down-mouse-1> <mouse-movement> <mouse-movement> <drag-mouse-1> 
C-x r k <down-mouse-1> <mouse-movement> <mouse-movement> 
<drag-mouse-1> C-M-% $ <return> SPC - 1 ) <return> 
! <return> ) M-< <return> C-p ( p r o g n <down-mouse-1> 
<mouse-1> <down-mouse-1> <mouse-1> C-x C-e <help-echo> 
<help-echo> <help-echo> <down-mouse-5> <mouse-5> <down-mouse-5> 
<mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5> 
<double-mouse-5> <down-mouse-1> <mouse-1> <down-mouse-5> 
<mouse-5> <double-down-mouse-5> <double-mouse-5> <down-mouse-5> 
<mouse-5> <down-mouse-5> <mouse-5> <down-mouse-1> <mouse-1> 
<down-mouse-1> <mouse-movement> <mouse-movement> <drag-mouse-1> 
<down-mouse-1> <mouse-movement> <drag-mouse-1> <down-mouse-5> 
<mouse-5> <down-mouse-5> <mouse-5> <down-mouse-1> <mouse-1> 
<down> <down> <down> <down> <down> <down> <help-echo> 
<down-mouse-2> <mouse-2> <down-mouse-4> <mouse-4> <down-mouse-4> 
<mouse-4> <down-mouse-1> <mouse-1> M-< M-< M-< C-n 
C-p C-n <down-mouse-1> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <drag-mouse-1> C-M-% 
. * C-b C-b <return> ( i n g <backspace> <backspace> 
g n o r e - e r r o r s SPC \ & ) <return> y ! <down-mouse-4> 
<mouse-4> <down-mouse-4> <mouse-4> <down-mouse-4> <mouse-4> 
<down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <down-mouse-1> 
<mouse-1> M-< M-< M-< <down-mouse-1> <mouse-1> C-x 
C-e <down-mouse-1> <mouse-1> <double-down-mouse-1> 
<double-mouse-1> <help-echo> <down-mouse-1> <mouse-1> 
M-: M-p M-p M-p M-r d i r e d <return> ( C-e M-b C-b 
C-k SPC " ~ / m y c v s " ) <return> M-: M-! p w d 
<return> <help-echo> <help-echo> <help-echo> <down-mouse-2> 
<mouse-2> <down-mouse-1> <mouse-1> M-x M-p <return
>

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
#<buffer mycvs>
/mnt/wk1/mycvs

Load-path shadows:




Acknowledgement sent to Aeron Wang <tmulus@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#11881; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.