Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cbosgd!ucbvax!BONNIE.UCI.EDU!escott From: escott@BONNIE.UCI.EDU (Scott Menter) Newsgroups: net.emacs Subject: Re: GNU Emacs changes ownerships (ugh!) Message-ID: <8608082241.AA13314@ucbvax.Berkeley.EDU> Date: Fri, 8-Aug-86 18:42:35 EDT Article-I.D.: ucbvax.8608082241.AA13314 Posted: Fri Aug 8 18:42:35 1986 Date-Received: Sun, 10-Aug-86 05:17:55 EDT References: <2537@diku.UUCP> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 58 Hi again. In article <2537@diku.UUCP>, Lars Povlsen answers me: > In article <8607301814.AA08129@ucbvax.Berkeley.EDU> > escott@BONNIE.UCI.EDU.UUCP writes: >>Hi everyone. > >>Before I go ahead and take the time to make the changes myself, does >>anybody have a patch for GNU Emacs v17.61 that make it keep the old >>ownerships for a file upon saving? > >>Or is this perhaps accomplished in a later version...? > > Since I was hoping to have that bug (feature?) fixed in later versions > and running 17.49 myself, I decided not to wait for it. > > The changes involve adding two C functions to get/set user/group-id, > and changing the emacs lisp routine that saves buffers, basic-save-buffer. > > The fiddling with emacs C part do not affect other parts of emacs, and > is easy to check with eval. > > Since I have been missing this for a long time I decided to post, > lots of others should miss it. > > -------------------------------------------------------------------------- > Lars Povlsen, diku!krus/diku!postmaster > Institute of Datalogy, University of Copenhagen > -------------------------------------------------------------------------- > (Boy, have I locked up uucp/news a million times before this!) > > Here's the diff -c's, remember :: from version 17.49 [Huge listing not reproduced here (you're welcome 8^)] I got a couple of other private replies, for which I thank the senders again here. I don't have the energy to quote those replies here too, but basically they all said to (setq backup-by-copying t) Well, this works very nicely, thank you, for the file which I'm editing. However, it is interesting to note that the backup file (the one with the tilde after the name) gets the default ownerships of the user, not those of the file it is backing up. This is a small consideration, and I'll probably just let it go at that. Since the diffs are for an older version, I'm not even sure if I can apply them, and backup-by-copying does most of the trick. However, I agree with Lars (now *that* is an authentic European name), this stuff belongs in the source. One day... -------------------------------------------------------------------------- E. Scott Menter Internet: escott@ics.uci.edu UCI ICS Computing Support Group UUCP: ...!ucbvax!ucivax!escott Snail: Univ of Calif ICS Dept "...Say, Foz, about my vocals..." Irvine, Calif 92717 --------------------------------------------------------------------------