[comp.emacs] backup files in EMACS, linked files

fritzz@lamont.ldgo.columbia.edu (fritz zaucker) (07/27/90)

If I am editing a file, which has a link to it (I am talking about UNIX ln)
and I save it, then the link is to the backup file (file~) insteed to the
file (file) itself. I can imaging, how this happens, but I would still
prefer it the other way round.
Is there a way to get this?

Thanks

Fritz

tale@cs.rpi.edu (David C Lawrence) (07/27/90)

In <2620@lamont.ldgo.columbia.edu> fritzz@lamont.ldgo.columbia.edu
(fritz zaucker) writes:

   If I am editing a file, which has a link to it (I am talking about UNIX ln)
   and I save it, then the link is to the backup file (file~) insteed to the
   file (file) itself. I can imaging, how this happens, but I would still
   prefer it the other way round.
   Is there a way to get this?

(setq backup-by-copying t)

Dave
-- 
   (setq mail '("tale@cs.rpi.edu" "tale@ai.mit.edu" "tale@rpitsmts.bitnet"))

paul@ixi.uucp (Paul Davey) (08/07/90)

In article <JB3$$T@rpi.edu> tale@cs.rpi.edu (David C Lawrence) writes:

   (setq backup-by-copying t)

This question and problem seem to be fairly common, I would suspect
that many (most?) people use this mode. Perhaps it should be the
default?

Rather than waste bandwidth if you feel strongly one way or the other
mail me and I'll summarize.

	Paul

--
 Regards,			 pd@x.co.uk          IXI Limited
	Paul Davey		 pd@ixi.uucp         62-74 Burleigh St.
				 ...!uunet!ixi!pd    Cambridge  U.K.
 "These are interesting times"   +44 223 462 131     CB1  1OJ      

ralph@laas.fr (Ralph P. Sobek) (08/17/90)

I tried to reply to Paul Davey as suggested in article
<PAUL.90Aug7165417@rutland.ixi.uucp> paul@ixi.uucp writes:

|  Rather than waste bandwidth if you feel strongly one way or the other
|  mail me and I'll summarize.

So, here's that reply.  Sorry for having to post.

------- Start of forwarded message -------

I missed the original discussion referenced below:

|  In article <JB3$$T@rpi.edu> tale@cs.rpi.edu (David C Lawrence) writes:
|      (setq backup-by-copying t)
|
|  This question and problem seem to be fairly common, I would suspect
|  that many (most?) people use this mode. Perhaps it should be the
|  default?

but I specify the following:

	(setq backup-by-copying-when-linked t)

and therefore it only does the copying when the original file is
linked.  I would think that this should be the default.

------- End of forwarded message -------

Cheers,


--
Ralph P. Sobek			  Disclaimer: The above ruminations are my own.
ralph@laas.fr				   Addresses are ordered by importance.
ralph@laas.uucp, or ...!uunet!laas!ralph		
If all else fails, try:				      sobek@eclair.Berkeley.EDU
===============================================================================
Reliable software should kill people reliably! -Andy Mickel, Pascal News #13,78