From unknown Mon Aug 18 04:36:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5594 <5594@debbugs.gnu.org> To: bug#5594 <5594@debbugs.gnu.org> Subject: Status: 23.1; calling rmail-cease-edit sets rmail-buffer to nil Reply-To: bug#5594 <5594@debbugs.gnu.org> Date: Mon, 18 Aug 2025 11:36:20 +0000 retitle 5594 23.1; calling rmail-cease-edit sets rmail-buffer to nil reassign 5594 emacs submitter 5594 barak@cs.nuim.ie severity 5594 normal tag 5594 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 17 21:07:22 2010 Received: (at submit) by debbugs.gnu.org; 18 Feb 2010 02:07:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhvnS-0004rM-U0 for submit@debbugs.gnu.org; Wed, 17 Feb 2010 21:07:22 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhvTM-0004d4-JP for submit@debbugs.gnu.org; Wed, 17 Feb 2010 20:46:33 -0500 Received: from mx10.gnu.org ([199.232.76.166]:52226) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhvTJ-0004d5-1f for submit@debbugs.gnu.org; Wed, 17 Feb 2010 20:46:29 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NhvTH-0003hP-3I for submit@debbugs.gnu.org; Wed, 17 Feb 2010 20:46:28 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:45701) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NhvTG-0003hH-Th for submit@debbugs.gnu.org; Wed, 17 Feb 2010 20:46:26 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhvTG-0003c4-BV for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 20:46:26 -0500 Received: from [140.186.70.92] (port=36716 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhvTE-0003bh-OZ for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 20:46:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhvTD-0003hy-Lo for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 20:46:24 -0500 Received: from mail.cs.may.ie ([149.157.246.225]:45962) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhvTD-0003hO-EZ for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 20:46:23 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.cs.may.ie (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id o1I1kKpP018460; Thu, 18 Feb 2010 01:46:20 GMT X-Virus-Scanned: Debian amavisd-new at cs.nuim.ie Received: from mail.cs.may.ie ([127.0.0.1]) by localhost (mail.cs.may.ie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fNb1KKHQtaHf; Thu, 18 Feb 2010 01:46:19 +0000 (GMT) Received: from golconda.cs.nuim.ie (golconda.cs.nuim.ie [149.157.245.66]) by mail.cs.may.ie (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id o1I1kI3O018454 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Thu, 18 Feb 2010 01:46:19 GMT Received: from barak by golconda.cs.nuim.ie with local (Exim 4.69) (envelope-from ) id 1NhvT8-0004Bx-Ux; Thu, 18 Feb 2010 01:46:18 +0000 From: "Barak A. Pearlmutter" To: bug-gnu-emacs@gnu.org Subject: 23.1; calling rmail-cease-edit sets rmail-buffer to nil Message-Id: Date: Thu, 18 Feb 2010 01:46:18 +0000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 17 Feb 2010 21:07:17 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: barak@cs.nuim.ie List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) I use rmail with mailcrypt. After transitioning to Emacs 23, mc-rmail-decrypt-message would bomb with an error after replacing the text, and would therefore not set the labels appropriately. Tracked the problem down to a call to (rmail-cease-edit) just before some (rmail-*-label) calls. The label manipulation was failing. It turned out that immediately before the (rmail-cease-edit) call, the variable rmail-buffer was set correctly, and immediately after it was not. This caused the label manipulation to bomb: Wrong type argument: stringp, nil There is a workaround to the problem in mailcrypt http://github.com/barak/mailcrypt/commit/d2c046cd100dbdfd427e0f31eec1fd39fc5a0da6 but the underlying issue seems like something that probably broke in the transition to rmail/mbox from rmail/babyl, so I thought I'd bring it to your attention. --Barak. -- Barak A. Pearlmutter Hamilton Institute & Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland http://www.bcl.hamilton.ie/~barak/ ---------------------------------------------------------------- In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12) of 2009-10-19 on debian-build.int-office-er.priv, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_IE@euro value of $XMODIFIERS: nil locale-coding-system: iso-latin-9-unix default-enable-multibyte-characters: t From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 19 03:57:09 2010 Received: (at 5594) by debbugs.gnu.org; 19 Feb 2010 08:57:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiOfc-0006tY-PK for submit@debbugs.gnu.org; Fri, 19 Feb 2010 03:57:08 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiOfb-0006tT-RX for 5594@debbugs.gnu.org; Fri, 19 Feb 2010 03:57:08 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NiOfX-0006Ol-Li; Fri, 19 Feb 2010 03:57:03 -0500 To: "Barak A. Pearlmutter" Subject: Re: bug#5594: 23.1; calling rmail-cease-edit sets rmail-buffer to nil References: From: Glenn Morris X-Spook: ANZUS Firefly Waco, Texas Uzi Janet Reno Mantis X-Ran: -UOg.U0_Xae{dmY.iAiU#7 (Barak A. Pearlmutter's message of "Thu\, 18 Feb 2010 01\:46\:18 +0000") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 5594 Cc: 5594@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) "Barak A. Pearlmutter" wrote: > turned out that immediately before the (rmail-cease-edit) call, the > variable rmail-buffer was set correctly, and immediately after it was > not. I managed to reproduce this in 23.1 with M-: (progn (rmail-cease-edit) rmail-buffer) but I cannot reproduce it with the current trunk, so it looks like it may have already been fixed. Can you try the bzr trunk from http://savannah.gnu.org/projects/emacs/ or the 23.2 pretest from http://alpha.gnu.org/gnu/emacs/pretest/emacs-23.1.92.tar.gz > In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12) > of 2009-10-19 on debian-build.int-office-er.priv, modified by Debian From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 20 20:50:42 2010 Received: (at control) by debbugs.gnu.org; 21 Feb 2010 01:50:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nj0y1-0004Dc-PX for submit@debbugs.gnu.org; Sat, 20 Feb 2010 20:50:41 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nj0y0-0004DS-2p for control@debbugs.gnu.org; Sat, 20 Feb 2010 20:50:40 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nj0xw-0003op-D3; Sat, 20 Feb 2010 20:50:36 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19328.37228.29058.714767@fencepost.gnu.org> Date: Sat, 20 Feb 2010 20:50:36 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: yellow X-Ran: cQqW3\v.J&L List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) merge 5613 5614 merge 5611 5612 close 5514 tags 5594 moreinfo reassign 5594 emacs,rmail close 5569 tags 5567 patch tags 5604 moreinfo retitle 5604 highlight completion problem reassign 5605 emacs,etags reassign 5600 emacs,etags From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 22 08:42:49 2010 Received: (at 5594) by debbugs.gnu.org; 22 Feb 2010 13:42:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjYYi-0000He-Um for submit@debbugs.gnu.org; Mon, 22 Feb 2010 08:42:49 -0500 Received: from mail.cs.may.ie ([149.157.246.225]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjYYg-0000HT-PG for 5594@debbugs.gnu.org; Mon, 22 Feb 2010 08:42:47 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.cs.may.ie (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id o1MDgfMR008879; Mon, 22 Feb 2010 13:42:41 GMT X-Virus-Scanned: Debian amavisd-new at cs.nuim.ie Received: from mail.cs.may.ie ([127.0.0.1]) by localhost (mail.cs.may.ie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SOzR7PSD9nD1; Mon, 22 Feb 2010 13:42:40 +0000 (GMT) Received: from golconda.cs.nuim.ie (golconda.cs.nuim.ie [149.157.245.66]) by mail.cs.may.ie (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id o1MDge2N008875 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Mon, 22 Feb 2010 13:42:40 GMT Received: from barak by golconda.cs.nuim.ie with local (Exim 4.69) (envelope-from ) id 1NjYYa-0007gB-7V; Mon, 22 Feb 2010 13:42:40 +0000 From: "Barak A. Pearlmutter" To: Glenn Morris In-reply-to: (message from Glenn Morris on Fri, 19 Feb 2010 03:57:03 -0500) Subject: Re: bug#5594: 23.1; calling rmail-cease-edit sets rmail-buffer to nil References: Message-Id: Date: Mon, 22 Feb 2010 13:42:40 +0000 X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: 5594 Cc: 5594@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: barak@cs.nuim.ie List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) Great, thanks for the quick response! Looks okay in the trunk. But I'll leave the workaround in mailcrypt anyway, since people may be running 23.1 for a while. But I will set things up so when the workaround triggers in version>23.1 it will kick out a warning message with a request to report the problem. Cheers, --Barak. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 22 13:01:36 2010 Received: (at control) by debbugs.gnu.org; 22 Feb 2010 18:01:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjcbA-0003MI-0y for submit@debbugs.gnu.org; Mon, 22 Feb 2010 13:01:36 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Njcb8-0003M8-7s for control@debbugs.gnu.org; Mon, 22 Feb 2010 13:01:34 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Njcb3-0002D2-QL; Mon, 22 Feb 2010 13:01:29 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19330.50809.741451.244204@fencepost.gnu.org> Date: Mon, 22 Feb 2010 13:01:29 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: black X-Ran: )wwTLG?}&#+)F@V/%`]L^X?-8Q,9@$"V:#L$C*4&Fm1&_G-ny&c[4&!(Wt+MW\ X-Debbugs-No-Ack: yes X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) close 5594 tags 5619 moreinfo reassign 5619 emacs,calendar unmerge 5614 tags 5600 patch tags 5607 patch reassign 5617 emacs,calc severity 5618 minor From unknown Mon Aug 18 04:36:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 23 Mar 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator