aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
authorDavid Aspinall2009-09-16 10:31:28 +0000
committerDavid Aspinall2009-09-16 10:31:28 +0000
commit7fb5e30e23dbefe96aa4bee9df9e7c161d7e4ac1 (patch)
tree7f413c8f18227e06dc2f2a617586201ab93188e4 /generic
parentd1ce95f0ffb1ed45305b7b56664fbc10cd1fbfef (diff)
Fix compile warnings
Diffstat (limited to 'generic')
-rw-r--r--generic/proof-shell.el23
1 files changed, 11 insertions, 12 deletions
diff --git a/generic/proof-shell.el b/generic/proof-shell.el
index 5eebdad5..3004c811 100644
--- a/generic/proof-shell.el
+++ b/generic/proof-shell.el
@@ -873,6 +873,17 @@ track what happens in the proof queue."
"Insert ITEM from `proof-action-list' into the proof shell."
(proof-shell-insert (nth 1 item) (nth 2 item) (nth 0 item)))
+(defsubst proof-shell-slurp-comments ()
+ "Strip comments at front of `proof-action-list', returning items stripped.
+Comments are not sent to the prover."
+ (let (cbitems nextitem)
+ (while (and proof-action-list
+ (not (nth 1 (setq nextitem
+ (car proof-action-list)))))
+ (setq cbitems (cons nextitem cbitems))
+ (setq proof-action-list (cdr proof-action-list)))
+ (nreverse cbitems)))
+
(defun proof-add-to-queue (queueitems &optional queuemode)
"Chop off the vacuous prefix of the QUEUEITEMS and queue them.
For each item with a nil command at the head of the list, invoke its
@@ -950,18 +961,6 @@ The queue mode is set to 'advancing"
(proof-set-queue-endpoints (proof-unprocessed-begin) end)
(proof-add-to-queue queueitems 'advancing))
-(defsubst proof-shell-slurp-comments ()
- "Strip comments at front of `proof-action-list', returning items stripped.
-Comments are not sent to the prover."
- (let (cbitems nextitem)
- (while (and proof-action-list
- (not (nth 1 (setq nextitem
- (car proof-action-list)))))
- (setq cbitems (cons nextitem cbitems))
- (setq proof-action-list (cdr proof-action-list)))
- (nreverse cbitems)))
-
-
(defun proof-shell-exec-loop ()
"Process the `proof-action-list'.