🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

nitpick: the permanence of vm-write-file-hook

#9239
From: kyle
Date: Wed, 29 Jan 1992 17:28
23 lines
1384 bytes
 > At the end of vm.el (VM 5.21), you do:
 > 
 > (if (not (memq 'vm-write-file-hook write-file-hooks))
 >     (setq write-file-hooks
 > 	  (cons 'vm-write-file-hook write-file-hooks)))
 > 
 > which means that your write-file-hook will be a permanent feature of the
 > global emacs environment after VM has been invoked once:

The hook has no effect in any other buffers, because other buffer
won't be in vm-mode.  So it is harmless.

 > I think it might be a little cleaner to include a
 > 
 >   (make-local-variable 'write-file-hooks)
 > 
 > in vm-mode-internal () to avoid altering the global value of
 > write-file-hooks after entering VM.

Perhaps.  But Emacs will trash the local copy of write-file-hooks
if you C-x C-w and save to a different filename.  I could restore
it afterwards, but it seemed simpler to just set it globally and
forget about it.
Technical Details
Message-ID: <9201291728.AA19856@wendy-fate.UU.NET>
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm
References: <9201290855.AA16917@relay1.UU.NET>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,96d3359e5135d6fb
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 1992-01-29 09:33:12 PST
Newsgroups: gnu.emacs.vm.bug
Sender: bug-vm-request@uunet.uu.net
Date: Wed, 29 Jan 92 12:28:36 -0500
From: kyle@wendy-fate.uu.net
Message-ID: <9201291728.AA19856@wendy-fate.UU.NET>
Subject: nitpick: the permanence of vm-write-file-hook
References: <9201290855.AA16917@relay1.UU.NET>
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm