From xemacs-m  Thu Jan 16 05:53:18 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id FAA27767 for <xemacs-beta@xemacs.org>; Thu, 16 Jan 1997 05:53:17 -0600 (CST)
Received: (from steve@localhost)
          by altair.xemacs.org (8.8.4/8.8.4)
	  id EAA02039; Thu, 16 Jan 1997 04:03:08 -0800
Sender: steve@xemacs.org
To: xemacs-beta@xemacs.org
Subject: Re: bug (I think) not noticing changed files through symlinks
References: <wxlo9thmy6.fsf@mordred.cs.purdue.edu>
X-Url: http://www.miranova.com/%7Esteve/
Mail-Copies-To: never
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Adam Hammer's message of 16 Jan 1997 06:35:45 -0500
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: text/plain; charset=US-ASCII
Date: 16 Jan 1997 04:03:06 -0800
Message-ID: <m2iv4x6d51.fsf@altair.xemacs.org>
Lines: 31
X-Mailer: Red Gnus v0.81/XEmacs 20.0

Adam Hammer writes:

> It would be really nice if you were notified that the buffer has
> changed as soon as possible.  Emacs 19.31 seems to follow the symlink
> and keep track of the file as I would expect.

I don't like the defaults.  Try this.

(setq find-file-use-truenames nil
      find-file-compare-truenames t)

C-h v find-file-compare-truenames
find-file-compare-truenames's value is t
  -- a built-in boolean variable.

Documentation:
If this is true, then the find-file command will check the truenames
of all visited files when deciding whether a given file is already in
a buffer, instead of just the buffer-file-name.  This means that if you
attempt to visit another file which is a symbolic-link to a file which is
already in a buffer, the existing buffer will be found instead of a newly-
created one.  This works if any component of the pathname (including a non-
terminal component) is a symbolic link as well, but doesn't work with hard
links (nothing does).

See also the variable find-file-use-truenames.

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
Today's environment is 20.0 XEmacs Lucid (beta91) and Red Gnus v0.81

