GNU bug report logs - #10948
24.0.94; electric-pair-mode inserts unnecessary "

Previous Next

Package: emacs;

Reported by: Christopher Schmidt <christopher <at> ch.ristopher.com>

Date: Mon, 5 Mar 2012 17:06:02 UTC

Severity: wishlist

Tags: moreinfo

Found in version 24.0.94

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10948 in the body.
You can then email your comments to 10948 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10948; Package emacs. (Mon, 05 Mar 2012 17:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher Schmidt <christopher <at> ch.ristopher.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 05 Mar 2012 17:06:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Schmidt <christopher <at> ch.ristopher.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.94; electric-pair-mode inserts unnecessary "
Date: Mon, 05 Mar 2012 10:13:06 +0100
Hey gurus,

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.

This is a feature request and not a real bug, of course.

        Christopher




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10948; Package emacs. (Mon, 05 Mar 2012 21:34:01 GMT) Full text and rfc822 format available.

Message #8 received at 10948 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 10948 <at> debbugs.gnu.org
Subject: Re: bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
Date: Mon, 05 Mar 2012 16:32:18 -0500
severity 10948 wishlist
thanks

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

You mean that it should not pair up the quotes if we're already within quotes?
I guess that would make sense in programming-mode buffers.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10948; Package emacs. (Wed, 02 Jun 2021 07:07:02 GMT) Full text and rfc822 format available.

Message #11 received at 10948 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Christopher Schmidt <christopher <at> ch.ristopher.com>
Cc: 10948 <at> debbugs.gnu.org
Subject: Re: bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
Date: Wed, 02 Jun 2021 09:06:13 +0200
Christopher Schmidt <christopher <at> 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 `"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




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 02 Jun 2021 07:07:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10948; Package emacs. (Mon, 07 Jun 2021 22:23:02 GMT) Full text and rfc822 format available.

Message #16 received at 10948 <at> debbugs.gnu.org (full text, mbox):

From: João Távora <joaotavora <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Christopher Schmidt <christopher <at> ch.ristopher.com>, 10948 <at> debbugs.gnu.org
Subject: Re: bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
Date: Mon, 7 Jun 2021 23:22:36 +0100
[Message part 1 (text/plain, inline)]
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ão

On Wed, Jun 2, 2021, 08:07 Lars Ingebrigtsen <larsi <at> gnus.org> wrote:

> Christopher Schmidt <christopher <at> 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 `"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
>
>
>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10948; Package emacs. (Tue, 08 Jun 2021 09:34:02 GMT) Full text and rfc822 format available.

Message #19 received at 10948 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: João Távora <joaotavora <at> gmail.com>
Cc: Christopher Schmidt <christopher <at> ch.ristopher.com>, 10948 <at> debbugs.gnu.org
Subject: Re: bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
Date: Tue, 08 Jun 2021 11:33:19 +0200
João Távora <joaotavora <at> gmail.com> writes:

> Lars, as an fyi electric-pair-mode was completely, or mostly,
> rewritten by me circa 2014. So this bug report is probably stale
> now...

Right.  I'll leave the bug open a bit longer, though, to see if the
original reporter responds.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10948; Package emacs. (Tue, 06 Jul 2021 17:50:02 GMT) Full text and rfc822 format available.

Message #22 received at 10948 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: João Távora <joaotavora <at> gmail.com>
Cc: Christopher Schmidt <christopher <at> ch.ristopher.com>, 10948 <at> debbugs.gnu.org
Subject: Re: bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
Date: Tue, 06 Jul 2021 19:49:47 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> João Távora <joaotavora <at> gmail.com> writes:
>
>> Lars, as an fyi electric-pair-mode was completely, or mostly,
>> rewritten by me circa 2014. So this bug report is probably stale
>> now...
>
> Right.  I'll leave the bug open a bit longer, though, to see if the
> original reporter responds.

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

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




bug closed, send any further explanations to 10948 <at> debbugs.gnu.org and Christopher Schmidt <christopher <at> ch.ristopher.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 06 Jul 2021 17:51:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 04 Aug 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 259 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.