summaryrefslogtreecommitdiff
path: root/lisp/saveplace.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/saveplace.el')
-rw-r--r--lisp/saveplace.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/saveplace.el b/lisp/saveplace.el
index e9dc12b00fe..e070a7da489 100644
--- a/lisp/saveplace.el
+++ b/lisp/saveplace.el
@@ -255,13 +255,9 @@ may have changed\) back to `save-place-alist'."
(insert-file-contents file)
(goto-char (point-min))
(setq save-place-alist
- ;; This is with-demoted-errors, but we want to
- ;; mention save-place in any error message.
- (condition-case err
+ (with-demoted-errors "Error reading save-place-file: %S"
(car (read-from-string
- (buffer-substring (point-min) (point-max))))
- (error (message "Error reading save-place-file: %S" err)
- nil)))
+ (buffer-substring (point-min) (point-max))))))
;; If there is a limit, and we're over it, then we'll
;; have to truncate the end of the list: