GNU bug report logs - #15929
point position with electric-pair-mode

Previous Next

Package: emacs;

Reported by: Dan Nicolaescu <dann <at> gnu.org>

Date: Tue, 19 Nov 2013 19:52:02 UTC

Severity: minor

Fixed in version 24.4

Done: Alex <agrambot <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15929 in the body.
You can then email your comments to 15929 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15929; Package emacs. (Tue, 19 Nov 2013 19:52:03 GMT) Full text and rfc822 format available.

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

From: Dan Nicolaescu <dann <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: point position with electric-pair-mode
Date: Tue, 19 Nov 2013 14:51:16 -0500
emacs -Q
M-x electric-pair-mode RET

f o o C-SPC C-a

The point should now be at the beginning of a line that contains the
string: foo

Typing " inserts quotes around foo, but the point is moved to the end of
the line.  After inserting a pair, the point is moved after the last
item in the pair, regardless if the point was at the begging of the
region. 

It would be better if the point stayed in the same location.  Or at
least offer a configuration variable to allow that behavior.

Thanks

        






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15929; Package emacs. (Wed, 20 Nov 2013 19:20:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Dan Nicolaescu <dann <at> gnu.org>
Cc: 15929 <at> debbugs.gnu.org
Subject: Re: bug#15929: point position with electric-pair-mode
Date: Wed, 20 Nov 2013 14:19:06 -0500
> Typing " inserts quotes around foo, but the point is moved to the end of
> the line.  After inserting a pair, the point is moved after the last
> item in the pair, regardless if the point was at the begging of the
> region.
> It would be better if the point stayed in the same location.

Agreed.  Fix welcome.

> Or at least offer a configuration variable to allow that behavior.

I don't think it's needed.


        Stefan







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15929; Package emacs. (Mon, 02 Dec 2013 17:57:01 GMT) Full text and rfc822 format available.

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

From: Dan Nicolaescu <dann <at> gnu.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 15929 <at> debbugs.gnu.org
Subject: Re: bug#15929: point position with electric-pair-mode
Date: Mon, 02 Dec 2013 12:56:50 -0500
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:

>> Typing " inserts quotes around foo, but the point is moved to the end of
>> the line.  After inserting a pair, the point is moved after the last
>> item in the pair, regardless if the point was at the begging of the
>> region.
>> It would be better if the point stayed in the same location.
>
> Agreed.  Fix welcome.

Unfortunately I won't have any time to look at this for quite a
while... :-(




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15929; Package emacs. (Thu, 08 Sep 2016 04:09:02 GMT) Full text and rfc822 format available.

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

From: Alex <agrambot <at> gmail.com>
To: Dan Nicolaescu <dann <at> gnu.org>
Cc: 15929 <at> debbugs.gnu.org
Subject: Re: bug#15929: point position with electric-pair-mode
Date: Wed, 07 Sep 2016 22:08:43 -0600
close 15929 24.4
quit

Dan Nicolaescu <dann <at> gnu.org> writes:

> emacs -Q
> M-x electric-pair-mode RET
>
> f o o C-SPC C-a
>
> The point should now be at the beginning of a line that contains the
> string: foo
>
> Typing " inserts quotes around foo, but the point is moved to the end of
> the line.  After inserting a pair, the point is moved after the last
> item in the pair, regardless if the point was at the begging of the
> region. 
>
> It would be better if the point stayed in the same location.  Or at
> least offer a configuration variable to allow that behavior.
>
> Thanks
>
>         

This appears to have been fixed in 24.4.




bug marked as fixed in version 24.4, send any further explanations to 15929 <at> debbugs.gnu.org and Dan Nicolaescu <dann <at> gnu.org> Request was from Alex <agrambot <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 08 Sep 2016 04:09:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 06 Oct 2016 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 254 days ago.

Previous Next


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