]> git.eshelyaron.com Git - emacs.git/commit
Adapt query-replace and lazy highlighting to text conversion
authorPo Lu <luangruo@yahoo.com>
Mon, 17 Feb 2025 08:46:48 +0000 (16:46 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 18 Feb 2025 08:52:34 +0000 (09:52 +0100)
commite6107d7f571b84ac1ba76de4b889fcb5529042b6
tree710c72e22061d4e10478cc12fbd4a81432f5d484
parent9978d3bce41c81f0f6358467a90b9d1d6c95c7a8
Adapt query-replace and lazy highlighting to text conversion

* lisp/isearch.el (isearch-lazy-highlight-new-loop): Rather call
redisplay to guarantee a valid window-start than sit-for, to
account for cases where this function is called from an
after-change-function bound to a special input event quickly
followed by another event that does not modify the buffer.

* lisp/progmodes/prog-mode.el (treesit-node-at): Declare
function before references.

* lisp/replace.el (perform-replace): When querying, suppress
text conversion around the input loop.

(cherry picked from commit b236a2529dd90c9f506243b594e2a0d33afb0946)
lisp/isearch.el
lisp/progmodes/prog-mode.el
lisp/replace.el