GNU bug report logs -
#19526
24.4; Wrapping text with pairs in electrical-pair-mode
Previous Next
Reported by: Sebastien Vauban <sva-news <at> mygooglest.com>
Date: Wed, 7 Jan 2015 14:09:02 UTC
Severity: normal
Tags: moreinfo
Found in version 24.4
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
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 19526 in the body.
You can then email your comments to 19526 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19526
; Package
emacs
.
(Wed, 07 Jan 2015 14:09:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sebastien Vauban <sva-news <at> mygooglest.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 07 Jan 2015 14:09:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Selecting a region and hitting one "pair" character does not wrap the
selected text with that character. Instead, it replaces the region by
the typed character.
That's a missing feature, IMHO, if electric-pair-mode is supposed to
replace (part of) smartparens, autopair and/or paredit -- unless you
consider them as completely orthogonal.
Best regards,
Seb
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19526
; Package
emacs
.
(Wed, 07 Jan 2015 15:15:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 19526 <at> debbugs.gnu.org (full text, mbox):
> Selecting a region and hitting one "pair" character does not wrap the
> selected text with that character.
I don't see that here:
% emacs -Q -f electric-pair-mode
C-SPC C-b C-b "
wraps the two newlines in ".." for me.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19526
; Package
emacs
.
(Thu, 29 Jan 2015 15:21:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 19526 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier wrote:
> Sebastien Vauban:
>> Selecting a region and hitting one "pair" character does not wrap the
>> selected text with that character.
>
> I don't see that here:
>
> % emacs -Q -f electric-pair-mode
> C-SPC C-b C-b "
>
> wraps the two newlines in ".." for me.
I must have changed things over time, as it now works for me as well as
I expect it. Like what you show as well. Sorry for the noise.
Now, I've added:
--8<---------------cut here---------------start------------->8---
(defvar org-electric-pairs
'((?\* . ?\*)
(?/ . ?/)
(?_ . ?_)
(?= . ?=)
(?~ . ?~))
"Electric pairs for Org mode.") ; See `org-emphasis-alist'.
(defun org-add-electric-pairs ()
(setq-local electric-pair-pairs (append electric-pair-pairs org-electric-pairs)))
(add-hook 'org-mode-hook 'org-add-electric-pairs)
--8<---------------cut here---------------end--------------->8---
to get added support of markers *, /, _, = and ~ in Org mode. And that
works OK.
Small question regarding the double quotes: would there be a way to
convert them to « | » (instead of "|", where | is the cursor) when
`ispell-local-dictionary' or `ispell-dictionary' is equal to "francais"?
A few hings on how could we implement this in our .emacs (if it's not
foreseen in electric-pair-mode)?
Best regards,
Seb
--
Sebastien Vauban
bug closed, send any further explanations to
19526 <at> debbugs.gnu.org and Sebastien Vauban <sva-news <at> mygooglest.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 26 Dec 2015 16:36: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
.
(Sun, 24 Jan 2016 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 154 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.