aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2001-05-16 16:05:50 +0000
committerDavid Aspinall2001-05-16 16:05:50 +0000
commitc461d1563cc5f0de63670978774e0326b385e810 (patch)
tree05fac1c03c4546e61a704801b1f85035e92d6453
parent61d9c027682d2e61e5441447e6773673352bccc2 (diff)
Move loading of compatibility flag, autoloads, basic customization groups here.
-rw-r--r--generic/proof-site.el60
1 files changed, 56 insertions, 4 deletions
diff --git a/generic/proof-site.el b/generic/proof-site.el
index 0a3dcb71..74ee3302 100644
--- a/generic/proof-site.el
+++ b/generic/proof-site.el
@@ -280,11 +280,12 @@ Note: to change proof assistant, you must start a new Emacs session.")
;; already set: things go wrong if proof general is
;; loaded for more than one prover.
(cond
- ((boundp 'proof-assistant)
+ ((and (boundp 'proof-assistant)
+ (not (string-equal proof-assistant "")))
(or (string-equal proof-assistant ,assistant-name)
- ;; If Proof General was partially loaded last time
- ;; and mode function wasn't redefined, be silent.
- (message
+ ;; If Proof General was partially loaded last time
+ ;; and mode function wasn't redefined, be silent.
+ (message
(concat
,assistant-name
" Proof General error: Proof General already in use for "
@@ -311,5 +312,56 @@ Note: to change proof assistant, you must start a new Emacs session.")
(defconst proof-general-version "Proof General Version 3.3pre010508. Released by da."
"Version string identifying Proof General release.")
+;; Now define a few autoloads and basic variables.
+
+(require 'proof-autoloads) ; autoloaded functions
+
+(defcustom proof-assistant-cusgrp nil
+ "Symbol for the customization group of the user options for the proof assistant.
+Do not change this variable! It is set automatically by the mode
+stub defined in proof-site, from the name given in
+proof-assistant-table."
+ :type 'sexp
+ :group 'prover-config)
+
+(defcustom proof-assistant-internals-cusgrp nil
+ "Symbol for the customization group of the PG internal settings proof assistant.
+Do not change this variable! It is set automatically by the mode
+stub defined in proof-site, from the name given in
+proof-assistant-table."
+ :type 'sexp
+ :group 'prover-config)
+
+(defcustom proof-assistant ""
+ "Name of the proof assistant Proof General is using.
+Do not change this variable! It is set automatically by the mode
+stub defined in proof-site, from the name given in
+proof-assistant-table."
+ :type 'string
+ :group 'prover-config)
+
+(defcustom proof-assistant-symbol nil
+ "Symbol for the proof assistant Proof General is using.
+Used for automatic configuration based on standard variable names.
+Settings will be found by looking for names beginning with this
+symbol as a prefix.
+Do not change this variable! It is set automatically by the mode
+stub defined in proof-site, from the symbols given in
+proof-assistant-table."
+ :type 'sexp
+ :group 'prover-config)
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;
+;;; Architecture flags
+;;;
+
+(eval-and-compile
+(defvar proof-running-on-XEmacs (string-match "XEmacs" emacs-version)
+ "Non-nil if Proof General is running on XEmacs.")
+;; rough test for XEmacs on win32, anyone know about FSF on win32?
+(defvar proof-running-on-win32 (fboundp 'win32-long-file-name)
+ "Non-nil if Proof General is running on a win32 system."))
+
(provide 'proof-site))
;; proof-site.el ends here