emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2cf347a 2/2: Don't have type-break-mode signal errors on corrupte


From: Lars Ingebrigtsen
Subject: master 2cf347a 2/2: Don't have type-break-mode signal errors on corrupted files
Date: Thu, 21 Jan 2021 12:10:27 -0500 (EST)

branch: master
commit 2cf347a0a87bf490391a26fc26b29ca40a0fda93
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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.
---
 lisp/type-break.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/type-break.el b/lisp/type-break.el
index 84c240c..a6d5cd0 100644
--- a/lisp/type-break.el
+++ b/lisp/type-break.el
@@ -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)))
             (end-of-file
-             (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)))
                       (end-of-file
-                       (error "End of file in `%s'" file)))))))
+                       (warn "End of file in `%s'" file)))))))
         file
       0)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]