aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-08-15 01:37:41 +0000
committerRichard M. Stallman2005-08-15 01:37:41 +0000
commit7924c5dfbd466d72beac8d9ead55ed41c285b376 (patch)
tree286c6781f102fec102b514d1e888a9c8bfca49db
parent498eb267ff4aa9606ba0514719bf39ffb3f0741b (diff)
downloademacs-7924c5dfbd466d72beac8d9ead55ed41c285b376.tar.gz
emacs-7924c5dfbd466d72beac8d9ead55ed41c285b376.zip
(lookup-words): Cope with case where ARGS is empty.
-rw-r--r--lisp/textmodes/ispell.el10
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)