unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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; 5+ 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] 5+ 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; 5+ 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] 5+ 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; 5+ 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] 5+ 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; 5+ 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] 5+ 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
  0 siblings, 0 replies; 5+ 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] 5+ messages in thread

end of thread, other threads:[~2021-06-08  9:33 UTC | newest]

Thread overview: 5+ 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

unofficial mirror of bug-gnu-emacs@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/emacs-bugs/0 emacs-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 emacs-bugs emacs-bugs/ https://yhetil.org/emacs-bugs \
		bug-gnu-emacs@gnu.org
	public-inbox-index emacs-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.bugs
	nntp://news.gmane.io/gmane.emacs.bugs


code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs.git

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git