unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Rodrigo Morales <moralesrodrigo1100@gmail.com>
To: 50900@debbugs.gnu.org
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	[thread overview]
Message-ID: <CAGxMbPb69cMC+Hn65MUwNLCYb7UswDg6ZUK1qJvpN_gOoXsYMw@mail.gmail.com> (raw)
In-Reply-To: <CAGxMbPYwG+h3z5=ahc6ZpKRizyBwA+MScfZPPYpAA4CjAS=B9A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]

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"
>

[-- Attachment #2: Type: text/html, Size: 1792 bytes --]

      reply	other threads:[~2021-09-29 20:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-29 19:05 bug#50900: 27.2; Evaluating open-line with a negative argument changes the behavior of self-insert Rodrigo Morales
2021-09-29 19:11 ` Lars Ingebrigtsen
2021-09-29 21:07   ` Gregory Heytings
2021-09-30  7:05     ` Lars Ingebrigtsen
2021-09-29 20:22 ` Rodrigo Morales
2021-09-29 20:35   ` Rodrigo Morales
2021-09-29 20:49     ` Rodrigo Morales [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGxMbPb69cMC+Hn65MUwNLCYb7UswDg6ZUK1qJvpN_gOoXsYMw@mail.gmail.com \
    --to=moralesrodrigo1100@gmail.com \
    --cc=50900@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).