diff options
| author | David Aspinall | 2010-07-01 21:15:44 +0000 |
|---|---|---|
| committer | David Aspinall | 2010-07-01 21:15:44 +0000 |
| commit | 8dedd5415de018e4ff901faec0fd5e3f02d24781 (patch) | |
| tree | 0a18dd11090cbaf5c8319a962bdd2e8060beb481 | |
| parent | 1a411c647f7af7354ca53f8a8d5158cef512dda1 (diff) | |
proof-last-locked-span: save-excursion -> with-current-buffer to avoid
spurious warning in Emacs 23.2
| -rw-r--r-- | coq/coq.el | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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 |
