GNU bug report logs -
#17131
24.4.50; rst-mode is missing electric-pairs
Previous Next
Reported by: Sebastian Wiesner <lunaryorn <at> gmail.com>
Date: Fri, 28 Mar 2014 14:50:02 UTC
Severity: wishlist
Found in version 24.4.50
Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
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 17131 in the body.
You can then email your comments to 17131 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#17131
; Package
emacs
.
(Fri, 28 Mar 2014 14:50:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sebastian Wiesner <lunaryorn <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 28 Mar 2014 14:50:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
With electric-pairs-mode enabled, rst-mode does not pair * and ` (the
backtick). The star is used for emphasis and strong markup as in
*emphasized* and **bold**, and the backtick is even more ubiquitous, as
it surrounds literal text, references, and role arguments.
Reply sent
to
Stefan Monnier <monnier <at> IRO.UMontreal.CA>
:
You have taken responsibility.
(Mon, 28 Apr 2014 15:06:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Sebastian Wiesner <lunaryorn <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 28 Apr 2014 15:06:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 17131-done <at> debbugs.gnu.org (full text, mbox):
> With electric-pairs-mode enabled, rst-mode does not pair * and ` (the
> backtick). The star is used for emphasis and strong markup as in
> *emphasized* and **bold**, and the backtick is even more ubiquitous, as
> it surrounds literal text, references, and role arguments.
I installed the patch below into emacs-24 which should fix it, thank you,
Stefan
=== modified file 'lisp/textmodes/rst.el'
--- lisp/textmodes/rst.el 2014-03-16 03:47:31 +0000
+++ lisp/textmodes/rst.el 2014-04-28 14:59:46 +0000
@@ -799,6 +797,8 @@
;; Pull in variable definitions silencing byte-compiler.
(require 'newcomment)
+(defvar electric-pair-pairs)
+
;; Use rst-mode for *.rst and *.rest files. Many ReStructured-Text files
;; use *.txt, but this is too generic to be set as a default.
;;;###autoload (add-to-list 'auto-mode-alist (purecopy '("\\.re?st\\'" . rst-mode)))
@@ -860,6 +860,9 @@
(set (make-local-variable 'uncomment-region-function)
'rst-uncomment-region)
+ (set (make-local-variable 'electric-pair-pairs)
+ '((?\" . ?\") (?\* . ?\*) (?\` . ?\`)))
+
;; Imenu and which function.
;; FIXME: Check documentation of `which-function' for alternative ways to
;; determine the current function name.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 27 May 2014 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 30 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.