help-gnu-emacs
[Top][All Lists]
Advanced

[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 <address@hidden>,
 Drew Adams <address@hidden> 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, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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