From unknown Fri Jun 20 20:08:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52852: 13.0.15; TeX-insert-quote fails near the beginning of buffer Resent-From: Andrea Greselin Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Tue, 28 Dec 2021 15:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52852 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 52852@debbugs.gnu.org X-Debbugs-Original-To: bug-auctex@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16407050222360 (code B ref -1); Tue, 28 Dec 2021 15:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Dec 2021 15:23:42 +0000 Received: from localhost ([127.0.0.1]:47212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2EKE-0000c0-Ef for submit@debbugs.gnu.org; Tue, 28 Dec 2021 10:23:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:57468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2EKB-0000br-Pw for submit@debbugs.gnu.org; Tue, 28 Dec 2021 10:23:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2EKB-00025V-Kn for bug-auctex@gnu.org; Tue, 28 Dec 2021 10:23:39 -0500 Received: from [2607:f8b0:4864:20::f29] (port=34499 helo=mail-qv1-xf29.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2EK9-0002F6-4I for bug-auctex@gnu.org; Tue, 28 Dec 2021 10:23:39 -0500 Received: by mail-qv1-xf29.google.com with SMTP id ke6so16711845qvb.1 for ; Tue, 28 Dec 2021 07:23:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=pQLSDFbHNpV8hY+d9P4Id6tSN6uLM9DPFoRpuUF2oH0=; b=W23XY41JHUqh9l8SgfKqva6FmGCSCaXBCsi6KWxlLJTufctTRxrIrXU6GtRB5/1ixR xaC7pa2bjytjkBqr/+Yr9zmOerJFUXZ8yQfdMmRyf2a7POyS0sJh4xQkkMuCksmVHck9 wiUtVS4F1+exbVK5LL9g7M0ccmVXDR84L4vsq2GOhVdV9t3V0IUfKwGOfSoFnx7/8m40 gmmy0aeo7IsDasZxIcnl64Y9JOHX1wtGjdvK5FUo2HzQ5y3QeLc+bwYaIn8mtLHtHzbc 9yxiP9eKKVb6fYFcFRtK+bUJQ53tHr+lil2bzem4RHBptEi4caRC8x2BBGo7xrD7phCr NuAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pQLSDFbHNpV8hY+d9P4Id6tSN6uLM9DPFoRpuUF2oH0=; b=CZBy8eCsCykkYTtEjFpIv6IU8fItdgU92N7lJUlPmWZJ9xPk4ziStcTgoExLisOGgh hCYOtTnIRs+38N7IEClea0GuCbpAQRLymxrZs/zVGzKvAmddq/nUrCkuedFIxrJdKbvS bpWBI3rFDTCV+Tu+rboZtgMfPd93yk6NVtZYPfc3p4yVcL0FzJRrZsbIBSO3jOtGzFqb qmgeh1I+1Z+2swzLJlZp0SONJNPPqZkmiphNFtRlmG5hd/G6qUUnBys/S9yw/XHawgRW biz54QsydizpzUvMzr0x6RPZCgOwEVcoxwRa4Xn6DJW678tSXQi3n+FNXEiCLkDHf2Xy AFEg== X-Gm-Message-State: AOAM530Xk5e4SYEGnw8hFORUxgZ/DZsylA9ki4m1krDTiGAfzSkOZ3qd 9P4n2PgqOGlcatv1HFgeWG/TMdZnVdJLaXZyDidXtJWH52k= X-Google-Smtp-Source: ABdhPJxjOGgrgm9nSYWnn6eh5tTJs+Pdcv/wSIDnDTjuxdiPxMVKHfcivzXnRcguRVl6mE7Dg5bvn3JNsf/5Qd5Gli0= X-Received: by 2002:a05:6214:20e9:: with SMTP id 9mr10497894qvk.94.1640705008458; Tue, 28 Dec 2021 07:23:28 -0800 (PST) MIME-Version: 1.0 From: Andrea Greselin Date: Tue, 28 Dec 2021 16:22:52 +0100 Message-ID: Content-Type: multipart/mixed; boundary="000000000000360d5c05d4366700" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f29 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f29; envelope-from=greselin.andrea@gmail.com; helo=mail-qv1-xf29.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000360d5c05d4366700 Content-Type: multipart/alternative; boundary="000000000000360d5905d43667fe" --000000000000360d5905d43667fe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, when =E2=80=98TeX-quote-after-quote=E2=80=99 is nil, =E2=80=98TeX-insert-qu= ote=E2=80=99 fails when called from a position closer to the beginning of buffer than the length of an opening quotation mark. That=E2=80=99s due to a =E2=80=98forwa= rd-char=E2=80=99 trying to go back to see if the thing preceding the point is an opening quote. To reproduce the bug, open a buffer in =E2=80=98LaTeX-mode=E2=80=99, type a= character and invoke =E2=80=98TeX-insert-quote=E2=80=99. It just prints the message = =E2=80=9CBeginning of buffer=E2=80=9D without inserting anything. I think it=E2=80=99s reasonable to insert an opening quote whenever there isn=E2=80=99t room for one behind the point. I=E2=80=99ve attached a patch = that implements this behaviour. All the best, Andrea --000000000000360d5905d43667fe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

when =E2=80=98TeX-quote-after-quote=E2=80=99= is nil, =E2=80=98TeX-insert-quote=E2=80=99 fails when
called from a pos= ition closer to the beginning of buffer than the
length of an opening qu= otation mark. That=E2=80=99s due to a =E2=80=98forward-char=E2=80=99
try= ing to go back to see if the thing preceding the point is an
opening quo= te.

To reproduce the bug, open a buffer in =E2=80=98LaTeX-mode=E2=80= =99, type a character
and invoke =E2=80=98TeX-insert-quote=E2=80=99. It = just prints the message =E2=80=9CBeginning
of buffer=E2=80=9D without in= serting anything.

I think it=E2=80=99s reasonable to insert an openi= ng quote whenever there
isn=E2=80=99t room for one behind the point. I= =E2=80=99ve attached a patch that
implements this behaviour.
All the best,
Andrea
--000000000000360d5905d43667fe-- --000000000000360d5c05d4366700 Content-Type: text/plain; charset="US-ASCII"; name="quotes_patch.txt" Content-Disposition: attachment; filename="quotes_patch.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kxq8ooqa0 ZGlmZiAtLWdpdCBhL2F1Y3RleC0xMy4wLjE1L3RleC5lbCBiL2F1Y3RleC0xMy4wLjE1L3RleC5l bAppbmRleCAzY2Y4ZjY1Li5kNzNjMjQwIDEwMDY0NAotLS0gYS9hdWN0ZXgtMTMuMC4xNS90ZXgu ZWwKKysrIGIvYXVjdGV4LTEzLjAuMTUvdGV4LmVsCkBAIC02MTYzLDcgKzYxNjMsNyBAQCBXaXRo IHByZWZpeCBhcmd1bWVudCBGT1JDRSwgYWx3YXlzIGluc2VydHMgXCIgY2hhcmFjdGVycy4iCiAg ICAgICAgICAgICAgICAgICAgICAgICAodAogICAgICAgICAgICAgICAgICAgICAgICAgIChkZWxl dGUtY2hhciAtMSkKICAgICAgICAgICAgICAgICAgICAgICAgICBjbG9zZS1xdW90ZSkpKQotICAg ICAgICAoaW5zZXJ0IChjb25kICgoYm9icCkKKyAgICAgICAgKGluc2VydCAoY29uZCAoKDw9IChw b2ludCkgKGxlbmd0aCBvcGVuLXF1b3RlKSkKICAgICAgICAgICAgICAgICAgICAgICAgb3Blbi1x dW90ZSkKICAgICAgICAgICAgICAgICAgICAgICAoKD0gKHByZWNlZGluZy1jaGFyKSAoc3RyaW5n LXRvLWNoYXIgVGVYLWVzYykpCiAgICAgICAgICAgICAgICAgICAgICAgID9cIikK --000000000000360d5c05d4366700-- From unknown Fri Jun 20 20:08:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52852: 13.0.15; TeX-insert-quote fails near the beginning of buffer References: In-Reply-To: Resent-From: Andrea Greselin Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Wed, 29 Dec 2021 14:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52852 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: 52852@debbugs.gnu.org Received: via spool by 52852-submit@debbugs.gnu.org id=B52852.164078987820353 (code B ref 52852); Wed, 29 Dec 2021 14:58:02 +0000 Received: (at 52852) by debbugs.gnu.org; 29 Dec 2021 14:57:58 +0000 Received: from localhost ([127.0.0.1]:49912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2aOs-0005ID-G7 for submit@debbugs.gnu.org; Wed, 29 Dec 2021 09:57:58 -0500 Received: from mail-qv1-f53.google.com ([209.85.219.53]:41961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2aOq-0005Hy-N0 for 52852@debbugs.gnu.org; Wed, 29 Dec 2021 09:57:57 -0500 Received: by mail-qv1-f53.google.com with SMTP id h5so19400654qvh.8 for <52852@debbugs.gnu.org>; Wed, 29 Dec 2021 06:57:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=bqEWP7V4DNOHItsGhLss7REnROokSAw64a9topZ3088=; b=bW5NBRlZHFXretPgMnniO2nWoAJ+XjZkvj4zLK6YwPu3e78WZb1pnJhsCSMQi2ddeu luswApAq8O+kWtEtQAavBZba+9ZG0+K5YvAm3fMkIC59MRs8TSBL+dKtNAUH8/bI1MYi rQapdR1Adwj/ZngOf5/tMcXYgzcJvbk+VntA31TzShpuhK0mw8sOO+SbWhhEGttmstHI jodIt/0fTGxJoyF/VJV3KuWxm1vbckuUKhxgSuVVy+tVQXIslY6OfVRqubJoUNhbxoHc 5RI6IjslMgh25hTJVrAmC0ZE17EgBYo+A3k0+JJb9zGr25bCZFpjnFIRc/NXUNyErNys PHgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bqEWP7V4DNOHItsGhLss7REnROokSAw64a9topZ3088=; b=pCOnlm8t7JO+vBv6IYGyhYOzTvn1/Gdsh8bSh9uCo3lxrGslB5KN+CzFcNg93qjclI 2jxOabRgZP6T4KzX2yIBty/BSvUIBsNTCbJBHLKE9x9fqoclSGdV870XoP/1QQNx7SAH hGjDuziwKsBsAVlNBXaGW0cjiYDK9pSY3PRk5H3/7XrFP2BlJedIZJ9/nGpIAmYCS2Qy sc+fj0EERmiuULn9klaTFH5A5uGwHPawE5Pubh937xCf1gWKGQUCVK8V8ltlJ5F1glgh oFVqmsCm9VR6r9N3zcRusmqo5hf5MkH07WrOumPFQ/aT3kOieP3OBTK1eqU1ZrdFjzo+ AEHw== X-Gm-Message-State: AOAM5314r2F2/g+Cs+yPW7zaH/5uSYBPdCdIAlgxcjTtdGLNbEafZxQd UjwY8s8oIN5pNcU0ugOzhjuunNRP41sWJtHVWR32iDxi X-Google-Smtp-Source: ABdhPJy82ah5axBkTNS1/MFEsCF0dlNPqB0QUfr/ERseKLsOTl7ot8ufd+T+ArtCj5QgeGdE/cMwT7qVaI6AmRQTDYk= X-Received: by 2002:a05:6214:f23:: with SMTP id iw3mr10506526qvb.83.1640789871037; Wed, 29 Dec 2021 06:57:51 -0800 (PST) MIME-Version: 1.0 From: Andrea Greselin Date: Wed, 29 Dec 2021 15:57:14 +0100 Message-ID: Content-Type: multipart/mixed; boundary="0000000000006a408705d44a2941" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000006a408705d44a2941 Content-Type: multipart/alternative; boundary="0000000000006a408505d44a293f" --0000000000006a408505d44a293f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > I think it=E2=80=99s reasonable to insert an opening quote whenever there > isn=E2=80=99t room for one behind the point. I=E2=80=99ve attached a patc= h that > implements this behaviour. If I had taken into account narrowed buffers it wouldn=E2=80=99t have seeme= d so reasonable. With this new patch, =E2=80=98TeX-insert-quote=E2=80=99 only tries to =E2= =80=98forward-char=E2=80=99 in reverse when there=E2=80=99s enough room to do so. Unlike with the previ= ous patch, it can insert a closing quote even if there=E2=80=99s no room for an opening one before point. --0000000000006a408505d44a293f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> I think it=E2=80=99s reasonable to insert an opening = quote whenever there
> isn=E2=80=99t room for one behind the point. I= =E2=80=99ve attached a patch that
> implements this behaviour.
If I had taken into account narrowed buffers it wouldn=E2=80=99t have seem= ed
so reasonable.

With this new patch, =E2=80=98TeX-insert-quote= =E2=80=99 only tries to =E2=80=98forward-char=E2=80=99
in reverse when t= here=E2=80=99s enough room to do so. Unlike with the previous
patch, it = can insert a closing quote even if there=E2=80=99s no room for an
openin= g one before point.
--0000000000006a408505d44a293f-- --0000000000006a408705d44a2941 Content-Type: text/plain; charset="US-ASCII"; name="auctex_patch_v2.txt" Content-Disposition: attachment; filename="auctex_patch_v2.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kxrnt35n0 ZGlmZiAtLWdpdCBhL2F1Y3RleC0xMy4wLjE1L3RleC5lbCBiL2F1Y3RleC0xMy4wLjE1L3RleC5l bAppbmRleCAzY2Y4ZjY1Li4wMzAyN2Q2IDEwMDY0NAotLS0gYS9hdWN0ZXgtMTMuMC4xNS90ZXgu ZWwKKysrIGIvYXVjdGV4LTEzLjAuMTUvdGV4LmVsCkBAIC02MTY5LDE0ICs2MTY5LDE2IEBAIFdp dGggcHJlZml4IGFyZ3VtZW50IEZPUkNFLCBhbHdheXMgaW5zZXJ0cyBcIiBjaGFyYWN0ZXJzLiIK ICAgICAgICAgICAgICAgICAgICAgICAgP1wiKQogICAgICAgICAgICAgICAgICAgICAgICgoPSAo cHJlY2VkaW5nLWNoYXIpID9cIikKICAgICAgICAgICAgICAgICAgICAgICAgP1wiKQotICAgICAg ICAgICAgICAgICAgICAgICgoc2F2ZS1leGN1cnNpb24KLSAgICAgICAgICAgICAgICAgICAgICAg ICAoZm9yd2FyZC1jaGFyICgtIChsZW5ndGggb3Blbi1xdW90ZSkpKQotICAgICAgICAgICAgICAg ICAgICAgICAgIChsb29raW5nLWF0IChyZWdleHAtcXVvdGUgb3Blbi1xdW90ZSkpKQorICAgICAg ICAgICAgICAgICAgICAgICgoYW5kICg8PSAobGVuZ3RoIG9wZW4tcXVvdGUpICgtIChwb2ludCkg KHBvaW50LW1pbikpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzYXZlLWV4Y3Vyc2lv bgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZvcndhcmQtY2hhciAoLSAobGVuZ3Ro IG9wZW4tcXVvdGUpKSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChsb29raW5nLWF0 IChyZWdleHAtcXVvdGUgb3Blbi1xdW90ZSkpKSkKICAgICAgICAgICAgICAgICAgICAgICAgKGRl bGV0ZS1jaGFyICgtIChsZW5ndGggb3Blbi1xdW90ZSkpKQogICAgICAgICAgICAgICAgICAgICAg ICA/XCIpCi0gICAgICAgICAgICAgICAgICAgICAgKChzYXZlLWV4Y3Vyc2lvbgotICAgICAgICAg ICAgICAgICAgICAgICAgIChmb3J3YXJkLWNoYXIgKC0gKGxlbmd0aCBjbG9zZS1xdW90ZSkpKQot ICAgICAgICAgICAgICAgICAgICAgICAgIChsb29raW5nLWF0IChyZWdleHAtcXVvdGUgY2xvc2Ut cXVvdGUpKSkKKyAgICAgICAgICAgICAgICAgICAgICAoKGFuZCAoPD0gKGxlbmd0aCBvcGVuLXF1 b3RlKSAoLSAocG9pbnQpIChwb2ludC1taW4pKSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAg ICAoc2F2ZS1leGN1cnNpb24KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChmb3J3YXJk LWNoYXIgKC0gKGxlbmd0aCBjbG9zZS1xdW90ZSkpKQorICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgKGxvb2tpbmctYXQgKHJlZ2V4cC1xdW90ZSBjbG9zZS1xdW90ZSkpKSkKICAgICAgICAg ICAgICAgICAgICAgICAgKGRlbGV0ZS1jaGFyICgtIChsZW5ndGggY2xvc2UtcXVvdGUpKSkKICAg ICAgICAgICAgICAgICAgICAgICAgP1wiKQogICAgICAgICAgICAgICAgICAgICAgICgoc2F2ZS1l eGN1cnNpb24K --0000000000006a408705d44a2941-- From unknown Fri Jun 20 20:08:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52852: 13.0.15; TeX-insert-quote fails near the beginning of buffer Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-auctex@gnu.org Resent-Date: Sat, 08 Jan 2022 10:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52852 X-GNU-PR-Package: auctex X-GNU-PR-Keywords: To: Andrea Greselin Cc: 52852@debbugs.gnu.org Received: via spool by 52852-submit@debbugs.gnu.org id=B52852.164163695913333 (code B ref 52852); Sat, 08 Jan 2022 10:16:02 +0000 Received: (at 52852) by debbugs.gnu.org; 8 Jan 2022 10:15:59 +0000 Received: from localhost ([127.0.0.1]:46482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n68lT-0003Sy-B1 for submit@debbugs.gnu.org; Sat, 08 Jan 2022 05:15:59 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:55980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n68lQ-0003Sp-T4 for 52852@debbugs.gnu.org; Sat, 08 Jan 2022 05:15:58 -0500 Received: from localhost (61-24-188-3.rev.home.ne.jp [61.24.188.3]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id AC5942D7; Sat, 8 Jan 2022 19:15:54 +0900 (JST) From: Ikumi Keita In-reply-to: References: Comments: In-reply-to Andrea Greselin message dated "Wed, 29 Dec 2021 15:57:14 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Date: Sat, 08 Jan 2022 19:15:53 +0900 Message-ID: <49548.1641636953@localhost> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Andrea, >>>>> Andrea Greselin writes: >> I think it’s reasonable to insert an opening quote whenever there >> isn’t room for one behind the point. I’ve attached a patch that >> implements this behaviour. > If I had taken into account narrowed buffers it wouldn’t have seemed > so reasonable. > With this new patch, ‘TeX-insert-quote’ only tries to ‘forward-char’ > in reverse when there’s enough room to do so. Unlike with the previous > patch, it can insert a closing quote even if there’s no room for an > opening one before point. Thank you for reporting and providing a patch. It's small and simple enough for not requiring a copyright assignment, so I've installed your patch in the git repository. Regards, Ikumi Keita From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 08 05:18:31 2022 Received: (at control) by debbugs.gnu.org; 8 Jan 2022 10:18:31 +0000 Received: from localhost ([127.0.0.1]:46492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n68nu-0003Xv-TW for submit@debbugs.gnu.org; Sat, 08 Jan 2022 05:18:31 -0500 Received: from smtp1a.inetd.co.jp ([210.129.88.11]:55986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n68nt-0003Xm-Gm for control@debbugs.gnu.org; Sat, 08 Jan 2022 05:18:29 -0500 Received: from localhost (61-24-188-3.rev.home.ne.jp [61.24.188.3]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 3C1722D7 for ; Sat, 8 Jan 2022 19:18:28 +0900 (JST) To: control@debbugs.gnu.org From: Ikumi Keita Subject: control message for bug #52852 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <50275.1641637106.1@localhost> Date: Sat, 08 Jan 2022 19:18:26 +0900 Message-ID: <50276.1641637106@localhost> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 52852 quit