changeset 34131:63a3259e1b50

(check-ispell-version): Don't use match-beginning to check if the match succeeded.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 02 Dec 2000 20:28:33 +0000
parents 2f332379e418
children 2e41fb2e49ea
files lisp/textmodes/ispell.el
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/ispell.el	Sat Dec 02 20:19:39 2000 +0000
+++ b/lisp/textmodes/ispell.el	Sat Dec 02 20:28:33 2000 +0000
@@ -747,8 +747,7 @@
 				 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)))