diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/saveplace.el | 9 |
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 @@ | |||
| 1 | 2013-09-08 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * saveplace.el (load-save-place-alist-from-file): | ||
| 4 | Demote errors. (Bug#15305) | ||
| 5 | |||
| 1 | 2013-09-08 Michael Albinus <michael.albinus@gmx.de> | 6 | 2013-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: |