unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: 10948@debbugs.gnu.org
Subject: bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
Date: Mon, 05 Mar 2012 16:32:18 -0500	[thread overview]
Message-ID: <jwvhay27n2v.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20120305091308.94B251FDD0@saturn.ch.ristopher.com> (Christopher Schmidt's message of "Mon, 05 Mar 2012 10:13:06 +0100")

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





  reply	other threads:[~2012-03-05 21:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-05  9:13 bug#10948: 24.0.94; electric-pair-mode inserts unnecessary " Christopher Schmidt
2012-03-05 21:32 ` Stefan Monnier [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvhay27n2v.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=10948@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).