aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-script.el
diff options
context:
space:
mode:
authorDavid Aspinall2003-06-08 20:32:12 +0000
committerDavid Aspinall2003-06-08 20:32:12 +0000
commit52bb9c18eed420f15139528c712641fb9886720d (patch)
treec96b03c83828fd8ca78fbb826ea5e1fd0ab2bf91 /generic/proof-script.el
parent433299f02dcc0ab055ee1447356a3b2c3d1f8d69 (diff)
Only give hint about C-c C-. if not already visible
Diffstat (limited to 'generic/proof-script.el')
-rw-r--r--generic/proof-script.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el
index ffad55be..d44d122f 100644
--- a/generic/proof-script.el
+++ b/generic/proof-script.el
@@ -473,7 +473,12 @@ Intended as a hook function for `proof-shell-handle-error-or-interrupt-hook'."
((eq proof-shell-error-or-interrupt-seen 'interrupt)
(proof-with-current-buffer-if-exists
proof-script-buffer
- (pg-jump-to-end-hint)))))
+ ;; Give a hint of how to jump to the end of locked, unless visible.
+ (let ((pos (with-current-buffer proof-script-buffer
+ (proof-locked-end)))
+ (win (get-buffer-window proof-script-buffer t)))
+ (unless (and win (pos-visible-in-window-p pos))
+ (pg-jump-to-end-hint)))))))
@@ -2355,8 +2360,8 @@ command."
(proof-activate-scripting)
(let ((span (span-at (point) 'type)))
;; If no span at point, retracts the last span in the buffer.
- (unless span
- (proof-goto-end-of-locked)
+ (unless span
+ (proof-goto-end-of-locked) ; NB: this moves point
(backward-char)
(setq span (span-at (point) 'type)))
(proof-retract-target span delete-region))))