Commit dad757bc authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(type-break-get-previous-time): Handle end-of-file errors specially

so they don't get reported wrong in .emacs.
parent 514f940d
......@@ -562,9 +562,12 @@ Returns nil if the file is missing or if the time breaks with the
(if file
(timep ;; returns expected format, else nil
(with-current-buffer (find-file-noselect file 'nowarn)
(goto-char (point-min))
(read (current-buffer))))))))
(condition-case nil
(goto-char (point-min))
(read (current-buffer)))
(error "End of file in `%s'" file))))))))
(defun type-break-get-previous-count ()
"Get previous keystroke count from `type-break-file-name'.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment