From: Eli Zaretskii <eliz@gnu.org>
To: "Andrea G. Monaco" <andrea.monaco@autistici.org>
Cc: emacs-devel@gnu.org
Subject: Re: Unseen attribute doesn't get saved in rmail
Date: Thu, 31 Dec 2020 18:31:25 +0200 [thread overview]
Message-ID: <83o8iagco2.fsf@gnu.org> (raw)
In-Reply-To: <87sg7m3wdx.fsf@autistici.org> (andrea.monaco@autistici.org)
> 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.
next prev parent reply other threads:[~2020-12-31 16:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-31 14:03 Unseen attribute doesn't get saved in rmail Andrea G. Monaco
2020-12-31 16:31 ` Eli Zaretskii [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-01-02 20:05 Andrea G. Monaco
2021-01-02 20:20 ` Eli Zaretskii
2021-01-08 21:33 Andrea G. Monaco
2021-01-09 7:44 ` Eli Zaretskii
2021-01-11 12:28 Andrea G. Monaco
2021-01-11 15:34 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83o8iagco2.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=andrea.monaco@autistici.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).