I have vm-visit-when-saving t in VM 5.35 (beta) (I never seem to have
a non-beta version).
I just noticed that if I do a save (s) into a mail file that is not
already in emacs, it will run the 'Local Variables' string that is at
the end of a message that is in there. I don't think that this is
correct.
Did that preceding paragraph make any sense?
I have a message in a file that has a `Local Variables' section. I
don't want local variables to be enabled in the file that I'm loading
for mail.
I think I can set something up to set `enable-local-variables' for
loading, but I think that it should be done in VM.
--
Colin Rafferty, Lehman Brothers <craf...@lehman.com>
pgp print = 91FED077 BD5588B6 30B372D2 F9172162
Don't know what pgp is? Ask me!
Yup, and I think you're right, local variables ought to be
disallowed.
How about having something like:
(defun vm-find-file-noselect (filename &optional nowarn)
"Read file FILENAME into a buffer, ignoring local variables."
(let ((enable-local-variables nil))
(find-file-noselect filename nowarn)))
and use that rather than `find-file-noselect'.