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:22:13 -0500 Message-ID: References: <87ilyjkxrv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004c24b805cd281ccc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39211"; 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:25:24 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 1mVg8p-0009vK-5f for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Sep 2021 22:25:23 +0200 Original-Received: from localhost ([::1]:50580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVg8n-0000Rc-1S for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Sep 2021 16:25:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVg8U-0000QG-CC for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2021 16:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38823) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVg8U-0005yk-3X for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2021 16:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVg8T-00064J-Vw for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2021 16:25: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:25: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 X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163294704623256 (code B ref -1); Wed, 29 Sep 2021 20:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Sep 2021 20:24:06 +0000 Original-Received: from localhost ([127.0.0.1]:50369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVg7a-000632-GY for submit@debbugs.gnu.org; Wed, 29 Sep 2021 16:24:06 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVg7X-00062r-Q1 for submit@debbugs.gnu.org; Wed, 29 Sep 2021 16:24:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVg7X-0008Nw-Jo for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2021 16:24:03 -0400 Original-Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]:33674) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVg7W-0005CQ-0i for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2021 16:24:03 -0400 Original-Received: by mail-il1-x12f.google.com with SMTP id b6so4324679ilv.0 for ; Wed, 29 Sep 2021 13:24:01 -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=pk2ro08fDa3YNl/sCEJFqQ3u3xIJx09iDGy+k35W258=; b=qKjiCN+qN/PEzicRhoncpkdb/9IaTvrAxi8iMQcCxuRick0UzsaCTgkgYwofVXeaM/ CTmNU8ISuv/qg1uIHVK0QMzRlNGJSB0IPaVW+REWFWc+UT5iCp42mz1Shp3HqW5fflEE fJ1lgbzGQiSpznw9hBua1R6aPA4lBCU1RU4Hn1iZuzEI1vx/kTxELRXq0RF9obkduWCP 65BzoxUcfPsO861F728t5UUKO2IqUsHSOvDob1Lf3Scbve+urmkMB6TJVrZ99qTBqb/w 1SkrJ182E+uvYu4+cPlhCpKSJUhuB/9b2r4gxlEiILZ8Pfy5gcrEQxDWm0ogwfwFhLST 0WDw== 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=pk2ro08fDa3YNl/sCEJFqQ3u3xIJx09iDGy+k35W258=; b=shGZos3br0i9Q3cUsH+kS/3ysbIuS8mtv8pk/Tydsu6BYW1c1Ess4mVbMrp/pWd+SU Lqt4Pp00cJJqIZCDii94Dm+puLSbVzjNs3nVIzyQ54hI9OXWDL3HmcVoBvrdtvRTd+RU b687684d/8ZzcI7I05jfmw7ARHGFe9UaOsGAg2jJUyw/07sSjXoTsUeZjiE8rRU8O7AP 0J0QdMN9QsPWhciBg/oFMzs5C8R2VwJMzFzqmLWtMVPmNxa/zAS/Qe8A+XYsdNIBiPRl qTFXTR+u6bXpfgBwZ+Jx0uGs6yeajGadYtBSaG7u6En/oR5Wf8pm2hAeYeDN+cgXANvG 9D5w== X-Gm-Message-State: AOAM532VE0R6GDdAMMFsmaK1V3UIiytNijNPiLy2lFasFnqMlq0NO2X3 DeICAHvNFTjnsuOJcJH+Te4iAJVZB0UM3LNgx6l7phPvAZdEPw== X-Google-Smtp-Source: ABdhPJzpulrtslBPQ4VhiU2fuZtADFgcabJTPNM3dW1uHpokkxfVUpWI8gPgp24zHoOb3k0tn8TmpSBBaZ9kt0paZzk= X-Received: by 2002:a92:3642:: with SMTP id d2mr1274405ilf.234.1632947040690; Wed, 29 Sep 2021 13:24:00 -0700 (PDT) In-Reply-To: <87ilyjkxrv.fsf@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::12f; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-il1-x12f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:215915 Archived-At: --0000000000004c24b805cd281ccc Content-Type: text/plain; charset="UTF-8" Sorry, I wasn't clear in my previous message. Before you evaluate the expression, you have to be in a buffer with no read-only-mode. This means that if you tried to reproduce the issue in the "*GNU Emacs*" buffer, you didn't fully reproduce the bug. For some reason, the bug doesn't happen when the expression is evaluated in a buffer with read-only-mode. Here are more clearer steps: 1. Execute "emacs -Q" 2. Evaluate (open-line -1) in the "*scratch*" buffer. 3. Move your cursor to the "*scratch*" buffer. 4. Insert any text 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.) I was able to reproduce this issue in emacs 27.2 (in two systems) and emacs 26.2 (in one system). On Wed, 29 Sept 2021 at 14:07, Rodrigo Morales wrote: > > In order to reproduce this bug, I deleted my ~/.config/emacs/init.el > file and made sure that no other Emacs configuration file existed in > $HOME. > > Steps to reproduce this bug: > > 1. Evaluate (open-line -1) > 2. Insert text in any buffer > > You will see that whenever a character is inserted, the point is moved > to the beginning of the line. > --0000000000004c24b805cd281ccc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, I wasn't clear in my previous message.

B= efore you evaluate the expression, you have to be in a buffer with no
re= ad-only-mode. This means that if you tried to reproduce the issue in
the= "*GNU Emacs*" buffer, you didn't fully reproduce the bug. Fo= r
some reason, the bug doesn't happen when the expression is evaluat= ed
in a buffer with read-only-mode.

Here are more clearer steps:<= br>
1. Execute "emacs -Q"
2. Evaluate (open-line -1) in the= "*scratch*" buffer.
3. Move your cursor to the "*scratch= *" buffer.
4. Insert any text
5. (At this point, whenever you in= sert a character, the cursor is
=C2=A0 =C2=A0moved to the beginning of t= he line which makes it seem that you are
=C2=A0 =C2=A0typing from left t= o right.)

I was able to reproduce this issue in emacs 27.2 (in two s= ystems) and
emacs 26.2 (in one system).

On Wed, 29 Sept 2021 at 14:0= 7, Rodrigo Morales <mora= lesrodrigo1100@gmail.com> wrote:

In order to reproduce this bug, I deleted my ~/.config/emacs/init.el
file and made sure that no other Emacs configuration file existed in
$HOME.

Steps to reproduce this bug:

1. Evaluate (open-line -1)
2. Insert text in any buffer

You will see that whenever a character is inserted, the point is moved
to the beginning of the line.
--0000000000004c24b805cd281ccc--