aboutsummaryrefslogtreecommitdiffhomepage
path: root/pg-init.el
diff options
context:
space:
mode:
Diffstat (limited to 'pg-init.el')
-rw-r--r--pg-init.el25
1 files changed, 5 insertions, 20 deletions
diff --git a/pg-init.el b/pg-init.el
index a6405361..3a2e5492 100644
--- a/pg-init.el
+++ b/pg-init.el
@@ -3,7 +3,7 @@
;; This file is part of Proof General.
;; Portions © Copyright 1994-2012 David Aspinall and University of Edinburgh
-;; Portions © Copyright 2003, 2012, 2014 Free Software Foundation, Inc.
+;; Portions © Copyright 2003-2018 Free Software Foundation, Inc.
;; Portions © Copyright 2001-2017 Pierre Courtieu
;; Portions © Copyright 2010, 2016 Erik Martin-Dorel
;; Portions © Copyright 2011-2013, 2016-2017 Hendrik Tews
@@ -42,25 +42,10 @@
;;; Code:
;;;###autoload
-(eval-and-compile
- (defvar pg-init--script-full-path
- (or (and load-in-progress load-file-name)
- (bound-and-true-p byte-compile-current-file)
- (buffer-file-name)))
- (defvar pg-init--pg-root
- (file-name-directory pg-init--script-full-path)))
-
-;;;###autoload
-(unless (bound-and-true-p byte-compile-current-file)
- ;; This require breaks compilation, so it must only run when loading the package.
- (require 'proof-site (expand-file-name "generic/proof-site" pg-init--pg-root)))
-
-(eval-when-compile
- (let ((byte-compile-directories
- '("generic" "lib"
- "coq" "easycrypt" "pghaskell" "pgocaml" "pgshell" "phox")))
- (dolist (dir byte-compile-directories)
- (add-to-list 'load-path (expand-file-name dir pg-init--pg-root)))))
+(if t (require 'proof-site
+ (expand-file-name "generic/proof-site"
+ (file-name-directory
+ (or load-file-name buffer-file-name)))))
(provide 'pg-init)
;;; pg-init.el ends here