diff options
| author | David Aspinall | 2010-07-08 23:07:24 +0000 |
|---|---|---|
| committer | David Aspinall | 2010-07-08 23:07:24 +0000 |
| commit | ab841da2555ad80b14dd7d38139e8f19a57c059f (patch) | |
| tree | d18279c9413cb76a6318a7c1854a777b409a2b08 /generic/proof-script.el | |
| parent | 3f3400e0981aed4e0c6785f737aae6330af12413 (diff) | |
Cleanups for save-excursion to avoid warnings in latest Emacs versions
Diffstat (limited to 'generic/proof-script.el')
| -rw-r--r-- | generic/proof-script.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el index bdd8947b..3ad877a3 100644 --- a/generic/proof-script.el +++ b/generic/proof-script.el @@ -738,8 +738,7 @@ to allow other files loaded by proof assistants to be marked read-only." ;; General to do the loading, to alleviate file handling there; ;; we could cache meta-data resulting from processing files; ;; or even, could include parsing inside PG. - (save-excursion - (set-buffer buffer) + (with-current-buffer buffer (save-excursion ;; prevent point moving if user viewing file (if (< (proof-unprocessed-begin) (proof-script-end)) (let ((span (span-make (proof-unprocessed-begin) |
