unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Andrea G. Monaco" <andrea.monaco@autistici.org>
To: emacs-devel@gnu.org
Subject: Unseen attribute doesn't get saved in rmail
Date: Thu, 31 Dec 2020 15:03:54 +0100	[thread overview]
Message-ID: <87sg7m3wdx.fsf@autistici.org> (raw)

Hello everyone,


there's a behavior in rmail I can't quite understand.
I never delete my mail, I just read it. So here's the problem: when some
messages are read and marked as such, the modified flag of the RMAIL
buffer apparently stays cleared, so Emacs doesn't offer to save it when I
close the editor.
This way I lose track of read mail every time.

I think these are the relevant lines in rmail.el inside
rmail-show-message-1: 


  ;; 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.


Let me know,
Andrea Monaco



             reply	other threads:[~2020-12-31 14:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-31 14:03 Andrea G. Monaco [this message]
2020-12-31 16:31 ` Unseen attribute doesn't get saved in rmail Eli Zaretskii
  -- 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=87sg7m3wdx.fsf@autistici.org \
    --to=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).