GNU bug report logs - #30502
26.0.91; electric-pair-mode documentation

Previous Next

Package: emacs;

Reported by: charles <at> aurox.ch (Charles A. Roelli)

Date: Sat, 17 Feb 2018 15:59:02 UTC

Severity: minor

Found in version 26.0.91

Done: charles <at> aurox.ch (Charles A. Roelli)

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: charles <at> aurox.ch (Charles A. Roelli)
Cc: 30502 <at> debbugs.gnu.org
Subject: Re: bug#30502: 26.0.91; electric-pair-mode documentation
Date: Sat, 17 Feb 2018 19:31:42 +0200
> Date: Sat, 17 Feb 2018 17:51:45 +0100
> From: charles <at> aurox.ch (Charles A. Roelli)
> CC: 30502 <at> debbugs.gnu.org
> 
> The node does not mention anything about automatically
> inserting a matching delimeter at the mark when the region is active
> and a delimeter character is typed.

Thanks, I documented that now.  In the doc string of the mode as well.

> By "this functionality" I mean auto-inserting a matching delimeter at
> the mark when a delimeter character is typed, when electric-pair-mode
> is on.  The region has to be active for this to work, therefore
> transient-mark-mode must be on (even if temporarily).  I suggest
> adding a command that wraps point and mark with some given delimeters,
> regardless of whether the region is active.

We have "C-u C-x C-x" that turns on transient-mark-mode temporarily.
Isn't that enough?  If not, the issue is general, not specific to this
mode.




This bug report was last modified 7 years and 95 days ago.

Previous Next


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