emacs-diffs
[Top][All Lists]
Advanced

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

emacs-28 5dbb04e: Make `C-u RET' work again


From: Lars Ingebrigtsen
Subject: emacs-28 5dbb04e: Make `C-u RET' work again
Date: Thu, 28 Oct 2021 17:38:40 -0400 (EDT)

branch: emacs-28
commit 5dbb04e0ebd2a007b4827138faae2ac0edc06350
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make `C-u RET' work again
    
    * lisp/simple.el (newline): Fix regression introduced by
    d1aacceae9 (bug#51459).
---
 lisp/simple.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index e3657cc..94a459b 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -590,7 +590,7 @@ A non-nil INTERACTIVE argument means to run the 
`post-self-insert-hook'."
   (interactive "*P\np")
   (barf-if-buffer-read-only)
   (when (and arg
-             (< arg 0))
+             (< (prefix-numeric-value 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]