diff options
| author | David Aspinall | 2009-09-20 22:08:10 +0000 |
|---|---|---|
| committer | David Aspinall | 2009-09-20 22:08:10 +0000 |
| commit | 310c24324d2d4ca07ee5cc9984abbe72d2725bcc (patch) | |
| tree | 4a4cc4cb5f3953af30e87a25f11356b4054a19d2 /generic/pg-user.el | |
| parent | 71df9d8fbd6a47a251059725349c5cd8b9664589 (diff) | |
Adjustments to better obey proof-follow-mode=ignore
Diffstat (limited to 'generic/pg-user.el')
| -rw-r--r-- | generic/pg-user.el | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/generic/pg-user.el b/generic/pg-user.el index 86dda135..4eb0dda7 100644 --- a/generic/pg-user.el +++ b/generic/pg-user.el @@ -85,20 +85,20 @@ Assumes that point is at the end of a command." "Move point according to `proof-follow-mode'. If optional POS is set, use that position, else `proof-queue-or-locked-end'. Assumes script buffer is current." - (if proof-follow-mode - (let ((dest (or pos (proof-queue-or-locked-end)))) - (cond - ((eq proof-follow-mode 'locked) - (goto-char dest) - (or pos (proof-script-next-command-advance))) - ((eq proof-follow-mode 'follow) - (unless (pos-visible-in-window-p dest) - (let ((win (get-buffer-window (current-buffer) t))) - (if win - (set-window-point win dest))))) - ((and (eq proof-follow-mode 'followdown) - (> dest (point))) - (goto-char dest)))))) + (unless (eq proof-follow-mode 'ignore) + (let ((dest (or pos (proof-queue-or-locked-end)))) + (cond + ((eq proof-follow-mode 'locked) + (goto-char dest) + (or pos (proof-script-next-command-advance))) + ((eq proof-follow-mode 'follow) + (unless (pos-visible-in-window-p dest) + (let ((win (get-buffer-window (current-buffer) t))) + (if win + (set-window-point win dest))))) + ((and (eq proof-follow-mode 'followdown) + (> dest (point))) + (goto-char dest)))))) @@ -177,8 +177,7 @@ If inside a comment, just process until the start of the comment." (goto-char (proof-queue-or-locked-end)) (skip-chars-forward " \t\n") (proof-assert-until-point)) - (proof-maybe-follow-locked-end) - (proof-script-next-command-advance))) + (proof-maybe-follow-locked-end))) ;; NB: "interactive" variant merely for a simple docstring. (defun proof-assert-until-point-interactive () |
