Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

file local variables

1 view
Skip to first unread message

Colin Owen Rafferty

unread,
Nov 16, 1993, 6:42:38 AM11/16/93
to
Hello-

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!

Kyle Jones

unread,
Nov 16, 1993, 7:00:59 PM11/16/93
to
Colin Owen Rafferty writes:
> 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?

Yup, and I think you're right, local variables ought to be
disallowed.

Colin Owen Rafferty

unread,
Nov 17, 1993, 5:45:42 AM11/17/93
to

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'.

0 new messages