]> git.eshelyaron.com Git - emacs.git/commitdiff
(check-ispell-version): Don't use match-beginning
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 2 Dec 2000 20:28:44 +0000 (20:28 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 2 Dec 2000 20:28:44 +0000 (20:28 +0000)
to check if the match succeeded.

lisp/ChangeLog
lisp/textmodes/ispell.el

index f7b03c122b15efb3552cb9eac5b7fd162c575740..cdfb46185476e08e4b10f0a28b1357a6227b51e7 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-02  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * textmodes/ispell.el (check-ispell-version): Don't use match-beginning
+       to check if the match succeeded.
+
 2000-12-02  Gerd Moellmann  <gerd@gnu.org>
 
        * startup.el (use-fancy-splash-screens-p): New function.
index 77c98d9cf4db05b165be2be95cd6c45fd163a106..9776b74753bd1e64c7c9e9e4f00ffe38954ee766 100644 (file)
@@ -747,8 +747,7 @@ Otherwise returns the library path if defined."
                                 ispell-version))
            (message result))
        ;; return library path.
-       (re-search-forward "LIBDIR = \\\"\\([^ \t\n]*\\)\\\"" nil t)
-       (if (match-beginning 0)
+       (if (re-search-forward "LIBDIR = \\\"\\([^ \t\n]*\\)\\\"" nil t)
            (setq result (buffer-substring (match-beginning 1) (match-end 1)))))
       (goto-char (point-min))
       (if (not (memq status '(0 nil)))