* Too much pita to paste into incremental regex search
@ 2012-01-22 23:07 Harry Putnam
2012-01-23 4:36 ` suvayu ali
2012-01-23 6:22 ` Eli Zaretskii
0 siblings, 2 replies; 11+ messages in thread
From: Harry Putnam @ 2012-01-22 23:07 UTC (permalink / raw
To: help-gnu-emacs
I don't use the incremental regex search much but did have need of it
today. And repeatedly. I found it difficult to impossible to
copy/paste to the prompt. As soon as you move the mouse, the prompt
disappears.
There must be some handier way to do that?
I switched to M-x search-forward-regex, and that does the job, but
still why do we make it so difficult to copy/paste to the incremental
regex search?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Too much pita to paste into incremental regex search
2012-01-22 23:07 Too much pita to paste into incremental regex search Harry Putnam
@ 2012-01-23 4:36 ` suvayu ali
2012-01-23 5:58 ` Drew Adams
2012-01-23 6:22 ` Eli Zaretskii
1 sibling, 1 reply; 11+ messages in thread
From: suvayu ali @ 2012-01-23 4:36 UTC (permalink / raw
To: Harry Putnam; +Cc: help-gnu-emacs
On Mon, Jan 23, 2012 at 04:37, Harry Putnam <reader@newsguy.com> wrote:
> I don't use the incremental regex search much but did have need of it
> today. And repeatedly. I found it difficult to impossible to
> copy/paste to the prompt. As soon as you move the mouse, the prompt
> disappears.
>
> There must be some handier way to do that?
M-e <edit the regex with regular commands>
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: Too much pita to paste into incremental regex search
2012-01-23 4:36 ` suvayu ali
@ 2012-01-23 5:58 ` Drew Adams
0 siblings, 0 replies; 11+ messages in thread
From: Drew Adams @ 2012-01-23 5:58 UTC (permalink / raw
To: 'suvayu ali', 'Harry Putnam'; +Cc: help-gnu-emacs
> > difficult to impossible to copy/paste to the prompt.
> > As soon as you move the mouse, the prompt disappears.
> >
> > There must be some handier way to do that?
>
> M-e <edit the regex with regular commands>
That's good advice - #1.
Here are some other answers that might also help:
2. Use `M-y' (`C-y' in Emacs 24) to yank the last kill into the search string.
3. Use Isearch+, which has option `isearchp-mouse-2-flag' (default = `t'):
Non-nil means clicking `mouse-2' during Isearch yanks the selection.
In that case, you can select text with the mouse, then hit `C-s' to
search for it.
If the value is nil, yank only if the `mouse-2' click is in the echo
area. If not in the echo area, invoke whatever `mouse-2' is bound to
outside of Isearch.
4. Isearch+ also lets you hit `C-M-y' to yank the secondary selection into the
search string.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Too much pita to paste into incremental regex search
2012-01-22 23:07 Too much pita to paste into incremental regex search Harry Putnam
2012-01-23 4:36 ` suvayu ali
@ 2012-01-23 6:22 ` Eli Zaretskii
2012-01-23 6:43 ` Drew Adams
2012-01-27 6:06 ` Harry Putnam
1 sibling, 2 replies; 11+ messages in thread
From: Eli Zaretskii @ 2012-01-23 6:22 UTC (permalink / raw
To: help-gnu-emacs
> From: Harry Putnam <reader@newsguy.com>
> Date: Sun, 22 Jan 2012 18:07:09 -0500
>
> I don't use the incremental regex search much but did have need of it
> today. And repeatedly. I found it difficult to impossible to
> copy/paste to the prompt. As soon as you move the mouse, the prompt
> disappears.
It doesn't disappear for me, not in Emacs 24 anyway. I can click the
mouse in the minibuffer, then type C-y to paste something I copied
elsewhere.
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: Too much pita to paste into incremental regex search
2012-01-23 6:22 ` Eli Zaretskii
@ 2012-01-23 6:43 ` Drew Adams
2012-01-23 6:59 ` Eli Zaretskii
2012-01-27 6:06 ` Harry Putnam
1 sibling, 1 reply; 11+ messages in thread
From: Drew Adams @ 2012-01-23 6:43 UTC (permalink / raw
To: 'Eli Zaretskii', help-gnu-emacs
> > I don't use the incremental regex search much but did have
> > need of it today. And repeatedly. I found it difficult to
> > impossible to copy/paste to the prompt. As soon as you move
> > the mouse, the prompt disappears.
>
> It doesn't disappear for me, not in Emacs 24 anyway. I can click the
> mouse in the minibuffer, then type C-y to paste something I copied
> elsewhere.
Not if you click in a minibuffer on a different frame (which includes the case
of a standalone minibuffer). A `switch-frame' event causes Isearch to be
cancelled. See Emacs bug #10037.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Too much pita to paste into incremental regex search
2012-01-23 6:43 ` Drew Adams
@ 2012-01-23 6:59 ` Eli Zaretskii
2012-01-23 14:44 ` Drew Adams
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2012-01-23 6:59 UTC (permalink / raw
To: help-gnu-emacs
> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Sun, 22 Jan 2012 22:43:43 -0800
>
> > > I don't use the incremental regex search much but did have
> > > need of it today. And repeatedly. I found it difficult to
> > > impossible to copy/paste to the prompt. As soon as you move
> > > the mouse, the prompt disappears.
> >
> > It doesn't disappear for me, not in Emacs 24 anyway. I can click the
> > mouse in the minibuffer, then type C-y to paste something I copied
> > elsewhere.
>
> Not if you click in a minibuffer on a different frame (which includes the case
> of a standalone minibuffer).
The OP didn't say anything that would imply he was using such
esoterica.
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: Too much pita to paste into incremental regex search
2012-01-23 6:59 ` Eli Zaretskii
@ 2012-01-23 14:44 ` Drew Adams
2012-01-23 17:01 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: Drew Adams @ 2012-01-23 14:44 UTC (permalink / raw
To: 'Eli Zaretskii', help-gnu-emacs
> > > > I don't use the incremental regex search much but did have
> > > > need of it today. And repeatedly. I found it difficult to
> > > > impossible to copy/paste to the prompt. As soon as you move
> > > > the mouse, the prompt disappears.
> > >
> > > It doesn't disappear for me, not in Emacs 24 anyway. I
> > > can click the mouse in the minibuffer, then type C-y to
> > > paste something I copied elsewhere.
> >
> > Not if you click in a minibuffer on a different frame
> > (which includes the case of a standalone minibuffer).
> > A `switch-frame' event causes Isearch to be cancelled.
> > See Emacs bug #10037.
>
> The OP didn't say anything that would imply he was using such
> esoterica.
Wow. Using more than one frame is "esoteric"?
Is it also esoteric if you use `M-w' to copy text from a buffer in one frame and
then use `M-y' (Emacs 24: `C-y') to yank it into Isearch in another frame? Or
is it esoteric only if you use the mouse to do it?
No, the OP did not say that he was using two frames, but I suggested it, as one
possible explanation.
And if I had to guess it would be that the OP did just that: search in a buffer
in one frame, select text using the mouse from a buffer in another frame, then
click mouse-2 to paste into the search string (in the first frame).
That's the only explanation that I know of for the symptoms described. But
perhaps there is another bug at work (besides #10037).
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Too much pita to paste into incremental regex search
2012-01-23 14:44 ` Drew Adams
@ 2012-01-23 17:01 ` Eli Zaretskii
2012-01-23 18:06 ` Drew Adams
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2012-01-23 17:01 UTC (permalink / raw
To: help-gnu-emacs
> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Mon, 23 Jan 2012 06:44:27 -0800
>
> > > > > I don't use the incremental regex search much but did have
> > > > > need of it today. And repeatedly. I found it difficult to
> > > > > impossible to copy/paste to the prompt. As soon as you move
> > > > > the mouse, the prompt disappears.
> > > >
> > > > It doesn't disappear for me, not in Emacs 24 anyway. I
> > > > can click the mouse in the minibuffer, then type C-y to
> > > > paste something I copied elsewhere.
> > >
> > > Not if you click in a minibuffer on a different frame
> > > (which includes the case of a standalone minibuffer).
> > > A `switch-frame' event causes Isearch to be cancelled.
> > > See Emacs bug #10037.
> >
> > The OP didn't say anything that would imply he was using such
> > esoterica.
>
> Wow. Using more than one frame is "esoteric"?
No. But using minibuffer frames is.
> Is it also esoteric if you use `M-w' to copy text from a buffer in one frame and
> then use `M-y' (Emacs 24: `C-y') to yank it into Isearch in another frame?
This works for me.
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: Too much pita to paste into incremental regex search
2012-01-23 17:01 ` Eli Zaretskii
@ 2012-01-23 18:06 ` Drew Adams
2012-01-23 20:40 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: Drew Adams @ 2012-01-23 18:06 UTC (permalink / raw
To: 'Eli Zaretskii', help-gnu-emacs
> > > > > It doesn't disappear for me, not in Emacs 24 anyway. I
> > > > > can click the mouse in the minibuffer, then type C-y to
> > > > > paste something I copied elsewhere.
> > > >
> > > > Not if you click in a minibuffer on a different frame
> > > > (which includes the case of a standalone minibuffer).
> > > > A `switch-frame' event causes Isearch to be cancelled.
> > > > See Emacs bug #10037.
> > >
> > > The OP didn't say anything that would imply he was using such
> > > esoterica.
> >
> > Wow. Using more than one frame is "esoteric"?
>
> No. But using minibuffer frames is.
Next you'll be claiming that minibuffer frames are unsupported... or obsolete...
or abnormal... or deviant... Thanks for the attempted marginalization, but no
thanks.
In any case, what part of "minibuffer on a different frame" and "which includes"
implies that this is limited to standalone minibuffer frames? I was pretty
clear that it is not.
The problem is that when you move the mouse from any frame to any other frame an
automatic `switch-frame' event cancels Isearch. That means that using the mouse
to paste into the search field is currently limited to mouse movements within
the same frame. It is only mouse selection/pasting that has this problem.
But I'm glad to hear that you at least do not consider inter-frame mouse
movements, in general, to be esoteric. Maybe some day your tolerance will
extend to minibuffer-only frames as well, but that's not necessary here. Fixing
the bug for the general case will anyway take care of any such "esoteric" case
at the same time.
> > Is it also esoteric if you use `M-w' to copy text from a buffer
> > in one frame and then use `M-y' (Emacs 24: `C-y') to yank it
> > into Isearch in another frame?
>
> This works for me.
Of course it does; that's the point (and why I suggested that to the OP as an
alternative). It is only the mouse behavior that does not work - for you or
anyone else.
And it makes no difference whether the frame change involves a standalone
minibuffer frame. Using a mouse across frames is not in any way "esoteric" - it
just doesn't work at the moment for Isearch.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Too much pita to paste into incremental regex search
2012-01-23 18:06 ` Drew Adams
@ 2012-01-23 20:40 ` Eli Zaretskii
0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2012-01-23 20:40 UTC (permalink / raw
To: help-gnu-emacs
> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Mon, 23 Jan 2012 10:06:18 -0800
>
> > > Wow. Using more than one frame is "esoteric"?
> >
> > No. But using minibuffer frames is.
>
> Next you'll be claiming that minibuffer frames are unsupported... or obsolete...
> or abnormal... or deviant...
No, I won't. And when I'd like you to speak for me, I'll let you know
in advance.
> > > Is it also esoteric if you use `M-w' to copy text from a buffer
> > > in one frame and then use `M-y' (Emacs 24: `C-y') to yank it
> > > into Isearch in another frame?
> >
> > This works for me.
>
> Of course it does; that's the point (and why I suggested that to the OP as an
> alternative). It is only the mouse behavior that does not work - for you or
> anyone else.
The mouse also works for me.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Too much pita to paste into incremental regex search
2012-01-23 6:22 ` Eli Zaretskii
2012-01-23 6:43 ` Drew Adams
@ 2012-01-27 6:06 ` Harry Putnam
1 sibling, 0 replies; 11+ messages in thread
From: Harry Putnam @ 2012-01-27 6:06 UTC (permalink / raw
To: help-gnu-emacs
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Harry Putnam <reader@newsguy.com>
>> Date: Sun, 22 Jan 2012 18:07:09 -0500
>>
>> I don't use the incremental regex search much but did have need of it
>> today. And repeatedly. I found it difficult to impossible to
>> copy/paste to the prompt. As soon as you move the mouse, the prompt
>> disappears.
>
> It doesn't disappear for me, not in Emacs 24 anyway. I can click the
> mouse in the minibuffer, then type C-y to paste something I copied
> elsewhere.
I can now too. Not sure what was causing my earlier trouble. I hope
it is not what I suspect.
I suspect I may have been pressing C-u C-s BEFORE copying with mouse
somewhere. No, that would be too dumb .. eh?
But, er, I think that might be it.
Sorry for the line noise, and causing all the hallmarks of a row.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-01-27 6:06 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-22 23:07 Too much pita to paste into incremental regex search Harry Putnam
2012-01-23 4:36 ` suvayu ali
2012-01-23 5:58 ` Drew Adams
2012-01-23 6:22 ` Eli Zaretskii
2012-01-23 6:43 ` Drew Adams
2012-01-23 6:59 ` Eli Zaretskii
2012-01-23 14:44 ` Drew Adams
2012-01-23 17:01 ` Eli Zaretskii
2012-01-23 18:06 ` Drew Adams
2012-01-23 20:40 ` Eli Zaretskii
2012-01-27 6:06 ` Harry Putnam
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.