From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: emacs changed file's own user and file permission Date: Tue, 11 Dec 2007 23:27:30 +0200 Organization: SunSITE.dk - Supporting Open source Message-ID: <87bq8wx6pp.fsf@kobe.laptop> References: <4ad823b9-4941-4883-8771-de43d50913de@e25g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197474064 19529 80.91.229.12 (12 Dec 2007 15:41:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2007 15:41:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 16:41:15 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J2The-0007is-SQ for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2007 16:40:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2ThM-0006xn-Tb for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2007 10:40:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (berkeley-unix) Cancel-Lock: sha1:6BRVqaZfHIu/fM/+ykqoxQ8W1HI= Original-Lines: 35 Original-NNTP-Posting-Host: 62.1.205.36 Original-X-Trace: news.sunsite.dk DXC=e6G9ZY; \PBj5kL0JZ2L^Mjgl4=h[MC00Xno<^f2O0I`OlTc`fBge5>mm Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:154616 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50039 Archived-At: On Mon, 10 Dec 2007 10:42:35 -0800 (PST), Xah Lee wrote: > How to stop emacs's backup changing the file's creation date of the > original file? > > Put this code in your emacs init file: "(setq backup-by-copying t)" This is sound advice, for the particular question. > Unix-like systems (unixes and linuxes) file systems do not record file > creation date. (this is one of the major fuckup in unixes, and is a > fact few unix people knew, even senior unix sys admins. (I'm not sure > what file system linuxes uses now, but is so up to 2004)) ... but this is wrong. $ uname -a FreeBSD kobe 8.0-CURRENT FreeBSD 8.0-CURRENT #0: \ Sun Dec 2 07:32:26 EET 2007 \ build@kobe:/home/build/obj/home/build/src/sys/KOBE i386 $ touch .bashrc $ ls -lUT .bashrc -rw------- 1 keramida users - 4112 Nov 28 22:37:32 2007 .bashrc $ ls -lT .bashrc -rw------- 1 keramida users - 4112 Dec 11 23:25:05 2007 .bashrc $ Note the time displayed when the -U option is used. It's the time my `.bashrc' file was edited (a few minutes ago), and overwritten by vim. Had I used Emacs with the `backup-by-copying' option, the time would be even further back in the past.