Article View: gnu.emacs.vm.bug
Article #9233nitpick: the permanence of vm-write-file-hook
From: Eyvind Ness
Date: Wed, 29 Jan 1992 08:52
Date: Wed, 29 Jan 1992 08:52
24 lines
1171 bytes
1171 bytes
Kyle,
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:
write-file-hooks ...evaluated in any other buffer
=> (vm-write-file-hook (lambda nil (and (fboundp (quote update-std-header)) (update-std-header))))
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.
Eyvind.
Technical Details
Message-ID:
<9201290855.AA16928@relay1.UU.NET>Path:
arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vmShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6829,96d3359e5135d6fb,start X-Google-Attributes: gidf6829,public X-Google-ArrivalTime: 1992-01-29 01:03:10 PST Newsgroups: gnu.emacs.vm.bug Sender: bug-vm-request@uunet.uu.net Message-ID: <9201290855.AA16928@relay1.UU.NET> From: Eyvind Ness <eyvind@hrp.no> Date: Wed, 29 Jan 92 8:52 GMT Reply-To: Eyvind.Ness@HRP.No Subject: nitpick: the permanence of vm-write-file-hook Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm