diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-09-30 09:04:11 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-09-30 09:04:11 +0200 |
commit | ad27c4c66344f2a61bee8fbf2db3bf721894e38f (patch) | |
tree | 390dea6bbcd319f6e260a6d2980f15c74b498a76 | |
parent | d1aacceae939318f419e0c265358e041c53f1eea (diff) | |
download | emacs-ad27c4c66344f2a61bee8fbf2db3bf721894e38f.tar.gz emacs-ad27c4c66344f2a61bee8fbf2db3bf721894e38f.tar.bz2 emacs-ad27c4c66344f2a61bee8fbf2db3bf721894e38f.zip |
Fix previous `newline' patch
* lisp/simple.el (newline): Signal an error earlier to avoid
peculiar behaviour after getting a backtrace (bug#50900).
-rw-r--r-- | lisp/simple.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 11a6a4f1fd3..36954151633 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. |