[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] TeX-command-master fails if fun 'file' is defined.
From: |
Bjørn Haagensen |
Subject: |
[Bug-AUCTeX] TeX-command-master fails if fun 'file' is defined. |
Date: |
Fri, 5 Oct 2007 17:11:31 +0200 |
Hi,
If a function 'file' is defined running 'TeX-command-master' fails
with the following backtrace:
Debugger entered--Lisp error: (wrong-number-of-arguments (lambda nil
(interactive)) 2)
file(t t)
apply(file (t t))
TeX-command-expand("%l \"%(mode)\\input{%t}\"" TeX-master-file)
TeX-command("LaTeX" TeX-master-file nil)
TeX-command-master(nil)
call-interactively(TeX-command-master)
To reproduce use '(defun file () (interactive))'. Function 'file' does
not seem to be defined by auctex, so I think that if 'file' is used
internaly, auctex should not pick up global definitions.
My sys info:
Ubuntu Gutsy 7.10 (beta)
GNU Emacs 23.0.0.1 (i486-pc-linux-gnu, GTK+ Version 2.12.0) of
2007-10-01 on samarium
Auctex 11.83.
PS! I ran into this bug while trying out icicles for emacs. It seems
that the developer of icicles has seen this before, and in fact a user
has reported the following to him.
> What happens deep in the internals
> of auctex when running TeX-command-expand that it runs over a list of
> symbols checking to see whether they are variables or functions and
> then taking appropriate action. Unfortunately one of these happens to
> be called `file' and it ought to be a variable - my lisp skills aren't
> 100%, but it looks to me that this variable _is_ local to the auctex
> function, but... Anyway, it seems to be picking up icicles globally
> defined function `file' instead and then going off the rails.
Regards Bjørn
- [Bug-AUCTeX] TeX-command-master fails if fun 'file' is defined.,
Bjørn Haagensen <=