From: "Drew Adams" <drew.adams@oracle.com>
To: "'Stefan Monnier'" <monnier@iro.umontreal.ca>
Cc: 10037@debbugs.gnu.org
Subject: bug#10037: 24.0.91; `isearch-mouse-2' no good with standalone minibuffer frame
Date: Tue, 6 Dec 2011 16:25:14 -0800 [thread overview]
Message-ID: <308914D4D17149D99C5B8361D477ED04@us.oracle.com> (raw)
In-Reply-To: <jwvwra9b9eb.fsf-monnier+emacs@gnu.org>
> > What I do not understand is why handling the `switch-frame' event in
> > the normal way would exit Isearch.
>
> AFAIK isearch has always exited upon switch-frame, yes.
Dontcha think that's likely because mouse events, and a standalone minibuffer
frame, were not foreseen during search? In a keyboard-only scenario and no
minibuffer frame, a frame switch would pretty naturally indicate a logical end
to search in the current buffer (likely anyway).
That's not the use case I have. There are lots of things in Emacs that do not
foresee/expect/plan for multiple frames and a standalone minibuffer. This just
seems like another one.
> Often switch-frame end up selecting another buffer,
"Another buffer" could well be the minibuffer: isearch already involves two
buffers and two windows, independently of frame switching.
> so making Isearch behave "properly" in this case without
> actually exiting is a bit tricky.
I don't have any reason to doubt you that it might be tricky, for some meaning
of "behave properly". I don't have any insight wrt the code here.
On the other hand, the switch-frame event is very likely to be because of the
mouse movement in this case, and the frame switched to is likely to be the frame
where the mouse is clicked.
IOW, why wouldn't it just "work", in practice, at least most of the time, if
`switch-frame' were not coded to exit isearch? Just why is that exiting needed?
It can always be the case that you click mouse-2 in a window other than what you
really intended. Why is this so different? Why should crossing a frame
boundary be handled so very differently (in this case) from crossing a window
boundary? If the concern is which buffer ends up the target, and whether it was
the intended target, it seems like that problem should be the same in both cases
(window/frame).
Just food for thought, I guess. I don't see the logical obstacle. I do imagine
designers possibly not thinking about the use of a standalone minibuffer. And I
wonder if that might not be the only reason behind this behavior.
next prev parent reply other threads:[~2011-12-07 0:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-13 17:34 bug#10037: 24.0.91; `isearch-mouse-2' no good with standalone minibuffer frame Drew Adams
2011-11-14 22:54 ` Drew Adams
2011-12-06 22:54 ` Stefan Monnier
2011-12-07 0:25 ` Drew Adams [this message]
2011-12-07 1:15 ` Stefan Monnier
2011-12-07 2:50 ` Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=308914D4D17149D99C5B8361D477ED04@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=10037@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).