summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2022-11-05 19:34:47 +0200
committerJuri Linkov <juri@linkov.net>2022-11-05 19:34:47 +0200
commit7926cf73414d93700119f6138429a1347bb797fa (patch)
treeacc282d6a38f3b03c2d75ec10de52772b1b0d22d
parent2637ef8f48a9f1bd26575731465b9ce0e75d4653 (diff)
downloademacs-7926cf73414d93700119f6138429a1347bb797fa.tar.gz
* lisp/net/dictionary.el (dictionary-search): Use format-prompt.
-rw-r--r--lisp/net/dictionary.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/net/dictionary.el b/lisp/net/dictionary.el
index b8f5018005b..d381750eb00 100644
--- a/lisp/net/dictionary.el
+++ b/lisp/net/dictionary.el
@@ -1150,9 +1150,7 @@ It presents the selection or word at point as default input and
allows editing it."
(interactive
(list (let ((default (dictionary-search-default)))
- (read-string (if default
- (format "Search word (%s): " default)
- "Search word: ")
+ (read-string (format-prompt "Search word" default)
nil 'dictionary-word-history default))
(if current-prefix-arg
(read-string (if dictionary-default-dictionary