Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
144e38fe
Commit
144e38fe
authored
Sep 08, 2013
by
Glenn Morris
Browse files
* lisp/saveplace.el (load-save-place-alist-from-file): Demote errors.
Fixes: debbugs:15305
parent
eb31a86c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/saveplace.el
lisp/saveplace.el
+7
-2
No files found.
lisp/ChangeLog
View file @
144e38fe
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.
...
...
lisp/saveplace.el
View file @
144e38fe
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment