Subject: Re: bug#69312: 30.0.50; [WISHLIST] dicitionary buffer should retain search information

From: No Wayman <[email-masked]>
Date: Fri, 23 Feb 2024 10:29:34 -0500

Juri Linkov <[email-masked]> writes:

>
> Like this?
>
> diff --git a/lisp/net/dictionary.el b/lisp/net/dictionary.el
> index 1981b757017..ccce0b541df 100644
> --- a/lisp/net/dictionary.el
> +++ b/lisp/net/dictionary.el
> @@ -787,7 +787,7 @@ dictionary-do-search
>  Optional argument NOMATCHING controls whether to suppress the 
>  display
>  of matching words."
>  
> -  (message "Searching for %s in %s" word dictionary)
> +  (insert (format "Searching for %s in %s\n" word dictionary))
>    (dictionary-send-command (concat "define "
>  				   (dictionary-encode-charset dictionary "")
>  				   " \""

Thanks, Juri. This takes care of dictionary-do-search, but 
dictionary-do-matching indirectly calls the function responsible 
for displaying the results and does not pass the query along. 
So a similar modification will not work there.