GNU bug report logs -
#31150
Entries in load-path should not have trailing slashes
Previous Next
Full log
View this message in rfc822 format
When I perform a fresh build of AUCTeX from Git, I get the following
code as part of tex-site.el:
(defvar TeX-lisp-directory
(expand-file-name "auctex" (file-name-directory load-file-name))
"The directory where most of the AUCTeX lisp files are located.
For the location of lisp files associated with
styles, see the variables TeX-style-* (hand-generated lisp) and
TeX-auto-* (automatically generated lisp).")
(add-to-list 'load-path TeX-lisp-directory)
This is problematic. As the documentation for `load-path' states:
Use ‘directory-file-name’ when adding items to this path.
But `TeX-lisp-directory' has a trailing slash. This seems like a bug
to me. Can it be fixed?
The reason this came up is that I maintain an Emacs package manager,
straight.el. Once straight.el builds a package, it adds the directory
to `load-path', using `directory-file-name' as specified by the
documentation of `load-path'. But since AUCTeX insists on also adding
its own entry to `load-path', and does so with a superfluous trailing
slash, we end up with two duplicate entries. Under some
configurations, this causes duplicate entries to appear when using M-x
find-library.
Best regards,
Radon Rosborough
This bug report was last modified 1 year and 103 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.