🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Bug in VM 5.32 - incorporating new mail

#51
From: Jerry
Date: Mon, 31 Aug 1992 00:02
46 lines
2520 bytes
Ciamac Moallemi on May 27 wrote:
-> I have found a potential bug in VM 5.32: when I incorporate new mail,
-> I am asked if I really wish to kill my vm-crash-box.  This is not a
-> big deal, but it gets quite annoying after a while.  Note that I have
-> vm-visit-when-saving set to t and vm-crash-box is in my
-> auto-mode-alist (associated with vm-mode, of course).
Kyle Jones on May 27 wrote:
-> Ciamac Moallemi writes:
> > I have found a potential bug in VM 5.32: when I incorporate new mail,
[...]
-> 
-> Emacs won't ask about the killng a buffer unless it has been
-> modified.  VM should not be doing anything that would modify the
-> crash box buffer.  So the question is: how is the crash box
-> buffer being modified?

After invoking vm-mode, all of the messages in the crash box are new,
and the first such message is being marked as read, which sets the
buffer modification flag to t.

Kyle Jones on May 27 wrote:
-> Ciamac Moallemi writes:
> > Isn't VM modifying the crash box buffer when it incorporates new mail?
> > I was under the impression that new mail is first deposited into the
> > crash box buffer, and then moved to the inbox.
-> 
-> The mail is moved into the crash box before it is visited by
-> VM/Emacs.  VM visits the crash box, appends its contents to the
-> inbox buffer and the on-disk version of the inbox, removes the
-> crash box and kills the crash box buffer.  None of these actions
-> should cause the buffer modification flag to be set in the crash
-> box buffer.

Except when the crash box is in the auto-mode-alist, vm-mode is
invoked and ... then when trying to kill the crash box (which is
marked modified), etc.

Two ways to solve this:

    Don't name the vm-crash-box so that it is in auto-mode-alist
or
    (setq vm-preview-lines "some number")

to avoid modification.  I have done both.

-Jerry
Technical Details
Message-ID: <9208310002.AA19432@banach.math.ep.utexas.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm
References: <9205271728.AA08452@wendy-fate.UU.NET> <9205272119.AA06720@wendy-fate.UU.NET> <CIAMAC.92May27164310@goodgestreet.media.mit.edu>

Show Full Headers
Complete Article Headers
x-gateway: rodan.UU.NET from bug-vm to gnu.emacs.vm.bug; Sun, 30 Aug 1992 20:03:56 EDT
Date: Sun, 30 Aug 1992 18:02:48 MDT
From: jerry@math.ep.utexas.edu (Jerry)
Message-ID: <9208310002.AA19432@banach.math.ep.utexas.edu>
Organization: Department of Mathematical Sciences--University of Texas at El Paso
Subject: Re: Bug in VM 5.32 - incorporating new mail
References: <9205271728.AA08452@wendy-fate.UU.NET>
 <9205272119.AA06720@wendy-fate.UU.NET>
 <CIAMAC.92May27164310@goodgestreet.media.mit.edu>
Newsgroups: gnu.emacs.vm.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm
Sender: bug-vm-request@uunet.uu.net
Lines: 46