unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Christopher Schmidt <christopher@ch.ristopher.com>
Cc: 10948@debbugs.gnu.org
Subject: bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
Date: Wed, 02 Jun 2021 09:06:13 +0200	[thread overview]
Message-ID: <87mts87nkq.fsf@gnus.org> (raw)
In-Reply-To: <20120305091308.94B251FDD0@saturn.ch.ristopher.com> (Christopher Schmidt's message of "Mon, 05 Mar 2012 10:13:06 +0100")

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





  parent reply	other threads:[~2021-06-02  7:06 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
2021-06-02  7:06 ` Lars Ingebrigtsen [this message]
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=87mts87nkq.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=10948@debbugs.gnu.org \
    --cc=christopher@ch.ristopher.com \
    /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).