all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs changed file's own user and file permission
Date: Tue, 11 Dec 2007 23:27:30 +0200	[thread overview]
Message-ID: <87bq8wx6pp.fsf@kobe.laptop> (raw)
In-Reply-To: 4ad823b9-4941-4883-8771-de43d50913de@e25g2000prg.googlegroups.com

On Mon, 10 Dec 2007 10:42:35 -0800 (PST), Xah Lee <xah@xahlee.org> 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.

  parent reply	other threads:[~2007-12-11 21:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-10  2:11 emacs changed file's own user and file permission cire
2007-12-10  4:11 ` Eli Zaretskii
2007-12-10 18:42 ` Xah Lee
2007-12-10 23:07   ` Jason Rumney
2007-12-11  1:18     ` Xah Lee
2007-12-11  4:16       ` Eli Zaretskii
2007-12-11  9:23       ` Peter Dyballa
     [not found]       ` <mailman.4854.1197346566.18990.help-gnu-emacs@gnu.org>
2007-12-11 20:39         ` Xah Lee
2007-12-12  4:09           ` Eli Zaretskii
     [not found]           ` <mailman.4906.1197432601.18990.help-gnu-emacs@gnu.org>
2007-12-12  5:00             ` Xah Lee
     [not found]       ` <mailman.4861.1197365038.18990.help-gnu-emacs@gnu.org>
2007-12-11 20:49         ` Xah Lee
2007-12-11 23:03           ` Peter Dyballa
     [not found]           ` <mailman.4897.1197414209.18990.help-gnu-emacs@gnu.org>
2007-12-15  5:21             ` Xah Lee
2007-12-11 21:27   ` Giorgos Keramidas [this message]
2007-12-12  4:37   ` Kevin Rodgers
     [not found]   ` <mailman.4908.1197434250.18990.help-gnu-emacs@gnu.org>
2007-12-12  5:42     ` Xah Lee
2007-12-12 16:59       ` Joel J. Adamson
2007-12-12 18:26         ` Xah Lee
2007-12-14 14:44           ` Joel J. Adamson
2007-12-17  1:48             ` Sean Sieger
2007-12-12  5:43     ` Barry Margolin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bq8wx6pp.fsf@kobe.laptop \
    --to=keramida@ceid.upatras.gr \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.