aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/saveplace.el9
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 40a36719a1a..a7cb40fee60 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-09-08 Glenn Morris <rgm@gnu.org>
2
3 * saveplace.el (load-save-place-alist-from-file):
4 Demote errors. (Bug#15305)
5
12013-09-08 Michael Albinus <michael.albinus@gmx.de> 62013-09-08 Michael Albinus <michael.albinus@gmx.de>
2 7
3 Improve compatibility with older Emacsen, and XEmacs. 8 Improve compatibility with older Emacsen, and XEmacs.
diff --git a/lisp/saveplace.el b/lisp/saveplace.el
index 2ddac6d6c43..e9dc12b00fe 100644
--- a/lisp/saveplace.el
+++ b/lisp/saveplace.el
@@ -255,8 +255,13 @@ may have changed\) back to `save-place-alist'."
255 (insert-file-contents file) 255 (insert-file-contents file)
256 (goto-char (point-min)) 256 (goto-char (point-min))
257 (setq save-place-alist 257 (setq save-place-alist
258 (car (read-from-string 258 ;; This is with-demoted-errors, but we want to
259 (buffer-substring (point-min) (point-max))))) 259 ;; mention save-place in any error message.
260 (condition-case err
261 (car (read-from-string
262 (buffer-substring (point-min) (point-max))))
263 (error (message "Error reading save-place-file: %S" err)
264 nil)))
260 265
261 ;; If there is a limit, and we're over it, then we'll 266 ;; If there is a limit, and we're over it, then we'll
262 ;; have to truncate the end of the list: 267 ;; have to truncate the end of the list: