mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix previous `newline' patch
* lisp/simple.el (newline): Signal an error earlier to avoid peculiar behaviour after getting a backtrace (bug#50900).
This commit is contained in:
parent
d1aacceae9
commit
ad27c4c663
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue