From owner-freebsd-questions Sat Dec 13 06:42:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA26300 for questions-outgoing; Sat, 13 Dec 1997 06:42:18 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from localhost.zilker.net (jump-x2-0149.jumpnet.com [207.8.61.149]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA26285 for ; Sat, 13 Dec 1997 06:42:10 -0800 (PST) (envelope-from marquard@zilker.net) Received: (from marquard@localhost) by localhost.zilker.net (8.8.8/8.8.3) id IAA12349; Sat, 13 Dec 1997 08:41:55 -0600 (CST) To: freebsd-questions@freebsd.org, cao@bus.net Subject: Re: editing linked files w/emacs References: From: Dave Marquardt Date: 13 Dec 1997 08:41:21 -0600 In-Reply-To: "Chuck O'Donnell"'s message of "Fri, 12 Dec 1997 12:47:21 -0500 (EST)" Message-ID: <85lnxp5mr2.fsf@localhost.zilker.net> Lines: 19 X-Mailer: Quassia Gnus v0.17/XEmacs 19.16 - "Lille" Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk "Chuck O'Donnell" writes: > While using emacs to edit to a file with more than one hard link, and > saving with save-buffer (C-x C-s), emacs saves the newly edited buffer to > a new disk file, leaving the remaining links to refer to the original file > which is now out of date. > > To keep all link references current, I have to delete other links and > relink the file each time I make an edit. I must be doing something wrong > here. > > Has anyone seen this before? You might have better luck asking on one of the Emacs newsgroups (comp.emacs, gnu.emacs, etc.). I *believe* there is some sort of Emacs Lisp variable you can set to cause Emacs to not move the old version of the file `foo' to `foo~' and then write the modified file to `foo'. It's probably in the Emacs INFO stuff somewhere. -Dave