Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7924c5df
Commit
7924c5df
authored
Aug 15, 2005
by
Richard M. Stallman
Browse files
(lookup-words): Cope with case where ARGS is empty.
parent
498eb267
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
lisp/textmodes/ispell.el
lisp/textmodes/ispell.el
+7
-3
No files found.
lisp/textmodes/ispell.el
View file @
7924c5df
...
...
@@ -2150,9 +2150,13 @@ Optional second argument contains the dictionary to use; the default is
(while (search-backward "*" nil t) (insert "."))
(setq word (buffer-string))
(erase-buffer))
(
setq
status
(
if
lookup-dict
(
call-process
prog
nil
t
nil
args
word
lookup-dict
)
(
call-process
prog
nil
t
nil
args
word
)))
(setq status (apply 'call-process prog nil t nil
(nconc (if (and args (> (length args) 0))
(list args)
(if look-p nil
(list "-e")))
(list word)
(if lookup-dict (list lookup-dict)))))
;; grep returns status 1 and no output when word not found, which
;; is a perfectly normal thing.
(if (stringp status)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment