all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 62032@debbugs.gnu.org, Farblos <AKFKQU.9DF7RP@vodafonemail.de>
Subject: bug#62032: 28.2; `switch-frame' event exits incremental search
Date: Tue, 07 Mar 2023 20:23:55 +0200	[thread overview]
Message-ID: <86356gxvwk.fsf@mail.linkov.net> (raw)
In-Reply-To: <83wn3s6658.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 07 Mar 2023 15:30:11 +0200")

>> ;; open second frame
>> C-x 5 b *Messages* RET
>> 
>> ;; switch back to first frame showing scratch buffer
>> C-x 5 o 
>> 
>> ;; go to beginning of scratch buffer
>> ESC <
>> 
>> ;; isearch for "buffer"
>> C-s buffer
>> 
>> <switch to the second Emacs frame by window manager means, for example, M-Tab>
>> 
>> The last step on my Emacs would exit the incremental search on the first Emacs frame.
>> 
>> >From this comment in isearch.el:
>> 
>>     ;; 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.
>>     (define-key map [switch-frame] nil)
>>     (define-key map [delete-frame] nil)
>>     (define-key map [iconify-frame] nil)
>>     (define-key map [make-frame-visible] nil)
>>     (define-key map [mouse-movement] nil)
>>     (define-key map [language-change] nil)
>> 
>> I would deduce that this should not happen.
>> 
>> When I bind #'ignore to [switch-frame] instead of nil things work as expected (by me).
>
> Juri, could you please look into this?

This looks related to bug#41338 that is still unfixed.
But maybe 'ignore is really the right way to fix, this needs testing.





  reply	other threads:[~2023-03-07 18:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-07 11:38 bug#62032: 28.2; `switch-frame' event exits incremental search Farblos via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-07 13:30 ` Eli Zaretskii
2023-03-07 18:23   ` Juri Linkov [this message]
2023-03-07 21:02     ` Farblos via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-07 21:11       ` Farblos via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-09  7:50         ` Juri Linkov
2023-03-11 18:53           ` Sean Whitton
2023-03-11 19:51             ` Juri Linkov
2023-05-16 21:37               ` Jens Schmidt via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-17 16:30                 ` Juri Linkov
2023-05-18 10:44                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86356gxvwk.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=62032@debbugs.gnu.org \
    --cc=AKFKQU.9DF7RP@vodafonemail.de \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.