unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: Tramp and file-precious-flag.
Date: Sun, 18 Jul 2004 21:25:03 +0200	[thread overview]
Message-ID: <871xj9xgmo.fsf@gmx.de> (raw)
In-Reply-To: <200407121934.i6CJYmL00607@raven.dms.auburn.edu> (Luc Teirlinck's message of "Mon, 12 Jul 2004 14:34:48 -0500 (CDT)")

Luc Teirlinck <teirllm@dms.auburn.edu> writes:

> If `file-precious-flag' is t, then if one saves a remote file using
> Tramp, the visited file modtime gets set to 0.  As a result, there
> will be no warning when trying to save the buffer if the file changed
> on disk.  This problem does not exist for local files.

Somehow, I'm not able to reproduce the behaviour. Scenario:

C-x C-f ~/123
M-: file-precious-flag -> t
M-: (file-attributes (buffer-name (current-buffer)))
 -> (nil 1 1000 1000 (16634 52569) (16634 52242) (16634 52242) 125 "-rw-r--r--" nil 476194 770)
editing ... saving
M-: (file-attributes (buffer-name (current-buffer)))
 -> (nil 1 1000 1000 (16634 52660) (16634 52660) (16634 52660) 137 "-rw-r--r--" nil 476526 770)

C-x C-f /ssh:localhost:~/123
M-: file-precious-flag -> t
M-: (file-attributes (buffer-name (current-buffer)))
 -> (nil 1 1000 1000 (16634 52704) (16634 52660) (16634 52660) 137 "-rw-r--r--" t (7 . 17774) (-1 2))
editing ... saving
M-: (file-attributes (buffer-name (current-buffer)))
 -> (nil 1 1000 1000 (16634 52728) (16634 52728) (16634 52729) 118 "-rw-r--r--" t (7 . 17443) (-1 2))


> Sincerely,
>
> Luc.

Best regards, Michael.

  reply	other threads:[~2004-07-18 19:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-12 19:34 Tramp and file-precious-flag Luc Teirlinck
2004-07-18 19:25 ` Michael Albinus [this message]
2004-07-18 19:51   ` Luc Teirlinck
2004-07-22 20:35     ` Michael Albinus
2004-07-23  1:12       ` Luc Teirlinck
2004-07-23  8:00         ` Michael Albinus
2004-07-24  1:54           ` Luc Teirlinck
2004-07-24 18:49             ` Michael Albinus
2004-07-25  2:24               ` Luc Teirlinck
2004-07-25 11:06                 ` Michael Albinus
2004-07-24  3:02       ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=871xj9xgmo.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).