emacs-devel
[Top][All Lists]
Advanced

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

Re: reverting non-existent file


From: Eli Zaretskii
Subject: Re: reverting non-existent file
Date: Fri, 15 May 2020 09:16:11 +0300

> From: Richard Copley <address@hidden>
> Date: Thu, 14 May 2020 20:54:02 +0100
> Cc: Colin Baxter <address@hidden>, Emacs Development <address@hidden>
> 
> > Hmm... maybe we should not suggest reverting if the file doesn't
> > exist?  Would that make this situation less confusing?
> 
> Why suggest reverting, whether or not the file exists?
> The buffer change just made by add-file-local-variable-prop-line
> hasn't been saved to any file yet. Reverting will undo the change,
> along with any other unsaved changes.
> It seems like a little mistake in the wording of the suggestion. It
> might make more sense to advise the user to save and then revert --
> except that it wouldn't cause the file-local variable to take effect
> anyway. Perhaps I'm misunderstanding what the message means
> ("revisit"?).

You are probably right.

> I think it should say just say to run "normal-mode".

I don't think normal-mode will take everything into consideration; for
example, 'coding:' will not affect it at all.



reply via email to

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