GNU bug report logs - #10948
24.0.94; electric-pair-mode inserts unnecessary "

Previous Next

Package: emacs;

Reported by: Christopher Schmidt <christopher <at> ch.ristopher.com>

Date: Mon, 5 Mar 2012 17:06:02 UTC

Severity: wishlist

Tags: moreinfo

Found in version 24.0.94

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 10948 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 10948 <at> debbugs.gnu.org
Subject: Re: bug#10948: 24.0.94; electric-pair-mode inserts unnecessary "
Date: Mon, 05 Mar 2012 16:32:18 -0500
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




This bug report was last modified 4 years and 36 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.