changeset 110722:e7a37ab07782

* textmodes/rst.el (rst-font-lock-keywords-function): Drop Emacs 20 code.
author Glenn Morris <rgm@gnu.org>
date Sat, 02 Oct 2010 19:26:35 -0700
parents ad5ef46bca3e
children c4618282ea32
files lisp/ChangeLog lisp/textmodes/rst.el
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Oct 02 19:22:40 2010 -0700
+++ b/lisp/ChangeLog	Sat Oct 02 19:26:35 2010 -0700
@@ -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.
--- a/lisp/textmodes/rst.el	Sat Oct 02 19:22:40 2010 -0700
+++ b/lisp/textmodes/rst.el	Sat Oct 02 19:26:35 2010 -0700
@@ -2859,10 +2859,7 @@
 
 	 ;; 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