[emacs-w3m:13871] Re: Emacs-w3m/Emacs (?) bug with saved buffer and undo?

Emanuel Berg <[email protected]> Mon, 30 May 2022 00:55:57 +0200
Newsgroups gmane.emacs.w3m
Message-ID <[email protected]>
Katsumi Yamaoka wrote:

>> Navigate to a page, e.g. https://dataswamp.org/~rjc/motd.txt
>> Save as motd.txt in ${HOME}.
>> Type something.
>> Do M-x undo RET
>> It says "undo-start: No undo information in this buffer"
>
> (add-hook 'after-save-hook #'buffer-enable-undo)
>
> Undo is disabled in the *w3m* buffer, as many buffers that
> don't intend to edit are, and its state is kept in *the
> buffer* even if it is saved to a file using `write-file' and
> the like.

You are right!

-- 
underground experts united
https://dataswamp.org/~incal