all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Setting local variables in a file
@ 2011-05-23 14:07 Ed Reingold
  2011-05-23 15:07 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Ed Reingold @ 2011-05-23 14:07 UTC (permalink / raw)
  To: help-gnu-emacs

The following used to work (in an old version of Emacs) at the end of
a LaTeX file:

   %%% Local variables: %%%
   %%% tex-command:"/export/home/reingold/calendar-book/third-edition/
doerrata" %%%
   %%% End: %%%

But now that I have switched to Emacs 23.3, those lines no longer have
the desired effect.
What am I doing wrong and how do I fix it?

Thanks!


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting local variables in a file
  2011-05-23 14:07 Setting local variables in a file Ed Reingold
@ 2011-05-23 15:07 ` Stefan Monnier
  2011-05-23 17:50   ` Ed Reingold
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2011-05-23 15:07 UTC (permalink / raw)
  To: help-gnu-emacs

> The following used to work (in an old version of Emacs) at the end of
> a LaTeX file:

>    %%% Local variables: %%%
>    %%% tex-command:"/export/home/reingold/calendar-book/third-edition/
> doerrata" %%%
>    %%% End: %%%

> But now that I have switched to Emacs 23.3, those lines no longer have
> the desired effect.
> What am I doing wrong and how do I fix it?

These lines should work, and work fine in my tests.  The only thing
thing is that tex-command is not known to be safe to set in this way, so
when I open such a file, Emacs prompts me to know whether I do want to
apply this setting.  Not sure why you don't see this prompt.  Maybe you
have customized enable-local-variables?


        Stefan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Setting local variables in a file
  2011-05-23 15:07 ` Stefan Monnier
@ 2011-05-23 17:50   ` Ed Reingold
  0 siblings, 0 replies; 3+ messages in thread
From: Ed Reingold @ 2011-05-23 17:50 UTC (permalink / raw)
  To: help-gnu-emacs

On May 23, 10:07 am, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> > The following used to work (in an old version of Emacs) at the end of
> > a LaTeX file:
> >    %%% Local variables: %%%
> These lines should work, and work fine in my tests.  The only thing
> thing is that tex-command is not known to be safe to set in this way, so
> when I open such a file, Emacs prompts me to know whether I do want to
> apply this setting.  Not sure why you don't see this prompt.  Maybe you
> have customized enable-local-variables?


That was the problem---I did not have enable-local-variables set to t.
Now it works--thanks!!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-23 17:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-23 14:07 Setting local variables in a file Ed Reingold
2011-05-23 15:07 ` Stefan Monnier
2011-05-23 17:50   ` Ed Reingold

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.