diff options
author | 2004-08-25 11:52:16 +0000 | |
---|---|---|
committer | 2004-08-25 11:52:16 +0000 | |
commit | a0fe094b925e5a38c48137e3b35b88f191460cdd (patch) | |
tree | c6bab93bb32010d56682b26c5d0fb411163454b4 /generic | |
parent | 646a53c46063e2af83293e1351a8dd55fa986141 (diff) |
Add lib/ to load-path. Define proof-general-short-version.
Move architecture flags to proof-compat
Diffstat (limited to 'generic')
-rw-r--r-- | generic/proof-site.el | 52 |
1 files changed, 14 insertions, 38 deletions
diff --git a/generic/proof-site.el b/generic/proof-site.el index 3230d780..3b6f14ef 100644 --- a/generic/proof-site.el +++ b/generic/proof-site.el @@ -205,24 +205,12 @@ Note: to change proof assistant, you must start a new Emacs session.") :group 'proof-general) -;; Extend load path for the generic files. -(let ((proof-lisp-path - (concat proof-home-directory "generic/"))) - (or (member proof-lisp-path load-path) - (setq load-path - (cons proof-lisp-path load-path)))) - -;; During compilation from the Makefile, generic is on the load path. -;; Add all of the prover directories. -;; FIXME: this doesn't work quite right. We want to test -;; whether we are running during a compilation. How? -; (eval-when-compile -; (dolist (assistant proof-assistant-table) -; (let ((path (concat proof-home-directory -; (concat (symbol-name (car assistant)) "/")))) -; (or (member path load-path) -; (setq load-path -; (cons path load-path)))))) +;; Extend load path for the generic and library files. +(let ((addpath (lambda (p) + (or (member p load-path) + (setq load-path (cons p load-path)))))) + (funcall addpath (concat proof-home-directory "generic/")) + (funcall addpath (concat proof-home-directory "lib/"))) (defun proof-ready-for-assistant (assistant-name assistantsym) "Configure PG for ASSISTANT-NAME, symbol ASSISTANTSYM." @@ -336,16 +324,19 @@ Note: to change proof assistant, you must start a new Emacs session.") (setq assistants (cdr assistants)) ))) -;; WARNING: do not edit below here -;; (the next constant is set automatically, also its form is -;; relied upon in proof-config.el, for proof-splash-contents) +;; WARNING: do not edit below here (the next constant is set automatically) (defconst proof-general-version "Proof General Version 3.5.1pre040810. Released by da." "Version string identifying Proof General release.") +(defconst proof-general-short-version + (progn + (string-match "Version \\([^ ]+\\)\\." proof-general-version) + (match-string 1 proof-general-version))) + ;; Now define a few autoloads and basic variables. ;; 1.8.01: add a dummy package-provide command so proof-autoloads -;; is compatible with FSF Emacs. Needed for next provide +;; is compatible with FSF Emacs. Needed for next require ;; (otherwise would be in proof-compat.el). (or (fboundp 'package-provide) (defun package-provide (name &rest attributes) @@ -391,26 +382,11 @@ proof-assistant-table." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; -;;; Architecture flags -;;; - -(eval-and-compile -(defvar proof-running-on-XEmacs (string-match "XEmacs" emacs-version) - "Non-nil if Proof General is running on XEmacs.") -(defvar proof-running-on-Emacs21 (and (not proof-running-on-XEmacs) - (>= emacs-major-version 21)) - "Non-nil if Proof General is running on GNU Emacs 21 or later.") -;; rough test for XEmacs on win32, anyone know about GNU Emacs on win32? -(defvar proof-running-on-win32 (fboundp 'win32-long-file-name) - "Non-nil if Proof General is running on a win32 system.")) - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; ;;; Disable any other XEmacs x-symbol packages: we load ours manually ;;; (if (and - proof-running-on-XEmacs + (string-match "XEmacs" emacs-version) (not (featurep 'x-symbol-hooks)) ;; unless already loaded (file-exists-p (concat proof-home-directory ;; or our version removed "x-symbol/lisp/"))) |