🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87854

file-precious-flag and backup-by-copying-when-linked

#87854
From: Joerg-Martin Schwarz
Date: Sat, 20 Aug 1994 13:22
27 lines
2315 bytes
I discovered a problem with the way emacs saves files flagged as
precious (for instance ~/RMAIL ) to disk.
As far as I understand from files.el, the buffer contents is written to
some temporary file which after successfully writing to disk
is renamed  to ~/RMAIL.  
However my ~/RMAIL has several hard links, 
with backup-by-copying-when-linked set; 
and the other links still keep their old contents when the tempfile is
renamed, instead of being linked to the new ~/RMAIL file.

Can this be fixed somehow ?
Is this way of saving precious files really necessary, since 
a copy of the old file contents is saved as "~/RMAIL~" anyway?
--
				Mit besten Gruessen,
				Joerg-Martin Schwarz
/------------------------------+---------------------------------------------\
|Addresse:                     | e-mail:                                     |
|    Abteilung Physik (T III)  |  uph508@unidozr.hrz.uni-dortmund.de         |
|    Universitaet Dortmund     |  schwarz@{hal1,het}.physik.uni-dortmund.de  |
|    Otto Hahn-Strasse 4       |---------------------------------------------|
|    D44221 Dortmund           |                                             |
|Telefon:                      |                                             |
| +49/231/755-3581             |      ___                                    |
|Fax:        -3569             |     (o o)                                   |
\------------------------------+--ooO-(_)-Ooo--------------------------------/
Technical Details
Message-ID: <SCHWARZ.94Aug19150035@hal1.physik.uni-dortmund.de>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!hal1.physik.uni-dortmund.de!schwarz

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,8231aca8eee94c79,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-20 06:25:07 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!hal1.physik.uni-dortmund.de!schwarz
From: schwarz@hal1.physik.uni-dortmund.de (Joerg-Martin Schwarz)
Newsgroups: gnu.emacs.bug
Subject: file-precious-flag and backup-by-copying-when-linked
Date: 20 Aug 1994 09:22:17 -0400
Organization: Universitaet Dortmund
Lines: 28
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <SCHWARZ.94Aug19150035@hal1.physik.uni-dortmund.de>