From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Rmail does not mark buffer modified when unread message is shown Date: Mon, 07 May 2018 20:41:31 +0300 Message-ID: <83in7zqs6s.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1525714794 8992 195.159.176.226 (7 May 2018 17:39:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 May 2018 17:39:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 07 19:39:50 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFk73-0002Fe-TY for geh-help-gnu-emacs@m.gmane.org; Mon, 07 May 2018 19:39:50 +0200 Original-Received: from localhost ([::1]:47378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFk9A-0005ft-Rw for geh-help-gnu-emacs@m.gmane.org; Mon, 07 May 2018 13:42:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFk8h-0005fc-PM for help-gnu-emacs@gnu.org; Mon, 07 May 2018 13:41:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFk8d-0002TP-RY for help-gnu-emacs@gnu.org; Mon, 07 May 2018 13:41:31 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFk8d-0002T7-Nm for help-gnu-emacs@gnu.org; Mon, 07 May 2018 13:41:27 -0400 Original-Received: from [176.228.60.248] (port=4814 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fFk8c-0004gE-UX for help-gnu-emacs@gnu.org; Mon, 07 May 2018 13:41:27 -0400 In-reply-to: (message from =?utf-8?B?R8O2?= =?utf-8?B?a3R1xJ8=?= Kayaalp on Mon, 07 May 2018 01:17:43 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116679 Archived-At: > From: Göktuğ Kayaalp > Cc: help-gnu-emacs@gnu.org > Date: Mon, 07 May 2018 01:17:43 +0300 > > On 2018-05-06 05:41 +03, Eli Zaretskii 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.