Hi Keita, Ikumi Keita <ik...@ikumi.que.jp> writes:
> Yes, lisp version is mandatory. Thanks for confirming. So the whole change looks like this, or am I missing something? --8<---------------cut here---------------start------------->8--- diff --git a/auctex.el b/auctex.el index 2f7af507..33240245 100644 --- a/auctex.el +++ b/auctex.el @@ -33,20 +33,17 @@ ;;; Code: -;; This can be used for starting up AUCTeX. The following somewhat -;; strange trick causes tex-site.el to be loaded in a way that can be -;; safely undone using (unload-feature 'tex-site). - -;; FIXME: I don't quite understand in which way this is better than less -;; strange code such as -;; (require 'tex-site (expand-file-name "tex-site.el" -;; (file-name-directory load-file-name)) - -(autoload 'TeX-load-hack - (expand-file-name "tex-site.el" - (file-name-directory load-file-name))) -(TeX-load-hack) +;; This can be used for starting up AUCTeX, e.g., when not installed +;; ELPA. The following form should safely be undone using +;; (unload-feature 'tex-site). +(require 'tex-site + (expand-file-name "tex-site.el" + (file-name-directory load-file-name))) (provide 'auctex) +;; Local Variables: +;; no-byte-compile: t +;; End: + ;;; auctex.el ends here diff --git a/tex-site.el.in b/tex-site.el.in index 886d2918..462a7575 100644 --- a/tex-site.el.in +++ b/tex-site.el.in @@ -94,8 +94,6 @@ shared by all users of a site." (doctex-mode . docTeX-mode)) "Alist of built-in TeX modes and their counterparts in AUCTeX.") -(defalias 'TeX-load-hack #'ignore) - (defun tex-site-unload-function () (TeX-modes-set 'TeX-modes nil) --8<---------------cut here---------------end--------------->8--- Best, Arash