[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automatic selection during search
From: |
Barry Margolin |
Subject: |
Re: automatic selection during search |
Date: |
Thu, 26 Sep 2013 13:17:22 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <mailman.2924.1380210221.10748.help-gnu-emacs@gnu.org>,
Drew Adams <drew.adams@oracle.com> wrote:
> > > > But, the same behaviour is also shown in emacs -Q: When something is
> > > > selected and the point is inside this selection and you start isearch,
> > > > then the selection is automatically extended. I could imagine that an
> > > > isearch hook could help which first switches off the selectionâΦ
> > >
> > > Yes, (add-hook 'isearch-mode-hook 'deactivate-mark) seems to do the
> > > trick.
> >
> > That will break the common sequence C-@ C-s which *should* mark the
> > region from where you started to where the search completes.
>
> Yes.
>
> It's fine for a given user to add such behavior via a hook, if s?he wants.
>
> But the behavior of extending the active region during Isearch should not be
> considered a bug. A priori, Isearch should make no decisions about changing
> the region activation. Leave it up to the user.
But shouldn't the default behavior be consistent with cursor motion
commands? Either they all should extend the region or none should.
I'm not able to reproduce the OP's claim that cursor motion deactivates
the region after saving to the clipboard, but that may be because I
don't use CUA-mode. I just use normal region commands, and copy-region
(M-w) deactivates the region itself.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
- automatic selection during search, Bostjan Vilfan, 2013/09/25
- Re: automatic selection during search, Peter Dyballa, 2013/09/25
- RE: automatic selection during search, Drew Adams, 2013/09/25
- Re: automatic selection during search, Yuri Khan, 2013/09/25
- Re: automatic selection during search, Peter Dyballa, 2013/09/26
- Re: automatic selection during search, Tassilo Horn, 2013/09/26
- Message not available
- Re: automatic selection during search, Barry Margolin, 2013/09/26
- RE: automatic selection during search, Drew Adams, 2013/09/26
- Re: automatic selection during search, Yuri Khan, 2013/09/26
- Re: automatic selection during search, Stefan Monnier, 2013/09/26
- Message not available
- Re: automatic selection during search,
Barry Margolin <=
- RE: automatic selection during search, Drew Adams, 2013/09/26
- Message not available
- Re: automatic selection during search, Barry Margolin, 2013/09/26
- Re: automatic selection during search, Peter Dyballa, 2013/09/26
Message not available
Re: automatic selection during search, Eli Zaretskii, 2013/09/25
Message not available