From c10b0abc3891947ffe2b56ed8228e8d1a8b7c583 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 10 Sep 2005 15:09:06 +0000 Subject: (ispell-check-version): Signal an error if aspell version is less than 0.60. --- lisp/textmodes/ispell.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lisp/textmodes/ispell.el') diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 8bd8ed2d692..acd27d69c46 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -814,7 +814,10 @@ Otherwise returns the library directory name, if that is defined." (goto-char (point-min)) (let (case-fold-search) (setq ispell-really-aspell - (and (search-forward "(but really Aspell " nil t) t)))) + (and (search-forward-regexp "(but really Aspell \\(.*\\))" nil t) + (if (version< (match-string 1) "0.60") + (error "aspell version 0.60 or greater is required") + t))))) (kill-buffer (current-buffer))) result)) -- cgit v1.2.1