bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs breaks hard links?


From: Reiner Steib
Subject: Re: Emacs breaks hard links?
Date: Sun, 16 Jul 2006 21:24:16 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

On Sat, Jul 15 2006, Sebastian Pipping wrote:

> When I save a file in Emacs it seems the original file
> is renamed to "example~" and a new file "example"
> is created. This causes trouble with hard links:
> If the original file was shared by three hard links
> then after saving the other two hard links share
> the file content with the backup file while the
> up-to-date file is not linked to them anymore.
>
> I wonder if this hard-link-breaking-logic was really
> intended. Please let me know what you think about this.

Set `backup-by-copying-when-linked' to t:

,----[ (info "(emacs)Backup Copying") ]
|    The choice of renaming or copying is controlled by four variables.
| Renaming is the default choice.  If the variable `backup-by-copying' is
| non-`nil', copying is used.  Otherwise, if the variable
| `backup-by-copying-when-linked' is non-`nil', then copying is used for
| files that have multiple names, but renaming may still be used when the
| file being edited has only one name.
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]