GNU bug report logs - #69312
30.0.50; [WISHLIST] dicitionary buffer should retain search information

Previous Next

Package: emacs;

Reported by: No Wayman <iarchivedmywholelife <at> gmail.com>

Date: Thu, 22 Feb 2024 18:40:02 UTC

Severity: wishlist

Fixed in version 30.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: No Wayman <iarchivedmywholelife <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 69312 <at> debbugs.gnu.org
Subject: bug#69312: 30.0.50; [WISHLIST] dicitionary buffer should retain search information
Date: Sun, 03 Mar 2024 12:16:42 -0500
Juri Linkov <juri <at> linkov.net> writes:

> close 69312 30.0.50
> thanks
>
>>>> 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)
>>>
>>> With it installed, the dictionary-do-matching command is 
>>> broken.
>>> It results in:
>>>
>>> dictionary-do-matching: Buffer is read-only: #<buffer 
>>> *Dictionary*>
>>
>> Please provide a test case to reproduce the issue that you see.
>
> Never mind, I see now what is missing.  So this is fixed now.
> Thanks for the bug report.

To clarify the issue:

(defun dictionary-do-matching (word dictionary strategy function)
 "Search for WORD with STRATEGY in DICTIONARY and display them 
 with FUNCTION."

;;This insertion is thrown away...

 (insert (format-message "Lookup matching words for `%s' in `%s' 
 using `%s'\n"
                         word dictionary strategy))

;; [OMITTED FUNCTION BODY]

;; ...when this display function is called
   (funcall function reply)))




This bug report was last modified 1 year and 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.