diff options
| author | Glenn Morris | 2013-09-08 16:15:17 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-09-08 16:15:17 -0700 |
| commit | 144e38fe1809f1fcf96ce04b5abdfbca585e5251 (patch) | |
| tree | 7e26236c1d3cbbdf575ca626134fe02546ba6bf6 | |
| parent | eb31a86cb21c2f19a34830d3b7cdf7a087be826b (diff) | |
| download | emacs-144e38fe1809f1fcf96ce04b5abdfbca585e5251.tar.gz emacs-144e38fe1809f1fcf96ce04b5abdfbca585e5251.zip | |
* lisp/saveplace.el (load-save-place-alist-from-file): Demote errors.
Fixes: debbugs:15305
| -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: |