auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] safe-local-variable expressions


From: David Kastrup
Subject: Re: [AUCTeX-devel] safe-local-variable expressions
Date: Wed, 10 May 2006 16:25:50 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Reiner Steib <address@hidden> writes:

> On Wed, May 10 2006, David Kastrup wrote:
>
>>> +2006-05-10  Reiner Steib  <address@hidden>
>>> +
>>> +   * tex.el (TeX-master): Quote safe-local-variable lambda expression
>>> +   to avoid byte compilation.
>>> +
>>
>> What would be the adverse effect of byte compilation here?
>
> In the output of `describe-variable' you'll see the byte-code unless
> the expression is quoted:
>
> ,----[ <f1> v TeX-master RET ]
> | TeX-master is a variable defined in `tex.el'.
> | Its value is nil
> | 
> | Automatically becomes buffer-local when set in any fashion.
> | 
> | This variable is safe to use as a file local variable only if its value
> | satisfies the predicate `#[(x) [BYTE-CODE] [x (t nil shared dwim)] 2]'.
> | [...]
> `----
>
> Richard advised to quote the lambda expression in this case.  See the
> following discussion on emacs-pretest-bug:
> http://thread.gmane.org/v97j4v1um6.fsf%40marauder.physik.uni-ulm.de
> http://thread.gmane.org/gmane.emacs.pretest.bugs/11847/focus=11937

Hm, maybe just make the function non-anonymous?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

[Prev in Thread] Current Thread [Next in Thread]