unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Christopher Schmidt <christopher@ch.ristopher.com>,
	10948@debbugs.gnu.org
Subject: bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
Date: Mon, 7 Jun 2021 23:22:36 +0100	[thread overview]
Message-ID: <CALDnm51fdg0etWFKV6rqp98C-4nUq14vL8+0JhXf5VZ4CG4cFw@mail.gmail.com> (raw)
In-Reply-To: <87mts87nkq.fsf@gnus.org>

[-- 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 --]

  reply	other threads:[~2021-06-07 22:22 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
2021-06-07 22:22   ` João Távora [this message]
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=CALDnm51fdg0etWFKV6rqp98C-4nUq14vL8+0JhXf5VZ4CG4cFw@mail.gmail.com \
    --to=joaotavora@gmail.com \
    --cc=10948@debbugs.gnu.org \
    --cc=christopher@ch.ristopher.com \
    --cc=larsi@gnus.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).