* textmodes/rst.el (rst-font-lock-keywords-function): Drop Emacs 20 code.
authorGlenn Morris <rgm@gnu.org>
Sun, 3 Oct 2010 02:26:35 +0000 (19:26 -0700)
committerGlenn Morris <rgm@gnu.org>
Sun, 3 Oct 2010 02:26:35 +0000 (19:26 -0700)
lisp/ChangeLog
lisp/textmodes/rst.el

index 2b38bac..9e36ed9 100644 (file)
@@ -1,5 +1,8 @@
 2010-10-03  Glenn Morris  <rgm@gnu.org>
 
+       * textmodes/rst.el (rst-font-lock-keywords-function):
+       Drop Emacs 20 code.
+
        * textmodes/artist.el (artist-replace-char): Drop Emacs 20 code.
 
        * printing.el: Drop Emacs 20 code.
index fd3148d..afc4dd8 100644 (file)
@@ -2859,10 +2859,7 @@ details check the Rst Faces Defaults group."
 
         ;; There seems to be a bug leading to error "Stack overflow in regexp
         ;; matcher" when "|" or "\\*" are the characters searched for
-        (re-imendbeg
-         (if (< emacs-major-version 21)
-             "]"
-           "\\]\\|\\\\."))
+        (re-imendbeg "\\]\\|\\\\.")
         ;; inline markup content end
         (re-imend (concat re-imendbeg "\\)*[^\t \\\\]\\)"))
         ;; inline markup content without asterisk