]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/dictionary.el (dictionary-new-matching): Add dictionary-pre-buffer.
authorJuri Linkov <juri@linkov.net>
Sun, 3 Mar 2024 16:58:47 +0000 (18:58 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 3 Mar 2024 17:05:38 +0000 (18:05 +0100)
This is necessary to prepare the dictionary buffer for further processing
that also includes setting buffer-read-only to nil to be able to insert text.
(bug#69312)

(cherry picked from commit 23c984a7dea950e15b969fe5b7ca0395315f207a)

lisp/net/dictionary.el

index 730557599af0c76d9465c9d4e7742f3a9220aa94..6690021aedc0005556b1a70dbb6b39f05a0dd2c7 100644 (file)
@@ -1118,6 +1118,7 @@ If PATTERN is omitted, it defaults to \"[ \\f\\t\\n\\r\\v]+\"."
   "Run a new matching search on WORD."
   (dictionary-ensure-buffer)
   (dictionary-store-positions)
+  (dictionary-pre-buffer)
   (dictionary-do-matching word dictionary-default-dictionary
                          dictionary-default-strategy
                          'dictionary-display-match-result)