From 7926cf73414d93700119f6138429a1347bb797fa Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sat, 5 Nov 2022 19:34:47 +0200 Subject: [PATCH] * lisp/net/dictionary.el (dictionary-search): Use format-prompt. --- lisp/net/dictionary.el | 4 +--- 1 file changed, 1 insertion(+), 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 -- 2.39.2