From: Michael Albinus <Michael.Albinus@alcatel.de>
Cc: emacs-devel@gnu.org
Subject: Re: Tramp and file-precious-flag.
Date: Fri, 23 Jul 2004 10:00:38 +0200 [thread overview]
Message-ID: <nqzn5rduft.fsf@alcatel.de> (raw)
In-Reply-To: <200407230112.i6N1C0C13413@raven.dms.auburn.edu> (Luc Teirlinck's message of "Thu, 22 Jul 2004 20:12:00 -0500 (CDT)")
Luc Teirlinck <teirllm@dms.auburn.edu> writes:
> Michael Albinus wrote:
>
> In fact, the problem was due to documentation vagueness of
> `write-region'. It is said, that modtime of visited file must be
> updated in case `visit' is equal t. Nothing is said if `visit' is a
> string. But the code of `write-region' shows it must be updated always
> when `visit' is not nil.
>
> Do you really mean "always when `visit' is not nil" or do you mean
> "when `visit' is t or a string":
Now _I_ have been vague ... The code of write-region in fileio.c looks
like this:
int visiting = (EQ (visit, Qt) || STRINGP (visit));
...
if (visiting)
current_buffer->modtime = st.st_mtime;
I've been lazy, my changed code in tramp-handle-write-region is:
(when visit
(set-visited-file-modtime))
Maybe I should go exactly to the behaviour as implemented in
write-region.
> Sincerely,
>
> Luc.
Best regards, Michael.
next prev parent reply other threads:[~2004-07-23 8:00 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=nqzn5rduft.fsf@alcatel.de \
--to=michael.albinus@alcatel.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 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.