🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99835

write-file should construct buffer names with "<nnn>" if necessary

#99835
From: drw
Date: Wed, 18 Apr 1990 02:17
16 lines
1095 bytes
When a buffer is written out with write-file, Emacs will rename the
buffer to have the name of the file.  However, this is not done if
there already exists a buffer with the same name as the file.  This is
deceptive and not uniform with the behavior of find-file.  Write-file
should be willing to construct "file<nnn>" buffer names as find-file
is.

To reproduce:

C-x b a RET
C-x C-f ~/temp/b RET
C-x C-w ~/temp/a RET
The second buffer will still be named "b".

Dale
drw@math.mit.edu
Technical Details
Message-ID: <9004180217.AA20371@pascal.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!BOURBAKI.MIT.EDU!drw

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,26048acbf58e1a63,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-04-18 05:59:30 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!BOURBAKI.MIT.EDU!drw
From: drw@BOURBAKI.MIT.EDU
Newsgroups: gnu.emacs.bug
Subject: write-file should construct buffer names with "<nnn>" if necessary
Message-ID: <9004180217.AA20371@pascal.mit.edu>
Date: 18 Apr 90 02:17:53 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 16
Posted: Wed Apr 18 03:17:53 1990