From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#10948: 24.0.94; electric-pair-mode inserts unnecessary " Date: Mon, 7 Jun 2021 23:22:36 +0100 Message-ID: References: <20120305091308.94B251FDD0@saturn.ch.ristopher.com> <87mts87nkq.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000052e11e05c4347b22" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23731"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Christopher Schmidt , 10948@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 08 00:23:09 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 1lqNeH-0005vi-7h for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Jun 2021 00:23:09 +0200 Original-Received: from localhost ([::1]:46034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqNeG-0002UI-9g for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Jun 2021 18:23:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqNeA-0002U4-VG for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 18:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqNeA-0004Kw-Hq for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 18:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqNeA-0004xU-7q for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 18:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Jun 2021 22:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10948 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 10948-submit@debbugs.gnu.org id=B10948.162310457819036 (code B ref 10948); Mon, 07 Jun 2021 22:23:02 +0000 Original-Received: (at 10948) by debbugs.gnu.org; 7 Jun 2021 22:22:58 +0000 Original-Received: from localhost ([127.0.0.1]:56819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqNe5-0004wy-Rc for submit@debbugs.gnu.org; Mon, 07 Jun 2021 18:22:58 -0400 Original-Received: from mail-pg1-f175.google.com ([209.85.215.175]:34348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqNe3-0004wj-SM for 10948@debbugs.gnu.org; Mon, 07 Jun 2021 18:22:56 -0400 Original-Received: by mail-pg1-f175.google.com with SMTP id l1so14964419pgm.1 for <10948@debbugs.gnu.org>; Mon, 07 Jun 2021 15:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Xc7bV/Cu9WnWTZ+XiCNwcGMpq46qyzeTSCzpy/Phx6Y=; b=QLE1G4w85U2Jj0TTRh4YS9N0PyyeR1Qd3NyQsXyxizY+pvJSmPWYCUDy6UIjkMDO42 Hii4uwj/jmOH9TKv0qImdavfRmw1ZEnaIc3eESuVbZvZCs45p7H5UbmnXwUo50entLe0 lD7vFeIP3k0ufjESC5boUjT3HqEhOGDKChMsM/AiPjBGdFeETAk6ISiG9zaHLHVqKk9k owk+FjrOX/SwQwM7IfS4nm+7pPd4QegMzmur2vphcv5daBjGWx6xLr2Zwjj+p32yQ6f9 UdtBfG3WLIUSIpOcKuBIXogklFPkbHGhuTInC3iEOv0E3RxaJP6J9DS+/cuCVrCf6/Qq /fjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Xc7bV/Cu9WnWTZ+XiCNwcGMpq46qyzeTSCzpy/Phx6Y=; b=E6UiGiPbAjC2LR5VhiZQc9II9bDAkNRzWo+LLPer+a83wUU8sbMrmknkvU+Yb1R4iw HPufvOFPO4cRqej/htnvg0ntjqKsYfEKz0BI3D+VBj9sTOGcFc9VJwg70emUuz0jLM/P /x6IDCXhutSAioPWYkiW3OAYWtr/cFqAG/A1Y+PkKheByEpvup+fYOEqE39UzughHkZC vkKqHJC0U58kGWOi81jpdWKYMyZdFD73eQD+mENJT7NkRmvo78wLLDXzlfgLBcBdpafy klUXn0NlqaxiOY6QZjO1AkukYNxZwawth7U5Ic3V3MR3OfTXkO55EYgKz8KtH1jw51Bp RiWg== X-Gm-Message-State: AOAM533VPGgB07hsTv3ssh4yNvOUKU4zcaSrmUhQj6Ep65iZCqiiFrL5 AFDw59GSrOKoSKsIDr52vYIQBKxAM6XIQURwpdI= X-Google-Smtp-Source: ABdhPJzg8b98rxqHIJ1vCamW7fLLBF7BKZitvD2rMXFDJ68yvGUGU6NjYIC0MRrN7bXFLTxSfYMgMIo72XH1QNebOTA= X-Received: by 2002:aa7:8c02:0:b029:2e9:c513:1e10 with SMTP id c2-20020aa78c020000b02902e9c5131e10mr19366963pfd.2.1623104569924; Mon, 07 Jun 2021 15:22:49 -0700 (PDT) In-Reply-To: <87mts87nkq.fsf@gnus.org> 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:208196 Archived-At: --00000000000052e11e05c4347b22 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lars, as an fyi electric-pair-mode was completely, or mostly, rewritten by me circa 2014. So this bug report is probably stale now... Jo=C3=A3o On Wed, Jun 2, 2021, 08:07 Lars Ingebrigtsen wrote: > Christopher Schmidt writes: > > > I often encounter electric-pair-mode inserting unnecessary quotation > > marks on GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version > > 2.24.9) of 2012-03-01. > > > > Recipe: > > > > emacs -q > > C-x b RET # we are in *scratch* now > > M-x electric-pair-mode RET > > "test C-d # at this point the line at point should read `"test > > " > > > > the line at point now contains "test"". I think electric-pair-mode > > should be smarter here, do a little backtracking, and just insert one > > quote. > > (I'm going through old bug reports that unfortunately got little response > at > the time.) > > I'm unable to reproduce this problem in Emacs 25 or more recent versions > of Emacs, but I'm not sure I totally understand the recipe: I end up > with a line reading > > "test" > > which is what I expect. Are you still seeing this issue in recent Emacs > versions? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > > > > --00000000000052e11e05c4347b22 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Lars, as an fyi electric-pair-mode was completely, or mos= tly, rewritten by me circa 2014. So this bug report is probably stale now..= .

Jo=C3=A3o

On Wed, Jun 2= , 2021, 08:07 Lars Ingebrigtsen <larsi= @gnus.org> wrote:
Christop= her Schmidt <christopher@ch.ristopher.com> writes:

> I often encounter electric-pair-mode inserting unnecessary quotation > marks on GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version > 2.24.9) of 2012-03-01.
>
> Recipe:
>
> emacs -q
> C-x b RET # we are in *scratch* now
> M-x electric-pair-mode RET
> "test C-d # at this point the line at point should read `"te= st
> "
>
> the line at point now contains "test"".=C2=A0 I think e= lectric-pair-mode
> should be smarter here, do a little backtracking, and just insert one<= br> > quote.

(I'm going through old bug reports that unfortunately got little respon= se at
the time.)

I'm unable to reproduce this problem in Emacs 25 or more recent version= s
of Emacs, but I'm not sure I totally understand the recipe:=C2=A0 I end= up
with a line reading

"test"

which is what I expect.=C2=A0 Are you still seeing this issue in recent Ema= cs
versions?

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no



--00000000000052e11e05c4347b22--