aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic/proof-script.el
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2009-08-29 15:32:56 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2009-08-29 15:32:56 +0000
commit3db4a44e886cf810f4c113c998901c67a9eb9a04 (patch)
treeb059e7cafee4752fe85a006d823d7e2837bd7a45 /generic/proof-script.el
parentb601db28c0204ecf1df4d1a7315808de82e384d6 (diff)
Cleanup of interactive point moving functions (in progress)
Diffstat (limited to 'generic/proof-script.el')
-rw-r--r--generic/proof-script.el16
1 files changed, 4 insertions, 12 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el
index 0f32ccdd..ec6684af 100644
--- a/generic/proof-script.el
+++ b/generic/proof-script.el
@@ -535,16 +535,6 @@ Intended as a hook function for `proof-shell-handle-error-or-interrupt-hook'."
(win (and pos (get-buffer-window proof-script-buffer t))))
(and win (pos-visible-in-window-p pos))))
-;; Simplified version of above for toolbar follow mode -- which wouldn't
-;; work with abouve because of proof-shell-handle-error-or-interrupt-hook[?]
-(defun proof-goto-end-of-queue-or-locked-if-not-visible ()
- "Jump to the end of the queue region or locked region if it isn't visible.
-Assumes script buffer is current"
- (unless (pos-visible-in-window-p
- (proof-queue-or-locked-end)
- (get-buffer-window (current-buffer) t))
- (goto-char (proof-queue-or-locked-end))))
-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -2372,6 +2362,7 @@ Span deletion property set to flag DELETE-REGION."
(defun proof-last-goal-or-goalsave ()
+ "Return the span which is the last goal or save before point."
(save-excursion
(let ((span (span-at-before (proof-locked-end) 'type)))
(while (and span
@@ -3060,9 +3051,10 @@ Choice of function depends on configuration setting."
start))
(if (and (markerp proof-overlay-arrow)
(marker-position proof-overlay-arrow)
- (< start (marker-position proof-overlay-arrow))
+ ; only move marker up:
+ ;(< start (marker-position proof-overlay-arrow))
(>= start (proof-queue-or-locked-end)))
- (proof-set-overlay-arrow start)))
+ (proof-set-overlay-arrow (proof-queue-or-locked-end))))
(defun proof-script-set-after-change-functions ()
"Set `after-change-functions' for script buffers."