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

From: No Wayman <[email-masked]>
Date: Sat, 24 Feb 2024 23:06:10 -0500

Juri Linkov <[email-masked]> writes:

> Sorry, I didn't notice there is another place:
 
> @@ -787,7 +787,7 @@ dictionary-do-search

Thanks again.
The changes to dictionary-do-search look fine.

> @@ -1128,8 +1128,8 @@ dictionary-new-matching
>  
>  (defun dictionary-do-matching (word dictionary strategy 
>  function)
>    "Search for WORD with STRATEGY in DICTIONARY and display them 
>    with FUNCTION."
> -  (message "Lookup matching words for %s in %s using %s"
> -	   word dictionary strategy)
> +  (insert (format-message "Lookup matching words for %s in %s 
> using %s\n"
> +	                  word dictionary strategy))
>    (dictionary-send-command
>     (concat "match " (dictionary-encode-charset dictionary "") " 
>     "
>  	   (dictionary-encode-charset strategy "") " \""

This won't work. The buffer is in read-only mode, but even if that 
is inhibited, the string is overwritten by the call to the display 
function at the end:

> (funcall function reply)