Article View: gnu.emacs.bug
Article #87319Rmail code with delayed side-effect
From: Terry Stroup
Date: Fri, 30 Sep 1994 17:25
Date: Fri, 30 Sep 1994 17:25
42 lines
2168 bytes
2168 bytes
Recently I submitted an enquiry to gnu.emacs.help, but I didn't get back to reading the news soon enough to find any responses. The following code induces a strange side effect that I may be mistaking for a subtle bug in Rmail. Switching from using 19.19 to 19.25 has introduced a subtle bug into code that worked on the older Emacs. Executing the following code suffices to reproduce the problem on an Emacs 19.25 invoked with the -q option: (setq rmail-delete-after-output t) (setq rmail-show-message-hook 'rmail-show-message-hook-fun) (defun rmail-show-message-hook-fun () (rmail-clear-headers) (dcbe-rmail-redisplay-summary)) (defun dcbe-rmail-redisplay-summary () "Readjust the summary window." (cond ((rmail-summary-displayed) (save-excursion (pop-to-buffer rmail-summary-buffer) (recenter))))) Now an attempt to use the "o" command from an Rmail summary buffer yields the following *Backtrace* if debug-on-error is set Signalling: (void-variable rmail-buffer) rmail-summary-delete-forward(nil) rmail-summary-output-to-rmail-file() call-interactively(rmail-summary-output-to-rmail-file) I have examined the source code for the Rmail functions involved, but I couldn't make out what's going wrong. The code listed above works well on 19.19. I would be grateful for any response, but please respond by email. Thanks, Terry Stroup
Technical Details
Message-ID:
<36hfv2E4e7@uni-erlangen.de>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!cip.INformatik.uni-erlangen.DE!terryShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,b69668e42cd6cccf,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-10-01 07:41:43 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!cip.INformatik.uni-erlangen.DE!terry From: terry@cip.INformatik.uni-erlangen.DE (Terry Stroup) Newsgroups: gnu.emacs.bug Subject: Rmail code with delayed side-effect Date: 30 Sep 1994 13:25:43 -0400 Organization: Student Pool, CSD, University of Erlangen, Germany Lines: 42 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <36hfv2E4e7@uni-erlangen.de> Summary: Rmail changes induce peculiar behavior Keywords: Rmail