🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99660

one file accessed by differents names should end up in one buffer

#99660
From: Stephane Payrard
Date: Tue, 26 Jun 1990 23:57
35 lines
2087 bytes
THIS IS NOT REALLY A BUG REPORT BUT A RFE

Very often one can access the same file using different names.  For
example SunOS 4.1 physically store under /var/spool what older version
of SunOS used to store in /usr/spool. But SunOS provides a symlink
which is supposed to make  the change transparent.

lrwxrwxrwx  1 root           12 Apr 16 18:45 /usr/spool ->../var/spool

Suppose I have a file which "canonic" (ie: without symbolic links)
pathanme is /usr/spool/X/log.  If I sucessessively do
M-xfind-file/usr/spool/X/log and M-xfind-file/var/spool/X/log, I end
up with two buffers where I really want one: in the 2 cases, I
reference the same file so I would have expected gnu-emacs smart enough to
figure out that there is only one file involved.
It can do that using st_dev and st_ino files of the struct returned by
stat() and comparing it do the same fields (save away) for the other
gnuemacs buffers tied to a file,
note: I am not even sure that scheme work with fancy file systems like LOFS

I agree that I should use always the same name to acess the same file
but I am not yet totally accustomed  to use /var/spool instead of /usr/spool
so I use both of them! sigh !

note: I am using  emacs-version 18.54


        stef
--
Stephane Payrard -- stef@sun.com -- (415) 336 3726
Sun Microsystems -- 2550 Garcia Avenue --  M/S 10-09 -- Mountain View  CA 94043
room number: 138
                     
                     
Technical Details
Message-ID: <STEF.90Jun26165717@zweig.SUN>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!uwm.edu!lll-winken!sun-barr!newstop!sun!stef

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,d312b7b2bcea8e37,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-06-26 18:59:27 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!uwm.edu!lll-winken!sun-barr!newstop!sun!stef
From: stef@zweig.SUN (Stephane Payrard)
Newsgroups: gnu.emacs.bug
Subject: one file accessed by differents names should end up in one buffer
Message-ID: <STEF.90Jun26165717@zweig.SUN>
Date: 26 Jun 90 23:57:17 GMT
Sender: news@sun.Eng.Sun.COM
Distribution: gnu
Organization: Sun Microsystems -- Mountain View
Lines: 35
Posted: Wed Jun 27 00:57:17 1990