GNU bug report logs - #62032
28.2; `switch-frame' event exits incremental search

Previous Next

Package: emacs;

Reported by: "Farblos" <AKFKQU.9DF7RP <at> vodafonemail.de>

Date: Tue, 7 Mar 2023 11:40:01 UTC

Severity: normal

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 62032 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 62032 <at> debbugs.gnu.org
Subject: Re: bug#62032: 28.2; `switch-frame' event exits incremental search
Date: Wed, 17 May 2023 19:30:50 +0300
> 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.




This bug report was last modified 2 years and 66 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.