emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Don't complain about changed file when it hasn't changed


From: Stefan Monnier
Subject: Re: Don't complain about changed file when it hasn't changed
Date: Tue, 30 Aug 2016 11:44:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>> >  . the file's buffer could be unibyte, in which case you want
>> >    insert-file-contents-literally, I think
>> We could try to be more careful in this way, indeed.  But AFAIK the only
>> risk here is to flag a file as being changed when it hasn't, which is no
>> worse than what we currently do (i.e. a false alarm), so I'm not sure
>> it's worth the trouble.
> The documentation should state this exemption, lest users expect
> unibyte buffers to get the same treatment.

I don't know for a fact that it doesn't work in the unibyte case, actually.

>> Not sure what there is to document, actually (I do have a NEWS entry for
>> it, OTOH).

> From the ELisp manual:

>  -- Function: ask-user-about-supersession-threat filename
>      This function is used to ask a user how to proceed after an attempt
>      to modify an buffer visiting file FILENAME when the file is newer
>      than the buffer text.  Emacs detects this because the modification
>      time of the file on disk is newer than the last save-time of the
>      buffer.  This means some other program has probably altered the
>      file.

> Some of that will no longer be accurate once we install your changes.

I'll update that,


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]