diff options
author | David Aspinall <da@inf.ed.ac.uk> | 2000-05-09 10:24:47 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 2000-05-09 10:24:47 +0000 |
commit | cc354998c86a659f7d909725cdd772ccff4e57c5 (patch) | |
tree | 1905c5020dc19c9a0a002c31c3fac969fcef4fce /generic/proof.el | |
parent | 0d947c452728787ea2ebc8908f5739d297b33d03 (diff) |
Removed autoloads, util functions.
Diffstat (limited to 'generic/proof.el')
-rw-r--r-- | generic/proof.el | 99 |
1 files changed, 8 insertions, 91 deletions
diff --git a/generic/proof.el b/generic/proof.el index d2eb93a1..0f0964fd 100644 --- a/generic/proof.el +++ b/generic/proof.el @@ -1,6 +1,7 @@ -;; proof.el Proof General basic functions. All files require this one. +;; proof.el Proof General loader. All files require this one. ;; ;; Copyright (C) 1998-2000 LFCS Edinburgh. +;; ;; Authors: David Aspinall, Yves Bertot, Healfdene Goguen, ;; Thomas Kleymann and Dilip Sequeira ;; @@ -9,94 +10,21 @@ ;; $Id$ ;; -(defmacro deflocal (var value &optional docstring) - "Define a buffer local variable VAR with default value VALUE." - `(progn - (defvar ,var nil ,docstring) - (make-variable-buffer-local (quote ,var)) - (setq-default ,var ,value))) - (require 'proof-site) ; site config - -;; cl is dumped with my XEmacs 20.4, but not FSF Emacs 20.2. -;; would rather it was autoloaded but autoloads broken in FSF. -(require 'cl) - +(require 'proof-compat) ; Emacs and OS compatibility +(require 'proof-utils) ; utilities (require 'proof-config) ; configuration variables -(require 'proof-splash) ; display splash screen - -;;; -;;; Emacs libraries -;;; - -;; browse-url function doesn't seem to be autoloaded in -;; XEmacs 20.4, but it is in FSF Emacs 20.2. -(or (fboundp 'browse-url) - (autoload 'browse-url "browse-url" - "Ask a WWW browser to load URL." t)) - -;; These are internal functions of font-lock -(autoload 'font-lock-set-defaults "font-lock") -(autoload 'font-lock-fontify-region "font-lock") -(autoload 'font-lock-append-text-property "font-lock") - - -;;; FIXME: autoloads should be automatic!! - -;;; -;;; Autoloads for main code -;;; - -(autoload 'proof-mode "proof-script" - "Proof General major mode class for proof scripts.") - -(autoload 'proof-shell-mode "proof-shell" - "Proof General shell mode class for proof assistant processes") - -;; Toolbar defines scripting menu as well as toolbar, so FSF *does* -;; need to load it. We could consider separating menu code from -;; proof-toolbar, but they are defined using a uniform mechanism. -(autoload 'proof-toolbar-setup "proof-toolbar" - "Initialize Proof General toolbar and enable it for the current buffer" t) - - -;;; -;;; More autoloads to help define interface between files -;;; - -(autoload 'proof-shell-available-p "proof-shell" - "Returns non-nil if there is a proof shell active and available.") - -(autoload 'proof-shell-invisible-command "proof-shell" - "Send CMD to the proof process without revealing it to the user.") - -(autoload 'proof-x-symbol-toggle "proof-x-symbol" - "Toggle support for x-symbol. With optional ARG, force on if ARG<>0." - t) - -(autoload 'proof-x-symbol-decode-region "proof-x-symbol" - "Call (x-symbol-decode-region START END), if x-symbol support is enabled.") - -(autoload 'proof-x-symbol-shell-config "proof-x-symbol" - "Activate/deactivate x-symbol in Proof General shell, goals, and response buffer.") - -(autoload 'proof-x-symbol-mode "proof-x-symbol" - "Turn on or off x-symbol mode in the current buffer.") - -(autoload 'proof-x-symbol-configure "proof-x-symbol" - "Configure the current buffer for X-Symbol.") +(if (and proof-splash-enable + (not (noninteractive))) + (proof-splash-display-screen)) ;;; ;;; Global variables ;;; -; rough test for XEmacs on win32 -(defconst proof-running-on-win32 (fboundp 'win32-long-file-name) - "Non-nil if we're running on a win32 system.") - (deflocal proof-buffer-type nil "Symbol indicating the type of this buffer: 'script, 'shell, 'pbp, or 'response.") @@ -135,7 +63,7 @@ read.") "Process buffer where the proof assistant is run.") (defvar proof-goals-buffer nil - "The goals buffer (also known as the pbp buffer).") + "The goals buffer.") (defvar proof-response-buffer nil "The response buffer.") @@ -161,23 +89,12 @@ of the proof (starting from 1).") "End-of-line string for proof process.") -;;; -;;; Compatibility: define some stuff for FSF Emacs -;;; - -(or (fboundp 'warn) - (defun warn (str &rest args) - "Issue a warning STR. Defined by PG for XEmacs compatibility." - (apply 'message str args) - (sit-for 2))) - ;;; ;;; Load other Proof General libraries ;;; -(require 'proof-utils) (require 'proof-system) |