[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramp and file-precious-flag.
From: |
Luc Teirlinck |
Subject: |
Re: Tramp and file-precious-flag. |
Date: |
Thu, 22 Jul 2004 20:12:00 -0500 (CDT) |
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":
If visit is neither t nor nil nor a string,
that means do not display the "Wrote file" message.
Is it worth a documentation clarification?
Probably it might be good to clarify the docstring and the Elisp
manual, as long as it really makes things more clear.
Docstring:
Optional fifth argument VISIT if t means
set the last-save-file-modtime of buffer to this file's modtime
and mark buffer not modified.
If VISIT is a string, it is a second file name; the output goes to
FILENAME, but the buffer is marked as visiting VISIT. VISIT is also
the file name to lock and unlock for clash detection.
In the case of a string, one would have to specify which file's
modtime, because there is FILENAME and VISIT. I guess the buffer also
gets marked not modified (I did not check).
Sincerely,
Luc.
- Tramp and file-precious-flag., Luc Teirlinck, 2004/07/12
- Re: Tramp and file-precious-flag., Michael Albinus, 2004/07/18
- Re: Tramp and file-precious-flag., Luc Teirlinck, 2004/07/18
- Re: Tramp and file-precious-flag., Michael Albinus, 2004/07/22
- Re: Tramp and file-precious-flag.,
Luc Teirlinck <=
- Re: Tramp and file-precious-flag., Michael Albinus, 2004/07/23
- Re: Tramp and file-precious-flag., Luc Teirlinck, 2004/07/23
- Re: Tramp and file-precious-flag., Michael Albinus, 2004/07/24
- Re: Tramp and file-precious-flag., Luc Teirlinck, 2004/07/24
- Re: Tramp and file-precious-flag., Michael Albinus, 2004/07/25
- Re: Tramp and file-precious-flag., Richard Stallman, 2004/07/23