From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rodrigo Morales Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <87ilyjkxrv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fb61b105cd287e06" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11107"; mail-complaints-to="usenet@ciao.gmane.io" To: 50900@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 29 22:52:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVgYk-0002fZ-Pp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Sep 2021 22:52:10 +0200 Original-Received: from localhost ([::1]:36000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVgYi-0002t5-Lv for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Sep 2021 16:52:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVgYc-0002si-Bz for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2021 16:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38869) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVgYc-00038L-4i for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2021 16:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVgYb-0006mh-UN for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2021 16:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rodrigo Morales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Sep 2021 20:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50900 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 50900-submit@debbugs.gnu.org id=B50900.163294870626042 (code B ref 50900); Wed, 29 Sep 2021 20:52:01 +0000 Original-Received: (at 50900) by debbugs.gnu.org; 29 Sep 2021 20:51:46 +0000 Original-Received: from localhost ([127.0.0.1]:50412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVgYM-0006ly-J9 for submit@debbugs.gnu.org; Wed, 29 Sep 2021 16:51:46 -0400 Original-Received: from mail-il1-f169.google.com ([209.85.166.169]:46768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVgYI-0006li-5Q for 50900@debbugs.gnu.org; Wed, 29 Sep 2021 16:51:44 -0400 Original-Received: by mail-il1-f169.google.com with SMTP id h20so4306871ilj.13 for <50900@debbugs.gnu.org>; Wed, 29 Sep 2021 13:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=D4Gbn7gPrpThs0G/rRE0xoofYZ4lmqSTbXPeTJR1Nzw=; b=peRv6r66pjdKCX8rQMdU/xTJjx/huHK9JEqHPWAgHIbQMmuc4ny/EcW+DTsgcKWE2z gcZUlpUpNbu6hNUkcRjYTg0Ie4nfD3M1JOIPGaHY/2JzkkkT/OZUl9eINYYihF4gzQ9f 0u0LJxIoKniSMTPn/P0lLQxexJja5FYMWseDX9oFv08NywlOs3gDIQFgEEL9GDKWlMcp Pk6/XNJV5uqbun2HtiwYPxJMw3SZd4tpajxPjbAPtuzWeAf0Fqqnxy7Ws1qVcS8LD5yi o0gtvSKUT6fbhZ31gGEXkDvlmk/i4WcALSIX1Mbb0xbXGRepqBQpNNkwM21J31sVK/8k A02g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=D4Gbn7gPrpThs0G/rRE0xoofYZ4lmqSTbXPeTJR1Nzw=; b=XrNaXmAAXyZTCxQMoe0z81glzmrbcCMSJrzlDddVwVz8pKgME5Aq9FD1E6LbcS3FGE Mm+hfYzixJPbMew4A+n4N03ScP/Zxkh/y+88c/8EEIhcbBqmUsOoVxO6iYvg0MYP4pDv Tr4NJSYRbgZjoBb0NIOreouc/8ja9ABEyIvbxOcGzRxFGFpkP/8Dl88J4TMKJkElbpbu 8Kiobre9PTSD9swXkY9ATqsWxusu7PUpNlLvmxJ0OZcbgUrZNm0WjOVr2OOoqFmjfSKo ufaTmncq3KoTFJnlCAUpX1Q6iTFjbezNlznvvrWt/XldkPL7X1wH8TktDAl+41mchSHH He1g== X-Gm-Message-State: AOAM533th20JpSVVQ5HxrSUpkvj1rq9CJp1pHubpaSRBuk3ySU8IV87H OyqnThTeTFb7B0+3ROASd/FcUcPKwDLJz8RKWSAlHC2gC4crmA== X-Google-Smtp-Source: ABdhPJznUq4WJg2AUiPcrbb/Bjw7sfbU2cY30zOHRExuGc28KM+sg7Evqvov8kVb0lP3dPIoOLrKcZKAXABgHsYM9Qk= X-Received: by 2002:a92:2c0d:: with SMTP id t13mr1276760ile.99.1632948696341; Wed, 29 Sep 2021 13:51:36 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:215920 Archived-At: --000000000000fb61b105cd287e06 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =E2=80=98simple.el=E2= =80=99. It is bound to C-o, . (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 =E2=80=98left-margin=E2=80=99, insert th= em 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 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" > --000000000000fb61b105cd287e06 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is a response to the message of Lars. Apparently= , we get the same backtrace.

```
Deb= ugger entered--Lisp error: (error "Negative repetition argument -1&quo= t;)
=C2=A0 self-insert-command(-1)
=C2=A0 newline(-1)
=C2=A0 open-= line(-1)
=C2=A0 eval((open-line -1) t)
=C2=A0 eval-expression((open-l= ine -1) nil nil 127)
=C2=A0 funcall-interactively(eval-expression (open-= line -1) nil nil 127)
=C2=A0 call-interactively(eval-expression nil nil)=
=C2=A0 command-execute(eval-expression)
```

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

```
open-line is an interactive compiled Lisp function i= n =E2=80=98simple.el=E2=80=99.

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

(open-line N)

=C2=A0 Probably introduced at or before Emac= s version 19.29.

Insert a newline and leave point before it.
If t= here is a fill prefix and/or a =E2=80=98left-margin=E2=80=99, insert them o= n
the new line if the line would have been blank.
With arg N, insert = N newlines.
```

On Wed, 29 Sept 2021 at 15:38, Rodri= go Morales <moralesrodri= go1100@gmail.com> wrote:
> 5. (At this point, whenever you inser= t a character, the cursor is
>=C2=A0 =C2=A0 moved to the beginning of= the line which makes it seem that you are
>=C2=A0 =C2=A0 typing= from left to right.)

Typo: "right-to-left&qu= ot; instead of "from left to right"
--000000000000fb61b105cd287e06--