changeset 49085:18b672f173d2

(lookup-words): Cope with null lookup-dict.
author Dave Love <fx@gnu.org>
date Mon, 06 Jan 2003 20:46:57 +0000
parents f43c7c8adcdf
children 74d7b6bd99e4
files lisp/textmodes/ispell.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/ispell.el	Mon Jan 06 20:39:08 2003 +0000
+++ b/lisp/textmodes/ispell.el	Mon Jan 06 20:46:57 2003 +0000
@@ -1240,7 +1240,7 @@
     ;; terrible kludge, and it's a bit slow, but it does get the work done.)
     (let ((cmd (aref string 0))
 	  ;; The following commands are not passed to Ispell until
-	  ;; we have a *reall* reason to invoke it.
+	  ;; we have a *real* reason to invoke it.
 	  (cmds-to-defer '(?* ?@ ?~ ?+ ?- ?! ?%))
 	  (default-major-mode 'fundamental-mode)
 	  (session-buf ispell-session-buffer)
@@ -1929,7 +1929,8 @@
 	    (while (search-backward "*" nil t) (insert "."))
 	    (setq word (buffer-string))
 	    (erase-buffer))
-	  (setq status (call-process prog nil t nil args word lookup-dict))
+	  ;; Use apply since `lookup-dict' can be nil.
+	  (setq status (apply #'call-process prog nil t nil args word lookup-dict))
 	  ;; grep returns status 1 and no output when word not found, which
 	  ;; is a perfectly normal thing.
 	  (if (stringp status)