]> code.delx.au - gnu-emacs/commitdiff
* lisp/textmodes/rst.el (electric-pair-pairs): Declare.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 28 Apr 2014 15:04:49 +0000 (11:04 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 28 Apr 2014 15:04:49 +0000 (11:04 -0400)
(rst-mode): Set it.

Fixes: debbugs:17131
doc/lispref/ChangeLog
lisp/ChangeLog
lisp/textmodes/rst.el

index c2907cccf6e71a43c2460b25fc14566fac5fef84..f538b960b509cef61d978b53628216097db17831 100644 (file)
 
        * internals.texi (Building Emacs): Improve indexing.
 
+2014-04-15  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * display.texi (Overlay Properties): Reword the doc of `priority'.
+       (Finding Overlays): Document new arg of `overlays-at'.
+
 2014-04-05  Glenn Morris  <rgm@gnu.org>
 
        * os.texi (Recording Input): Dribble files may contain passwords.
index 94a80120ed83a4b577dd44277c82151ba46c8e8f..e27d7b1c6a0dd8e6bf6a84a22468da41e136c9e6 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * textmodes/rst.el (electric-pair-pairs): Declare.
+       (rst-mode): Set it (bug#17131).
+
 2014-04-27  Juri Linkov  <juri@jurta.org>
 
        * desktop.el (desktop-value-to-string): Let-bind `print-length'
index d4a3438ce972aabc10785003eb758f07d74da56d..b05a5e5a7e3bef847e84599733dce276231463f4 100644 (file)
@@ -784,11 +784,9 @@ This inherits from Text mode.")
     (modify-syntax-entry ?\u2019 "." st)
     (modify-syntax-entry ?\u201c "." st)
     (modify-syntax-entry ?\u201d "." st)
-
     st)
   "Syntax table used while in `rst-mode'.")
 
-
 (defcustom rst-mode-hook nil
   "Hook run when `rst-mode' is turned on.
 The hook for `text-mode' is run before this one."
@@ -799,6 +797,8 @@ The hook for `text-mode' is run before this one."
 ;; 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 @@ highlighting.
   (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.