Show error message when asking to match for nothing
* lisp/net/dictionary.el (dictionary-popup-matching-words): Show error if neither the parameter nor the word at point are defined This avoids an error later on when the nil value is used as string within dictionary-encode-charset.
This commit is contained in:
@@ -1179,7 +1179,7 @@ It presents the word at point as default input and allows editing it."
|
||||
(defun dictionary-popup-matching-words (&optional word)
|
||||
"Display entries matching the word at the point"
|
||||
(interactive)
|
||||
(dictionary-do-matching (or word (current-word))
|
||||
(dictionary-do-matching (or word (current-word) (error "Nothing to search for"))
|
||||
dictionary-default-dictionary
|
||||
dictionary-default-popup-strategy
|
||||
'dictionary-process-popup-replies))
|
||||
|
||||
Reference in New Issue
Block a user