(savehist-save): Handle errors in writing as well as reading.
+2008-09-20 Ami Fischman <ami@fischman.org>
+
+ * savehist.el (savehist-save): Handle errors in writing as well as
+ reading.
+
2008-09-20 Michael Olson <mwolson@gnu.org>
* emacs-lisp/tq.el (tq-create): Disable undo in tq buffer in order
(dolist (elt value)
(let ((start (point)))
(insert " ")
- (prin1 elt (current-buffer))
- ;; Try to read the element we just printed.
+ ;; Print and try to read the element we just printed.
(condition-case nil
- (save-excursion
- (goto-char start)
- (read (current-buffer)))
+ (progn
+ (prin1 elt (current-buffer))
+ (save-excursion
+ (goto-char start)
+ (read (current-buffer))))
(error
;; If reading it gets an error, comment it out.
(goto-char start)