]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix xwidget isearch for queries that look like format strings
authorPo Lu <luangruo@yahoo.com>
Tue, 16 Nov 2021 01:25:55 +0000 (09:25 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 16 Nov 2021 01:32:37 +0000 (09:32 +0800)
* lisp/xwidget.el (xwidget-webkit-isearch--update): Give special
treatment to messages.

lisp/xwidget.el

index 485d995f418c62ea958ba11e915cc7a2491a6b1d..a587fe85dbcc0dfc64ee2b4273d9c754c734d69b 100644 (file)
@@ -911,8 +911,8 @@ WebKit widget.  The query will be set to the contents of
                            (xwidget-webkit-current-session)
                            t xwidget-webkit-isearch--is-reverse t))
   (let ((message-log-max nil))
-    (message (concat (propertize "Search contents: " 'face 'minibuffer-prompt)
-                     xwidget-webkit-isearch--string))))
+    (message "%s" (concat (propertize "Search contents: " 'face 'minibuffer-prompt)
+                          xwidget-webkit-isearch--string))))
 
 (defun xwidget-webkit-isearch-erasing-char (count)
   "Erase the last COUNT characters of the current query."