bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#50900: 27.2; Evaluating open-line with a negative argument changes t


From: Rodrigo Morales
Subject: bug#50900: 27.2; Evaluating open-line with a negative argument changes the behavior of self-insert
Date: Wed, 29 Sep 2021 15:49:49 -0500

This is a response to the message of Lars. Apparently, we get the same backtrace.

```
Debugger entered--Lisp error: (error "Negative repetition argument -1")
  self-insert-command(-1)
  newline(-1)
  open-line(-1)
  eval((open-line -1) t)
  eval-_expression_((open-line -1) nil nil 127)
  funcall-interactively(eval-_expression_ (open-line -1) nil nil 127)
  call-interactively(eval-_expression_ nil nil)
  command-execute(eval-_expression_)
```

This is what C-h f open-line RET shows

```
open-line is an interactive compiled Lisp function in ‘simple.el’.

It is bound to C-o, <insertline>.

(open-line N)

  Probably introduced at or before Emacs version 19.29.

Insert a newline and leave point before it.
If there is a fill prefix and/or a ‘left-margin’, insert them on
the new line if the line would have been blank.
With arg N, insert N newlines.
```

On Wed, 29 Sept 2021 at 15:38, Rodrigo Morales <moralesrodrigo1100@gmail.com> wrote:
> 5. (At this point, whenever you insert a character, the cursor is
>    moved to the beginning of the line which makes it seem that you are
>    typing from left to right.)

Typo: "right-to-left" instead of "from left to right"

reply via email to

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