bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62032: 28.2; `switch-frame' event exits incremental search


From: Juri Linkov
Subject: bug#62032: 28.2; `switch-frame' event exits incremental search
Date: Wed, 17 May 2023 19:30:50 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

> To summarize:
>
> I have been confused by a misleading comment in ispell.el - frame switches
> should actually exit isearch.  Others have been confused as well, see
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=41338#59.
>
> Attached is a patch that changes the comment to avoid future confusion. I'm
> still in the process of FSF copyright assignment, but the patch probably
> classifies as paperwork-exempt, anyway.
>
> If you feel that this all not worth the hassle, you can also just close
> this bug without patching anything.
>
> -    ;; Pass frame events transparently so they won't exit the search.
> -    ;; In particular, if we have more than one display open, then a
> -    ;; switch-frame might be generated by someone typing at another keyboard.
> +    ;; Frame events should exit the search, because such frame events
> +    ;; as `switch-frame’ and `delete-frame’ change the current buffer.
> +    ;; See Bug#41338 for details.
>      (define-key map [switch-frame] nil)
>      (define-key map [delete-frame] nil)
>      (define-key map [iconify-frame] nil)

Such comment could be pushed to emacs-29.

Then emacs-30 hopefully will support a new feature
'isearch-buffer-local' allowing not to exit isearch
after switching frames.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]