From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 11F722F237 for ; Mon, 26 Feb 2001 15:13:53 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f1QKEbA11291 for axp-list@listman.redhat.com; Mon, 26 Feb 2001 15:14:37 -0500 Received: from falstaff.isc-net.upenn.edu (FALSTAFF.ISC-NET.UPENN.EDU [130.91.72.121]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f1QKEZ411286 for ; Mon, 26 Feb 2001 15:14:35 -0500 Received: (from magill@localhost) by falstaff.isc-net.upenn.edu (8.11.1/8.10.1) id f1QKDiT26321; Mon, 26 Feb 2001 15:13:44 -0500 (EST) Date: Mon, 26 Feb 2001 15:13:44 -0500 (EST) From: "William H. Magill" Message-Id: <200102262013.f1QKDiT26321@falstaff.isc-net.upenn.edu> To: axp-list@redhat.com Subject: Re: emacs and hard links X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: > From: Ross A Knepper > Date: Tue, 20 Feb 2001 11:41:15 -0500 (EST) > > this is normal emacs behavior. it really has nothing to do with > alpha. i believe that it renames the old file to file~ and then creates > a new file with the old name. if you don't like it, use vi ;) > > -ross > > On Fri, 10 Nov 2000, Zufar Mulyukov wrote: > > I have found out that on my RedHat 6.2 (Alpha) emacs works strangely > > with hard links. > > When editing a hard link to a file ( or a file with some hard link to > > it), > > a file is saved under different inode, thus creating two different > > files. No such problem with vi. Is it supposed to be this way? > > Thank you, > > Zufar > Yes, this is normal emacs behavior. Emacs uses the mv command first and then creates the new file. This does change ownership, and protections as well as kill off links. To change it, in your ".emacs" file add: (setq backup-by-copying 1) or eliminate the creation of ~ backup files add: (set make-backup-files nil) Note that in Tru64 5.1 (maybe even in 5.0A, I forget) this default behavior of emacs was changed to deal with the Context Dependent Symbolic Links (CDSL) found in TruCluster 5.1. They also switched from using GNU emacs to using Xemacs. -- www.tru64unix.compaq.com www.tru64.org comp.unix.tru64 T.T.F.N. William H. Magill Senior Systems Administrator Information Services and Computing (ISC) University of Pennsylvania Internet: magill@isc.upenn.edu magill@acm.org http://www.isc-net.upenn.edu/~magill/