Commit 2cf347a0 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Don't have type-break-mode signal errors on corrupted files

* lisp/type-break.el (type-break-get-previous-time):
(type-break-get-previous-count): Signal a warning instead of an
error (bug#38246).  type-break will still continue to work even if
the database can't be loaded after a restart, but this allows
Emacs to be started.
parent a6f030fc
Pipeline #8900 passed with stages
in 35 minutes and 26 seconds
......@@ -487,7 +487,7 @@ Return nil if the file is missing or if the time is not a Lisp time value."
(goto-char (point-min))
(read (current-buffer)))
(error "End of file in `%s'" file))))))))
(warn "End of file in `%s'" file))))))))
(defun type-break-get-previous-count ()
"Get previous keystroke count from `type-break-file-name'.
......@@ -505,7 +505,7 @@ integer."
(forward-line 1)
(read (current-buffer)))
(error "End of file in `%s'" file)))))))
(warn "End of file in `%s'" file)))))))
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