On a system with emacs and xemacs installed, installing auctex breaks
the auctex of xemacs in some cases.
It breaks when [...]
Thomas Deselaers <[email protected]> wrote:
this is with an .xemacs/init.el file of
-------------------------------------------------------------------
(require 'tex-site)
-------------------------------------------------------------------
when doing the same with parameter -debug-init we get:
-------------------------------------------------------------------
Signaling: (wrong-number-of-arguments add-to-list 3)
add-to-list(load-path "/usr/share/emacs/site-lisp/auctex/" append)
load-internal("tex-site" nil t nil undecided)
load("tex-site" nil t nil)
require(tex-site)
load-internal("/u/deselaers/.xemacs/init.el" t t t undecided)
load("/u/deselaers/.xemacs/init.el" t t t)
load-user-init-file()
load-init-file()
command-line()
normal-top-level()
-------------------------------------------------------------------
When choosing "loaded by default" in debconf, we have no problems.
This is strange (too me, at least). In XEmacs' own tex-site.el, the
load-path call is commented out, and consequently there's no load-path
call in tex-site.elc.
Therefore it seems that the tex-site.el that is loaded by the (require 'tex-site) line is auctex's. I am not familiar to XEmacs, but I don't
think that this is correct. Hm, maybe it is, because here XEmacs finds /usr/local/share/emacs/site-lisp/tex-site.el with
M-x locate-library RET tex-site
although "/usr/local/share/emacs/site-lisp/" is not in the load-path.
So now let's assume that XEmacs does load auctex's tex-site.el. Then I
still do not understand where the wrong add-to-list statement comes
from. In tex-sit.el (the one from auctex-11.14-3) we have one occurence
of "load-path", and that is
(add-to-list 'load-path TeX-lisp-directory).
TeX-lisp-directory is defined in the same file as
(defcustom TeX-lisp-directory
(concat "/usr/share/"
(symbol-name debian-emacs-flavor)
"/site-lisp/auctex/")
"The directory where the AUC TeX Lisp files are located."
:group 'TeX-file
:type 'directory)
Hi AUCTeXnicians,
maybe you can help with this strange bug report in Debian. I don't
even know if it is a problem with AUCTeX, or rather with XEmacs.
The original reporter wrote:
On a system with emacs and xemacs installed, installing auctex
breaks the auctex of xemacs in some cases.
It breaks when [...]
when there is no site-wide startup file containing (require 'tex-site),
but this line is the only one of the user's XEmacs startup file:
[email protected] (Frank K�ster) wrote:
Thomas Deselaers <[email protected]> wrote:
this is with an .xemacs/init.el file of
-------------------------------------------------------------------
(require 'tex-site)
-------------------------------------------------------------------
when doing the same with parameter -debug-init we get:
-------------------------------------------------------------------
Signaling: (wrong-number-of-arguments add-to-list 3)
add-to-list(load-path "/usr/share/emacs/site-lisp/auctex/" append)
load-internal("tex-site" nil t nil undecided)
load("tex-site" nil t nil)
require(tex-site)
load-internal("/u/deselaers/.xemacs/init.el" t t t undecided)
load("/u/deselaers/.xemacs/init.el" t t t)
load-user-init-file()
load-init-file()
command-line()
normal-top-level()
-------------------------------------------------------------------
When choosing "loaded by default" in debconf, we have no problems.
(This writes the require... in the site-wide startup file, or rather in /etc/emacs/site-start.d/50auctex.el.)
Signaling: (wrong-number-of-arguments add-to-list 3)
add-to-list(load-path "/usr/share/emacs/site-lisp/auctex/" append)
Anyway, the call is done using
(add-to-list 'load-path "/usr/share/emacs/site-lisp/auctex/" 'append)
and this syntax is illegal on XEmacs.
The example tex-site.el in AUCTeX contains no such call.
This is a pure Debian package problem, or a user configuration problem.
David Kastrup <[email protected]> wrote:
Signaling: (wrong-number-of-arguments add-to-list 3)
add-to-list(load-path "/usr/share/emacs/site-lisp/auctex/" append)
Anyway, the call is done using
(add-to-list 'load-path "/usr/share/emacs/site-lisp/auctex/" 'append)
and this syntax is illegal on XEmacs.
The example tex-site.el in AUCTeX contains no such call.
This is a pure Debian package problem, or a user configuration problem.
I hadn't follwed this thread, but...
In Debian Emacs packages, we usually do something like:
(setq load-path (append ${APPEND_LOAD_PATH} load-path))
So this looks to be a simple bug to fix if this is the case.
Peter S Galbraith <[email protected]> wrote:
David Kastrup <[email protected]> wrote:
Signaling: (wrong-number-of-arguments add-to-list 3)
add-to-list(load-path "/usr/share/emacs/site-lisp/auctex/" append)
Anyway, the call is done using
(add-to-list 'load-path "/usr/share/emacs/site-lisp/auctex/" 'append)
and this syntax is illegal on XEmacs.
The example tex-site.el in AUCTeX contains no such call.
This is a pure Debian package problem, or a user configuration problem.
I hadn't follwed this thread, but...
In Debian Emacs packages, we usually do something like:
(setq load-path (append ${APPEND_LOAD_PATH} load-path))
So this looks to be a simple bug to fix if this is the case.
I am really bad in Lisp. But it seems to me there are two differences
here: Your version does not use GNU Emacs' function add-to-list,
but furthermore the order is changed - in your version it is
prepended to the old load-path, isn't it?
Thomas Deselaers <[email protected]> wrote:
this is with an .xemacs/init.el file of
-------------------------------------------------------------------
(require 'tex-site)
-------------------------------------------------------------------
when doing the same with parameter -debug-init we get:
-------------------------------------------------------------------
Signaling: (wrong-number-of-arguments add-to-list 3)
add-to-list(load-path "/usr/share/emacs/site-lisp/auctex/" append)
Therefore it seems that the tex-site.el that is loaded by the (require 'tex-site) line is auctex's. I am not familiar to XEmacs, but I don't
think that this is correct.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 716 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 52:23:53 |
| Calls: | 12,115 |
| Calls today: | 6 |
| Files: | 15,010 |
| Messages: | 6,518,589 |
| Posted today: | 1 |