[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-24 r117024: * lisp/textmodes/rst.el (electric-pair-p
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] emacs-24 r117024: * lisp/textmodes/rst.el (electric-pair-pairs): Declare. |
Date: |
Mon, 28 Apr 2014 15:04:56 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117024
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17131
committer: Stefan Monnier <address@hidden>
branch nick: emacs-24
timestamp: Mon 2014-04-28 11:04:49 -0400
message:
* lisp/textmodes/rst.el (electric-pair-pairs): Declare.
(rst-mode): Set it.
modified:
doc/lispref/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-6155
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/textmodes/rst.el rst.el-20091113204419-o5vbwnq5f7feedwu-8690
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog 2014-04-24 15:11:04 +0000
+++ b/doc/lispref/ChangeLog 2014-04-28 15:04:49 +0000
@@ -10,6 +10,11 @@
* internals.texi (Building Emacs): Improve indexing.
+2014-04-15 Stefan Monnier <address@hidden>
+
+ * display.texi (Overlay Properties): Reword the doc of `priority'.
+ (Finding Overlays): Document new arg of `overlays-at'.
+
2014-04-05 Glenn Morris <address@hidden>
* os.texi (Recording Input): Dribble files may contain passwords.
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2014-04-27 08:22:11 +0000
+++ b/lisp/ChangeLog 2014-04-28 15:04:49 +0000
@@ -1,3 +1,8 @@
+2014-04-28 Stefan Monnier <address@hidden>
+
+ * textmodes/rst.el (electric-pair-pairs): Declare.
+ (rst-mode): Set it (bug#17131).
+
2014-04-27 Juri Linkov <address@hidden>
* desktop.el (desktop-value-to-string): Let-bind `print-length'
=== modified file 'lisp/textmodes/rst.el'
--- a/lisp/textmodes/rst.el 2014-03-16 03:47:31 +0000
+++ b/lisp/textmodes/rst.el 2014-04-28 15:04:49 +0000
@@ -784,11 +784,9 @@
(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 @@
;; 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-24 r117024: * lisp/textmodes/rst.el (electric-pair-pairs): Declare.,
Stefan Monnier <=