From: Lars Ingebrigtsen Date: Thu, 28 Oct 2021 21:38:29 +0000 (+0200) Subject: Make `C-u RET' work again X-Git-Tag: emacs-28.0.90~162 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5dbb04e0eb;p=emacs.git Make `C-u RET' work again * lisp/simple.el (newline): Fix regression introduced by d1aacceae9 (bug#51459). --- diff --git a/lisp/simple.el b/lisp/simple.el index e3657cc079e..94a459b7795 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.