diff options
| author | Dave Love | 2003-01-06 20:46:57 +0000 |
|---|---|---|
| committer | Dave Love | 2003-01-06 20:46:57 +0000 |
| commit | 3849454a12a90566ca7ff6557b0e860dfb24f570 (patch) | |
| tree | ed6a21cd96ef30a6807fd9e704d655a9e70e7552 | |
| parent | 9da20928ff0591eb5f93658d69120861257f87ef (diff) | |
| download | emacs-3849454a12a90566ca7ff6557b0e860dfb24f570.tar.gz emacs-3849454a12a90566ca7ff6557b0e860dfb24f570.zip | |
(lookup-words): Cope with null lookup-dict.
| -rw-r--r-- | lisp/textmodes/ispell.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 9efe8c9ee33..249cbe28972 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1240,7 +1240,7 @@ pass it the output of the last ispell invocation." | |||
| 1240 | ;; terrible kludge, and it's a bit slow, but it does get the work done.) | 1240 | ;; terrible kludge, and it's a bit slow, but it does get the work done.) |
| 1241 | (let ((cmd (aref string 0)) | 1241 | (let ((cmd (aref string 0)) |
| 1242 | ;; The following commands are not passed to Ispell until | 1242 | ;; The following commands are not passed to Ispell until |
| 1243 | ;; we have a *reall* reason to invoke it. | 1243 | ;; we have a *real* reason to invoke it. |
| 1244 | (cmds-to-defer '(?* ?@ ?~ ?+ ?- ?! ?%)) | 1244 | (cmds-to-defer '(?* ?@ ?~ ?+ ?- ?! ?%)) |
| 1245 | (default-major-mode 'fundamental-mode) | 1245 | (default-major-mode 'fundamental-mode) |
| 1246 | (session-buf ispell-session-buffer) | 1246 | (session-buf ispell-session-buffer) |
| @@ -1929,7 +1929,8 @@ Optional second argument contains the dictionary to use; the default is | |||
| 1929 | (while (search-backward "*" nil t) (insert ".")) | 1929 | (while (search-backward "*" nil t) (insert ".")) |
| 1930 | (setq word (buffer-string)) | 1930 | (setq word (buffer-string)) |
| 1931 | (erase-buffer)) | 1931 | (erase-buffer)) |
| 1932 | (setq status (call-process prog nil t nil args word lookup-dict)) | 1932 | ;; Use apply since `lookup-dict' can be nil. |
| 1933 | (setq status (apply #'call-process prog nil t nil args word lookup-dict)) | ||
| 1933 | ;; grep returns status 1 and no output when word not found, which | 1934 | ;; grep returns status 1 and no output when word not found, which |
| 1934 | ;; is a perfectly normal thing. | 1935 | ;; is a perfectly normal thing. |
| 1935 | (if (stringp status) | 1936 | (if (stringp status) |