GNU bug report logs - #5594
23.1; calling rmail-cease-edit sets rmail-buffer to nil

Previous Next

Package: emacs;

Reported by: barak <at> cs.nuim.ie

Date: Thu, 18 Feb 2010 02:08:02 UTC

Severity: normal

Tags: moreinfo

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5594 in the body.
You can then email your comments to 5594 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5594; Package emacs. (Thu, 18 Feb 2010 02:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to barak <at> cs.nuim.ie:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 18 Feb 2010 02:08:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Barak A. Pearlmutter" <barak <at> cs.nuim.ie>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; calling rmail-cease-edit sets rmail-buffer to nil
Date: Thu, 18 Feb 2010 01:46:18 +0000
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 <barak <at> cs.nuim.ie>
 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 <at> euro
  value of $XMODIFIERS: nil
  locale-coding-system: iso-latin-9-unix
  default-enable-multibyte-characters: t





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5594; Package emacs. (Fri, 19 Feb 2010 08:58:02 GMT) Full text and rfc822 format available.

Message #8 received at 5594 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: "Barak A. Pearlmutter" <barak <at> cs.nuim.ie>
Cc: 5594 <at> debbugs.gnu.org
Subject: Re: bug#5594: 23.1; calling rmail-cease-edit sets rmail-buffer to nil
Date: Fri, 19 Feb 2010 03:57:03 -0500
"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




Added tag(s) moreinfo. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 21 Feb 2010 01:51:02 GMT) Full text and rfc822 format available.

bug reassigned from package 'emacs' to 'emacs,rmail'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 21 Feb 2010 01:51:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5594; Package emacs,rmail. (Mon, 22 Feb 2010 13:43:02 GMT) Full text and rfc822 format available.

Message #15 received at 5594 <at> debbugs.gnu.org (full text, mbox):

From: "Barak A. Pearlmutter" <barak <at> cs.nuim.ie>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 5594 <at> debbugs.gnu.org
Subject: Re: bug#5594: 23.1; calling rmail-cease-edit sets rmail-buffer to nil
Date: Mon, 22 Feb 2010 13:42:40 +0000
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.




bug closed, send any further explanations to barak <at> cs.nuim.ie Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 22 Feb 2010 18:02:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 23 Mar 2010 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.