bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] Re: TeX-command-master fails if fun 'file' is defined.


From: David Kastrup
Subject: Re: [Bug-AUCTeX] Re: TeX-command-master fails if fun 'file' is defined.
Date: Sun, 07 Oct 2007 13:12:09 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * Ralf Angeli (2007-10-05) writes:
>
>> * Bjørn Haagensen (2007-10-05) writes:
>>
>>> If a function 'file' is defined running 'TeX-command-master' fails
>>> with the following backtrace:
>>
>> An easy way out would be to rename the symbol to something less generic,
>> e.g. `TeX-master-or-region-file'.  A nicer way would be to get rid of
>> the whole awkward construct of a locally defined function.
>
> The attached patch should do that.  It still has the shortcoming of
> `TeX-master-or-region-file' relying on `file' being defined outside of
> it and indicating the function to call.  Any better suggestions?

I think this tries to hard to keep the old contorted logic while still
breaking backwards-compatibility with previous TeX-command-list
specifications.

I think we should just special-case a check for 'file and be done (for
as long as TeX-command-list keeps its basic structure).  Future AUCTeX
programmers will thank us for it.  The present logic is too clever
just for the single purpose of interpreting "file".

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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