🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #8981

bug in updating summary when summary buffer has been killed

#8981
From: Joe Wells
Date: Tue, 14 Jul 1992 02:13
29 lines
1566 bytes
VM 5.32.

I noticed that the "d" delete command was failing with a nil not stringp
error.  I had killed the summary buffer, but the code in
vm-update-message-summary was still trying to switch to the summary buffer
to update it.  It assumed that if the vm-su-start-of marker existed then
it had a valid marker position.  Here is a fix:

----------------------------------------------------------------------
--- vm-summary.el-dist	Thu Apr  9 01:30:57 1992
+++ vm-summary.el	Mon Jul 13 22:09:53 1992
@@ -116,6 +116,8 @@
 	summary)
     (while m-list
       (if (and (vm-su-start-of (car m-list))
+	       ;; Can be marker with no position if summary was killed.
+	       (marker-position (vm-su-start-of (car m-list)))
 	       (buffer-name (marker-buffer (vm-su-start-of (car m-list)))))
 	(save-excursion
 	  (setq summary (vm-sprintf 'vm-summary-format (car m-list)))

----------------------------------------------------------------------

-- 
Enjoy,

Joe Wells <jbw@cs.bu.edu>

Member of the League for Programming Freedom --- send e-mail for details
Technical Details
Message-ID: <9207140213.AA00838@csd.bu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,459b6bffa3cb0b08,start
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 1992-07-13 07:47:48 PST
Newsgroups: gnu.emacs.vm.bug
Sender: bug-vm-request@uunet.uu.net
From: jbw@cs.bu.edu (Joe Wells)
Date: Mon, 13 Jul 92 22:13:48 -0400
Message-ID: <9207140213.AA00838@csd.bu.edu>
Subject: bug in updating summary when summary buffer has been killed
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm
Lines: 29