]> git.eshelyaron.com Git - emacs.git/commit
Fix latent side-effects of respecting field boundaries in text conversion
authorPo Lu <luangruo@yahoo.com>
Tue, 25 Jun 2024 03:37:09 +0000 (11:37 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 26 Jun 2024 13:32:19 +0000 (15:32 +0200)
commit5de0a843180e198d5c0fbf209777021cd9105df5
treebaac0e3255a6258f1f644998fbc0a80b7406bd27
parent0ee3f036c4ee716742eb721329b368fb1d83b85b
Fix latent side-effects of respecting field boundaries in text conversion

* src/textconv.c (textconv_query, get_extracted_text)
(get_surrounding_text): Restore selected window in addition to
excursion.
(locate_and_save_position_in_field): Restore excursion lest the
current buffer differ from the selected window's contents, to
prevent redisplay from clobbering the current buffer when called
while the current buffer is at variance with the selected
window's contents, as seen with dired-other-window.

(cherry picked from commit 1b4c56272110944c4ea1483c6f9662de9e42a07b)
src/textconv.c