🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99695

Bug in rmail

#99695
From: Hallvard B Furuseth
Date: Mon, 21 May 1990 12:47
44 lines
1861 bytes
In emacs-18.55, M-X rmail fails when ~/RMAIL is in a buffer not in
rmail-mode.  This may happen f.ex when using saveconf.

Reproduce:
	If an RMAIL buffer exists, quit RMAIL and kill the buffer.
	(find-file "RMAIL")
	(bury-buffer)
	(rmail)
<<Wrong type argument: Integer-or-marker-p, nil>>


Here is a fix.  It also refuses to read new mail while the user is
editing a message, he probably wants to finish editing first.

*** rmail.el~	Wed Aug 23 12:40:33 1989
--- rmail.el	Sun May 20 17:09:06 1990
***************
*** 111,119 ****
  	(progn
  	  (find-file file-name)
! 	  (if (verify-visited-file-modtime existed)
  	      (progn (rmail-forget-messages)
  		     (rmail-set-message-counters))))
        (find-file file-name))
!     (if existed
  	nil
        (rmail-mode)
--- 111,122 ----
  	(progn
  	  (find-file file-name)
! 	  (and (verify-visited-file-modtime existed)
! 	       (eq major-mode 'rmail-mode)
  	      (progn (rmail-forget-messages)
  		     (rmail-set-message-counters))))
        (find-file file-name))
!     (if (eq major-mode 'rmail-edit-mode)
! 	(error "Finish rmail-edit-mode before getting new mail."))
!     (if (and existed (eq major-mode 'rmail-mode))
  	nil
        (rmail-mode)


Hallvard Furuseth
hallvard@ifi.uio.no
Technical Details
Message-ID: <9005211247.AAroftaty02785@roftaty.uio.no>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!IFI.UIO.NO!hallvard

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,8734b76181c56640,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-05-21 08:27:24 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!IFI.UIO.NO!hallvard
From: hallvard@IFI.UIO.NO (Hallvard B Furuseth)
Newsgroups: gnu.emacs.bug
Subject: Bug in rmail
Message-ID: <9005211247.AAroftaty02785@roftaty.uio.no>
Date: 21 May 90 12:47:11 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 44
Posted: Mon May 21 13:47:11 1990