all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Rmail does not mark buffer modified when unread message is shown
Date: Mon, 07 May 2018 20:41:31 +0300	[thread overview]
Message-ID: <83in7zqs6s.fsf@gnu.org> (raw)
In-Reply-To: <ygmbmdsxwc8.fsf@gkayaalp.com> (message from Göktuğ Kayaalp on Mon, 07 May 2018 01:17:43 +0300)

> From: Göktuğ Kayaalp <self@gkayaalp.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Mon, 07 May 2018 01:17:43 +0300
> 
> On 2018-05-06 05:41 +03, Eli Zaretskii <eliz@gnu.org> wrote:
> > If you start Emacs as "emacs -Q" and then invoke "C-u M-x rmail RET"
> > on an mbox file, do the problems go away?  For this experiment, please
> > try an mbox file that wasn't converted as you described, but came from
> > somewhere else, for example from the archives of this list.
> 
> I tried this, the buffer modified flag is not flipped and thus ‘s’ and
> ‘C-x C-s’ don't work, the latter causing the message «(No changes need
> to be saved)» to be displayed.

Yes, I remember now: this is a feature.  Just reading a message
doesn't mark the inbox buffer modified, although it does remove the
"unseen" attribute from the message (you can see that, e.g., in the
Summary buffer, where unseen messages have their summary line
highlighted).

The reasons for this behavior are largely historical now: they have to
do with the move from Babyl to mbox format for storing messages in
files.  We could change this behavior, but I guess at this point it's
burnt into too many muscle memories.  In practice, this never presents
a problem, because it's a rare case that you read your new mail and
don't delete or file away even a single message.  The latter two
operations do mark the inbox buffer modified.  So to wqork around
this, just do 'd', then 'u', and you will be able to save your inbox.



  reply	other threads:[~2018-05-07 17:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-05 21:02 Rmail does not mark buffer modified when unread message is shown Göktuğ Kayaalp
2018-05-06  2:41 ` Eli Zaretskii
2018-05-06 22:17   ` Göktuğ Kayaalp
2018-05-07 17:41     ` Eli Zaretskii [this message]
2018-05-07 19:30       ` Göktuğ Kayaalp

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83in7zqs6s.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.