branch: main
commit 1891f8a10219e29be55ae0ba0d74ad6fd09f79ec
Author: Stefan Monnier <[email protected]>
Commit: Arash Esbati <[email protected]>
Don't require package.el at runtime
* auctex.el: Lift the requirement for `no-byte-compile' set to t.
`package-get-version' is now called during the compilation and not
at runtime.
---
auctex.el | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/auctex.el b/auctex.el
index 88728a5b..c644a491 100644
--- a/auctex.el
+++ b/auctex.el
@@ -33,21 +33,18 @@
;;; Code:
;; This can be used for starting up AUCTeX, e.g., when not installed
-;; from ELPA. We have to set `no-byte-compile' to t otherwise the
-;; compiler will eval the form during the compilation where
-;; `load-file-name' is nil and things will go wrong.
+;; from ELPA.
-(require 'tex-site
- (expand-file-name "tex-site.el"
- (file-name-directory load-file-name)))
+;; The silly `(when t' test stops performing the `require' during
+;; compilation where `load-file-name' is nil and things would go wrong.
+(when t
+ (require 'tex-site
+ (expand-file-name "tex-site.el"
+ (file-name-directory load-file-name))))
(defconst AUCTeX-version (package-get-version)
"AUCTeX version.")
(provide 'auctex)
-;; Local Variables:
-;; no-byte-compile: t
-;; End:
-
;;; auctex.el ends here