emacs-diffs
[Top][All Lists]
Advanced

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

master ad27c4c: Fix previous `newline' patch


From: Lars Ingebrigtsen
Subject: master ad27c4c: Fix previous `newline' patch
Date: Thu, 30 Sep 2021 03:04:25 -0400 (EDT)

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

    Fix previous `newline' patch
    
    * lisp/simple.el (newline): Signal an error earlier to avoid
    peculiar behaviour after getting a backtrace (bug#50900).
---
 lisp/simple.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index 11a6a4f..3695415 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -589,7 +589,8 @@ text-property `hard'.
 A non-nil INTERACTIVE argument means to run the `post-self-insert-hook'."
   (interactive "*P\np")
   (barf-if-buffer-read-only)
-  (when (< arg 0)
+  (when (and arg
+             (< arg 0))
     (error "Repetition argument has to be non-negative"))
   ;; Call self-insert so that auto-fill, abbrev expansion etc. happen.
   ;; Set last-command-event to tell self-insert what to insert.



reply via email to

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