]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-describe-thing): Use `re-search-forward' to search for regexp.
authorJay Belanger <jay.p.belanger@gmail.com>
Sun, 13 Jul 2008 04:37:44 +0000 (04:37 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Sun, 13 Jul 2008 04:37:44 +0000 (04:37 +0000)
lisp/calc/calc-help.el

index 5357ca17f564be6ea983bc9daaceb24317b7722d..7b9ac5cd1fded280b6926f2167243ae4ed316c57 100644 (file)
@@ -366,20 +366,20 @@ C-w  Describe how there is no warranty for Calc."
     (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)