summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKasper <kpg@posteo.net>2021-04-17 14:10:32 +0200
committerGitHub <noreply@github.com>2021-04-17 13:10:32 +0100
commit0d66b02b7dd5ebd8f3e85decd00eb6aeec05d785 (patch)
treea9fa6712d6b6fc628368761acbee82b5302c8eb8
parent68c58c0194ff03cd147fcec99f0ee90ba9178875 (diff)
hyperspec: Prevent creating a letftover buffer when loading the symbol table
-rw-r--r--lib/hyperspec.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hyperspec.el b/lib/hyperspec.el
index c9462056..da4a9f37 100644
--- a/lib/hyperspec.el
+++ b/lib/hyperspec.el
@@ -137,7 +137,8 @@ If you copy the HyperSpec to another location, customize the variable
(forward-line)))
(defun common-lisp-hyperspec--parse-map-file (file)
- (with-current-buffer (find-file-noselect file)
+ (with-temp-buffer
+ (insert-file-contents file)
(goto-char (point-min))
(let ((result '()))
(while (< (point) (point-max))