aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-script.el
diff options
context:
space:
mode:
authorDavid Aspinall1998-11-09 18:17:08 +0000
committerDavid Aspinall1998-11-09 18:17:08 +0000
commit1044ec7dbc0335ae122fe062f79219ac310a4f09 (patch)
tree85b00eb6591bee6abf846c992853f4167847307a /generic/proof-script.el
parent746c0cbf5c4ba0d718de33c74bb7c5fa50607123 (diff)
Added proof-script-indent user option, to enable indentation code.
Disabled by default. May be activated by particular proof assistants if they feel confident about it. I don't. Made proof-indent be autoloaded as needed. Lets pray it won't be.
Diffstat (limited to 'generic/proof-script.el')
-rw-r--r--generic/proof-script.el14
1 files changed, 8 insertions, 6 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el
index f9b4a0b4..403f1af4 100644
--- a/generic/proof-script.el
+++ b/generic/proof-script.el
@@ -11,7 +11,12 @@
(require 'proof)
(require 'proof-syntax)
-(require 'proof-indent)
+
+;; If it's disabled by proof-script-indent, it won't need to be
+;; loaded.
+(autoload 'proof-indent-line "proof-indent"
+ "Indent current line of proof script")
+
;; Spans are our abstraction of extents/overlays.
(eval-and-compile
@@ -1444,9 +1449,6 @@ sent to the assistant."
(define-key map [(control c) ?h] 'proof-help)
(define-key map [(meta p)] 'proof-previous-matching-command)
(define-key map [(meta n)] 'proof-next-matching-command)
-;; FIXME da: this shouldn't need setting, because it works
-;; via indent-line-function which is set below. Check this.
-(define-key map [tab] 'proof-indent-line)
(proof-define-keys map proof-universal-keys))
@@ -1498,8 +1500,8 @@ finish setup which depends on specific proof assistant configuration."
'proof-active-terminator)
(make-local-variable 'indent-line-function)
- (setq indent-line-function 'proof-indent-line)
-
+ (if proof-script-indent
+ (setq indent-line-function 'proof-indent-line))
;; Toolbar
;; (NB: autloads proof-toolbar, which extends proof-menu variable)