diff options
| author | Richard M. Stallman | 2005-08-15 01:37:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-08-15 01:37:41 +0000 |
| commit | 7924c5dfbd466d72beac8d9ead55ed41c285b376 (patch) | |
| tree | 286c6781f102fec102b514d1e888a9c8bfca49db | |
| parent | 498eb267ff4aa9606ba0514719bf39ffb3f0741b (diff) | |
| download | emacs-7924c5dfbd466d72beac8d9ead55ed41c285b376.tar.gz emacs-7924c5dfbd466d72beac8d9ead55ed41c285b376.zip | |
(lookup-words): Cope with case where ARGS is empty.
| -rw-r--r-- | lisp/textmodes/ispell.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 5afdf63ff2a..173d5eb66b2 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -2150,9 +2150,13 @@ Optional second argument contains the dictionary to use; the default is | |||
| 2150 | (while (search-backward "*" nil t) (insert ".")) | 2150 | (while (search-backward "*" nil t) (insert ".")) |
| 2151 | (setq word (buffer-string)) | 2151 | (setq word (buffer-string)) |
| 2152 | (erase-buffer)) | 2152 | (erase-buffer)) |
| 2153 | (setq status (if lookup-dict | 2153 | (setq status (apply 'call-process prog nil t nil |
| 2154 | (call-process prog nil t nil args word lookup-dict) | 2154 | (nconc (if (and args (> (length args) 0)) |
| 2155 | (call-process prog nil t nil args word))) | 2155 | (list args) |
| 2156 | (if look-p nil | ||
| 2157 | (list "-e"))) | ||
| 2158 | (list word) | ||
| 2159 | (if lookup-dict (list lookup-dict))))) | ||
| 2156 | ;; grep returns status 1 and no output when word not found, which | 2160 | ;; grep returns status 1 and no output when word not found, which |
| 2157 | ;; is a perfectly normal thing. | 2161 | ;; is a perfectly normal thing. |
| 2158 | (if (stringp status) | 2162 | (if (stringp status) |