aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2010-07-01 21:15:44 +0000
committerDavid Aspinall2010-07-01 21:15:44 +0000
commit8dedd5415de018e4ff901faec0fd5e3f02d24781 (patch)
tree0a18dd11090cbaf5c8319a962bdd2e8060beb481
parent1a411c647f7af7354ca53f8a8d5158cef512dda1 (diff)
proof-last-locked-span: save-excursion -> with-current-buffer to avoid
spurious warning in Emacs 23.2
-rw-r--r--coq/coq.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 5fdbbfb8..0375a5d4 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -289,11 +289,8 @@ used see coq-set-state-number. Initially 1 because Coq initial state has number
)
(defun proof-last-locked-span ()
- (save-excursion ;; didn't found a way to avoid buffer switching
- (set-buffer proof-script-buffer)
- (span-at (- (proof-unprocessed-begin) 1) 'type)
- )
- )
+ (with-current-buffer proof-script-buffer
+ (span-at (- (proof-unprocessed-begin) 1) 'type)))
;; clone-buffer do not keep the current content of proof-response-buffer, so
;; here is my version