aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2003-04-05 15:36:25 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2003-04-05 15:36:25 +0000
commit437accccf9135f01ea6d67620d3c7f2b9fca3ba9 (patch)
treeee4d303b446e36076d0c2534b5663ee3cb105c6d /generic
parente87005f433c39d5d797ab3866a88420c594abefe (diff)
Tweak to initialisation; fix prob with turning on during scripting.
Diffstat (limited to 'generic')
-rw-r--r--generic/proof-x-symbol.el25
1 files changed, 15 insertions, 10 deletions
diff --git a/generic/proof-x-symbol.el b/generic/proof-x-symbol.el
index 58fd804f..c2c19a91 100644
--- a/generic/proof-x-symbol.el
+++ b/generic/proof-x-symbol.el
@@ -44,9 +44,10 @@
;; Current TODO here:
;;
-;; -- Fix code at end so that (proof-ass x-symbol-enable) setting works,
-;; startup follows sequence recommended by CW
-;;
+;; -- Is it possible to remove setting of language in x-symbol-enable?
+;; -- Simplify proof-x-symbol-initialize
+;; -- Investigate font-lock errors (XEmacs 21.4.8):
+;; Error caught in `font-lock-pre-idle-hook': (wrong-type-argument markerp nil)
(defvar proof-x-symbol-initialized nil
@@ -185,10 +186,6 @@ in future if we have just activated it for this buffer."
(set (proof-ass-sym x-symbol-enable) nil) ; assume failure!
(proof-x-symbol-initialize 'giveerrors)
(set (proof-ass-sym x-symbol-enable) t)))
- ;; FIXME: on startup, x-symbol-language should somehow be
- ;; set automatically, but perhaps something loads too late.
- ;; Hence the next line to ensure things work smoothly.
- (setq x-symbol-language (proof-ass x-symbol-language))
(x-symbol-mode)
(proof-x-symbol-mode-associated-buffers))
@@ -276,13 +273,19 @@ Assumes that the current buffer is the proof shell buffer."
;; (see proof-x-symbol-refresh-output-buffers above)
;; [ Actually, we could ask that the activate/decativate command
;; itself does this ]
+ ;;
(if proof-x-symbol-initialized
(progn
(cond
((proof-ass x-symbol-enable)
(proof-x-symbol-set-language)
(if (and proof-xsym-activate-command
- (proof-shell-live-buffer))
+ (proof-shell-live-buffer)
+ ;; may fail if triggered during scripting.
+ ;; Also: should cache status of x-symbol mode in
+ ;; proof shell; current behaviour re-calls this
+ ;; code every time a script file is loaded...
+ (proof-shell-available-p))
(proof-shell-invisible-command-invisible-result
proof-xsym-activate-command))
;; We do encoding as the first step of input manipulation
@@ -340,8 +343,10 @@ Assumes that the current buffer is the proof shell buffer."
;;
;; Initialize x-symbol-support on load-up if user has asked for it
;;
-(if (proof-ass x-symbol-enable)
- (proof-x-symbol-initialize))
+;; FIXME: this initialization seems to result in x-symbol-language not
+;; being set properly. We let this be called on demand instead.
+;(if (proof-ass x-symbol-enable)
+; (proof-x-symbol-initialize))
(provide 'proof-x-symbol)
;; End of proof-x-symbol.el