changeset 96634:f9a35ef0a183

(calc-describe-thing): Use `re-search-forward' to search for regexp.
author Jay Belanger <jay.p.belanger@gmail.com>
date Sun, 13 Jul 2008 04:37:44 +0000
parents a97d26db1c42
children 3b07c9c8f11d
files lisp/calc/calc-help.el
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calc/calc-help.el	Sat Jul 12 22:56:11 2008 +0000
+++ b/lisp/calc/calc-help.el	Sun Jul 13 04:37:44 2008 +0000
@@ -366,20 +366,20 @@
     (let (Info-history)
       (Info-goto-node (buffer-substring (match-beginning 1) (match-end 1))))
     (or (let ((case-fold-search nil))
-	  (or (search-forward (format "\\[`%s'\\]\\|(`%s')\\|\\<The[ \n]`%s'"
-				      (or target thing)
-				      (or target thing)
-				      (or target thing)) nil t)
+	  (or (re-search-forward (format "\\[`%s'\\]\\|(`%s')\\|\\<The[ \n]`%s'"
+                                         (or target thing)
+                                         (or target thing)
+                                         (or target thing)) nil t)
 	      (and not-quoted
 		   (let ((case-fold-search t))
 		     (search-forward (or target thing) nil t)))
 	      (search-forward (format "`%s'" (or target thing)) nil t)
 	      (search-forward (or target thing) nil t)))
 	(let ((case-fold-search t))
-	  (or (search-forward (format "\\[`%s'\\]\\|(`%s')\\|\\<The[ \n]`%s'"
-				      (or target thing)
-				      (or target thing)
-				      (or target thing)) nil t)
+	  (or (re-search-forward (format "\\[`%s'\\]\\|(`%s')\\|\\<The[ \n]`%s'"
+                                         (or target thing)
+                                         (or target thing)
+                                         (or target thing)) nil t)
 	      (search-forward (format "`%s'" (or target thing)) nil t)
 	      (search-forward (or target thing) nil t))))
     (beginning-of-line)