[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Local Variable ignored - almost got it
From: |
NOGUET Dominique |
Subject: |
Re: [AUCTeX] Local Variable ignored - almost got it |
Date: |
Thu, 23 Aug 2012 12:56:27 +0000 |
Hi,
I managed to get Local variables to work in non LaTeX file (e.g in a text file)!
Then I tried to make LaTeX mode to run 'lighter' by removing all the hooks. =>
managed to get Local variables to work in .tex files too :-)
Put the hooks back one by one to find the nasty one. And my conclusion is :
(add-hook 'LaTeX-mode-hook 'visual-line-mode) was guilty.
Why did I have it there? Well, yet because it's recommended in the AucTex
manual.
Any views on this ? I commented the line in my init file... hoping I'm not
missing much.
In the meantime, I'll enjoy local variables again !
Cheers,
Dominique
-----Message d'origine-----
De : NOGUET Dominique
Envoyé : jeudi 23 août 2012 11:44
À : address@hidden
Objet : RE: [AUCTeX] Local Variable ignored
Hello Ralf, Tassilo,
Many thanks for the fast responsiveness.
>>> Why do you set the default value from its standard setting?
>> It's recommended in the manual. See (info "(auctex)Top"). (c:
Indeed, I'm a disciplined user who reads and applies user manuals ;-)
>>>I have dwim, and when I create a new tex file I'm also queried for the
>>>master file.
FYI, I tried 'dwim', which created an init file error (Symbol's value as
variable is void)
>>>I'd suggest that you test if local variables work at all, e.g., try setting
>>>things like tab-width with it.
>>>If that doesn't work too, then it's surely not an AUCTeX issue.
You're right, changing tab-width failed too... I have to look elsewhere.
FYI:
> I have the same behaviour when I execute (setq TeX-master"hdr") from the
> minibuffer.
>>Huh? What's that good for? That sets the buffer local value of TeX-master
>>in the elisp file that contains that code. That doesn't make sense...
Well, maybe I'm confusing things, but I wanted to check that I could change the
TeX-master value attached to that buffer. (I did not expect it would solve the
problem, but just wanted to check that TeX-master was not stuck to nil).
Thanks again. I'll check further...
Dominique
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Tassilo Horn
Envoyé : jeudi 23 août 2012 06:19
À : address@hidden
Objet : Re: [AUCTeX] Local Variable ignored
Ralf Angeli <address@hidden> writes:
>>> In order to specify a master file, I'm using local variables. That
>>> is: I have (setq-default TeX-master nil) in my xemacs init file, and
>>
>> Why do you set the default value from its standard setting?
>
> It's recommended in the manual. See (info "(auctex)Top"). (c:
Oh, I see. It's a bit strange that the first page of a manual tells users to
change default values. I don't see exactly how nil and dwim for TeX-master
differ. I have dwim, and when I create a new tex file I'm also queried for the
master file.
BTW: the dwim value isn't documented in the manual.
Bye,
Tassilo
_______________________________________________
auctex mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/auctex
- Re: [AUCTeX] Local Variable ignored - almost got it,
NOGUET Dominique <=