(dolist (elt value)
(let ((start (point)))
(insert " ")
- (prin1 elt (current-buffer))
- ;; Try to read the element we just printed.
+ ;; Try to print and then to read an element.
(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.
+ ;; If writing or reading gave an error, comment it out.
(goto-char start)
(insert "\n")
(while (not (eobp))