aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>1999-11-19 19:07:26 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>1999-11-19 19:07:26 +0000
commit3af5faaa5971dc27919cc22cbad21657e90d7c62 (patch)
tree7313594cfb02676793ceb4ada350590ef9b58698
parent473617246280579c0e171943b79cabaad89fc4f8 (diff)
Fix for proof-script-new-command-advance.
-rw-r--r--generic/proof-script.el22
1 files changed, 14 insertions, 8 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el
index 773e7967..510daa51 100644
--- a/generic/proof-script.el
+++ b/generic/proof-script.el
@@ -1311,14 +1311,18 @@ Assumes that point is at the end of a command."
;; start of a blank line. (This has the pleasing
;; effect that blank regions of the buffer are
;; automatically extended when inserting new commands).
- (cond
- ((eq (forward-line) 1)
- (newline))
- ((eolp)
- (newline)
- (forward-line -1)))
+; unfortunately if we're not at the end of a line to start,
+; it skips past stuff to the end of the line! don't want
+; that.
+; (cond
+; ((eq (forward-line) 1)
+; (newline))
+; ((eolp)
+; (newline)
+; (forward-line -1)))
+ (newline)
;; Multiple commands per line: skip spaces at point,
- ;; and insert the same number of spaces that were
+ ;; and insert the 1/0 number of spaces that were
;; skipped in front of point (at least one).
;; This has the pleasing effect that the spacing
;; policy of the current line is copied: e.g.
@@ -1329,8 +1333,10 @@ Assumes that point is at the end of a command."
;; this.
(let ((newspace (max (skip-chars-forward " \t") 1))
(p (point)))
+ (if proof-script-command-separator
+ (insert proof-script-command-separator)
(insert-char ?\ newspace)
- (goto-char p))))
+ (goto-char p)))))
(defun proof-script-next-command-advance ()
"Move point to the beginning of the next command if it's nearby.