unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15929: point position with electric-pair-mode
@ 2013-11-19 19:51 Dan Nicolaescu
  2013-11-20 19:19 ` Stefan Monnier
  2016-09-08  4:08 ` Alex
  0 siblings, 2 replies; 4+ messages in thread
From: Dan Nicolaescu @ 2013-11-19 19:51 UTC (permalink / raw)
  To: 15929


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

        







^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#15929: point position with electric-pair-mode
  2013-11-19 19:51 bug#15929: point position with electric-pair-mode Dan Nicolaescu
@ 2013-11-20 19:19 ` Stefan Monnier
  2013-12-02 17:56   ` Dan Nicolaescu
  2016-09-08  4:08 ` Alex
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2013-11-20 19:19 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: 15929

> 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








^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#15929: point position with electric-pair-mode
  2013-11-20 19:19 ` Stefan Monnier
@ 2013-12-02 17:56   ` Dan Nicolaescu
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Nicolaescu @ 2013-12-02 17:56 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 15929

Stefan Monnier <monnier@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... :-(





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#15929: point position with electric-pair-mode
  2013-11-19 19:51 bug#15929: point position with electric-pair-mode Dan Nicolaescu
  2013-11-20 19:19 ` Stefan Monnier
@ 2016-09-08  4:08 ` Alex
  1 sibling, 0 replies; 4+ messages in thread
From: Alex @ 2016-09-08  4:08 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: 15929

close 15929 24.4
quit

Dan Nicolaescu <dann@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-08  4:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19 19:51 bug#15929: point position with electric-pair-mode Dan Nicolaescu
2013-11-20 19:19 ` Stefan Monnier
2013-12-02 17:56   ` Dan Nicolaescu
2016-09-08  4:08 ` Alex

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).