[Top][All Lists]

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

Re: Recentish C-s M-y change

From: Filipp Gunbin
Subject: Re: Recentish C-s M-y change
Date: Wed, 13 Jan 2021 22:34:19 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)

On 13/01/2021 20:19 +0200, Juri Linkov wrote:

>>>> Many commands in isearch-mode-map explicitly allow and use a prefix
>>>> argument (C-q, C-r, C-s, C-w, ...).  isearch-yank-kill (C-y) and
>>>> isearch-yank-pop (M-y) accept one, but it is unused.  I don't see what
>>>> meaning could be attached to a numeric argument to isearch-yank-kill or
>>>> isearch-yank-pop, so I think that using C-u to start an interactive
>>>> selection with these two commands would make sense.
>>> The problem is that C-u has other meaning in 'C-u M-y' where it puts
>>> point at beginning and mark at end.
>> Are you sure?  I don't see this, I do not see any difference between C-s
>> M-y and C-s C-u M-y.
> I meant the global C-u M-y.  But since its global meaning makes no sense
> in isearch, I added C-s C-u M-y as you suggested.

I'm a bit opposed to this change, because, as I wrote in this thread, it
will introduce a behaviour-changing prefix arg in isearch-specific

isearch already has many commands, and we'd better keep them simple,
because they're already "nested", in a sense.  In this concrete case,
this is even worse, because `C-u M-y' has (different) meaning globally.

Yes, in isearch there're `M-%', `M-s o' and others taking prefix arg for
behavior change (not just simple repetition count), but they can be
viewed as global commands only being _started_ in isearch.

Just my opinion.

reply via email to

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