From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Rost Newsgroups: gmane.emacs.bugs Subject: bug#4623: 23.1.50; rmail changes encoding of characters on save Date: Tue, 13 Oct 2009 04:16:19 +0200 (CEST) Message-ID: <20091013021619.197A3EFB52@sonic02.math.uni-bielefeld.de> References: <20091003145435.75D5D288A0AB@xen12.math.uni-bielefeld.de> <3tfx9o142g.fsf@fencepost.gnu.org> Reply-To: Markus Rost , 4623@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1255400854 2933 80.91.229.12 (13 Oct 2009 02:27:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2009 02:27:34 +0000 (UTC) Cc: 4623@emacsbugs.donarmstrong.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 13 04:27:23 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MxX6h-0002cF-Ah for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Oct 2009 04:27:23 +0200 Original-Received: from localhost ([127.0.0.1]:45082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxX6g-0008H8-DV for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 22:27:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxX6c-0008Gp-98 for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 22:27:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxX6W-0008Fz-NP for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 22:27:16 -0400 Original-Received: from [199.232.76.173] (port=50735 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxX6W-0008Fw-Kl for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 22:27:12 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38754) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MxX6W-0005jZ-5h for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2009 22:27:12 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9D2RAiR031403; Mon, 12 Oct 2009 19:27:10 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9D2P6JO030929; Mon, 12 Oct 2009 19:25:06 -0700 Resent-Date: Mon, 12 Oct 2009 19:25:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Markus Rost Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 13 Oct 2009 02:25:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4623 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4623-submit@emacsbugs.donarmstrong.com id=B4623.125540019429874 (code B ref 4623); Tue, 13 Oct 2009 02:25:06 +0000 Original-Received: (at 4623) by emacsbugs.donarmstrong.com; 13 Oct 2009 02:16:34 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail2.math.uni-bielefeld.de (mail2.math.uni-bielefeld.de [129.70.14.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9D2GWwf029863 for <4623@emacsbugs.donarmstrong.com>; Mon, 12 Oct 2009 19:16:33 -0700 Original-Received: from sonic02.math.uni-bielefeld.de (sonic02.math.uni-bielefeld.de [129.70.14.134]) by mail2.math.uni-bielefeld.de (Postfix) with ESMTP id 7736B73020; Tue, 13 Oct 2009 04:16:26 +0200 (CEST) Original-Received: by sonic02.math.uni-bielefeld.de (Postfix, from userid 3710) id 197A3EFB52; Tue, 13 Oct 2009 04:16:19 +0200 (CEST) In-reply-to: <3tfx9o142g.fsf@fencepost.gnu.org> (message from Glenn Morris on Mon, 12 Oct 2009 21:21:43 -0400) X-GNU-Emacs-Mailer: GNU Emacs 22.3 X-Home-Page: http://www.math.uni-bielefeld.de/~rost X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 12 Oct 2009 22:27:16 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31873 Archived-At: The crucial thing is that the mbox file after reading and saving in rmail differs from the original file only by some headers, usually X-RMAIL-ATTRIBUTES, X-RMAIL-KEYWORDS. Your patch fixes the problem. > I think it > should be done in a manner similar to the following, since saving an > rmail file with just "C-x C-s" should work. Yes, your patch is better than my attempts, as in and at the end of However all 3 patches leave the same problem, namely that the rmail buffer gets the buffer-file-coding-system 'no-conversion. This can be easily seen from the mode line indicator ('=' instead of say '1' or 'u'). See the detailed discussion in the second part of Now this problem is of minor importance, at least I don't know of any serious effects, and refreshing the rmail buffer by hitting "Nj" (where N is the message number you are looking at) resets the buffer-file-coding-system (and the mode line indicator). One could work around this by calling (rmail-show-message rmail-current-message) after the save, although this isn't satisfactory. Anyway, I think that your patch should be installed.