* bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
@ 2012-03-05 9:13 Christopher Schmidt
2012-03-05 21:32 ` Stefan Monnier
2021-06-02 7:06 ` Lars Ingebrigtsen
0 siblings, 2 replies; 6+ messages in thread
From: Christopher Schmidt @ 2012-03-05 9:13 UTC (permalink / raw)
To: 10948
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
2012-03-05 9:13 bug#10948: 24.0.94; electric-pair-mode inserts unnecessary " Christopher Schmidt
@ 2012-03-05 21:32 ` Stefan Monnier
2021-06-02 7:06 ` Lars Ingebrigtsen
1 sibling, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2012-03-05 21:32 UTC (permalink / raw)
To: 10948
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
2012-03-05 9:13 bug#10948: 24.0.94; electric-pair-mode inserts unnecessary " Christopher Schmidt
2012-03-05 21:32 ` Stefan Monnier
@ 2021-06-02 7:06 ` Lars Ingebrigtsen
2021-06-07 22:22 ` João Távora
1 sibling, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-02 7:06 UTC (permalink / raw)
To: Christopher Schmidt; +Cc: 10948
Christopher 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 `"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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
2021-06-02 7:06 ` Lars Ingebrigtsen
@ 2021-06-07 22:22 ` João Távora
2021-06-08 9:33 ` Lars Ingebrigtsen
0 siblings, 1 reply; 6+ messages in thread
From: João Távora @ 2021-06-07 22:22 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Christopher Schmidt, 10948
[-- Attachment #1: Type: text/plain, Size: 1316 bytes --]
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@gnus.org> wrote:
> Christopher 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 `"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
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 1964 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
2021-06-07 22:22 ` João Távora
@ 2021-06-08 9:33 ` Lars Ingebrigtsen
2021-07-06 17:49 ` Lars Ingebrigtsen
0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-08 9:33 UTC (permalink / raw)
To: João Távora; +Cc: Christopher Schmidt, 10948
João Távora <joaotavora@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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
2021-06-08 9:33 ` Lars Ingebrigtsen
@ 2021-07-06 17:49 ` Lars Ingebrigtsen
0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-06 17:49 UTC (permalink / raw)
To: João Távora; +Cc: Christopher Schmidt, 10948
Lars Ingebrigtsen <larsi@gnus.org> writes:
> João Távora <joaotavora@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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-07-06 17:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-05 9:13 bug#10948: 24.0.94; electric-pair-mode inserts unnecessary " Christopher Schmidt
2012-03-05 21:32 ` Stefan Monnier
2021-06-02 7:06 ` Lars Ingebrigtsen
2021-06-07 22:22 ` João Távora
2021-06-08 9:33 ` Lars Ingebrigtsen
2021-07-06 17:49 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.