]> code.delx.au - gnu-emacs/commitdiff
* lisp/saveplace.el (load-save-place-alist-from-file): Demote errors.
authorGlenn Morris <rgm@gnu.org>
Sun, 8 Sep 2013 23:15:17 +0000 (16:15 -0700)
committerGlenn Morris <rgm@gnu.org>
Sun, 8 Sep 2013 23:15:17 +0000 (16:15 -0700)
Fixes: debbugs:15305
lisp/ChangeLog
lisp/saveplace.el

index 40a36719a1a7dcb00b42f55963766170f582e4d4..a7cb40fee60796d9edcceebb8d852f3bfbe7584c 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-08  Glenn Morris  <rgm@gnu.org>
+
+       * saveplace.el (load-save-place-alist-from-file):
+       Demote errors.  (Bug#15305)
+
 2013-09-08  Michael Albinus  <michael.albinus@gmx.de>
 
        Improve compatibility with older Emacsen, and XEmacs.
index 2ddac6d6c431aa98fb0a3df2e66d20571cb4d576..e9dc12b00fe766b21c8749652d9af55b7ca14778 100644 (file)
@@ -255,8 +255,13 @@ may have changed\) back to `save-place-alist'."
                 (insert-file-contents file)
                 (goto-char (point-min))
                 (setq save-place-alist
-                      (car (read-from-string
-                            (buffer-substring (point-min) (point-max)))))
+                      ;; This is with-demoted-errors, but we want to
+                      ;; mention save-place in any error message.
+                      (condition-case err
+                        (car (read-from-string
+                              (buffer-substring (point-min) (point-max))))
+                        (error (message "Error reading save-place-file: %S" err)
+                               nil)))
 
                 ;; If there is a limit, and we're over it, then we'll
                 ;; have to truncate the end of the list: