emacs-devel
[Top][All Lists]
Advanced

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

Re: Unseen attribute doesn't get saved in rmail


From: Eli Zaretskii
Subject: Re: Unseen attribute doesn't get saved in rmail
Date: Thu, 31 Dec 2020 18:31:25 +0200

> From: "Andrea G. Monaco" <andrea.monaco@autistici.org>
> Date: Thu, 31 Dec 2020 15:03:54 +0100
> 
>   ;; Mark the message as seen, but preserve buffer modified flag.
>   (let ((modiff (buffer-modified-p)))
>     (rmail-set-attribute rmail-unseen-attr-index nil)
>     (unless modiff
>       (restore-buffer-modified-p modiff)))
> 
> So the modified flag is explicitly cleared after reading a new message.
> Is there some reason I can't see for this behavior? Maybe we could add a
> configuration option to let the user choose.

I think you can use rmail-show-message-hook to call a function that
sets the buffer's modified flag, then reading a message will leave
that set.



reply via email to

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