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

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

bug#22494: still can't search for two spaces


From: Drew Adams
Subject: bug#22494: still can't search for two spaces
Date: Wed, 3 Feb 2016 11:08:08 -0800 (PST)

> > 4. I raised a question about whether lax w-s matching should
> >    be automatically turned OFF if you _paste_ (not type) text
> >    that contains multiple, contiguous w-s chars.
> 
> I think it should be, as with typing them.

Maybe.  But it's easy to copy some text (e.g. non-code) from
some external source (not Emacs), and search for it (by yanking).

You might not even know whether it contains more than one
whitespace char in a row.  And if it does, I'm guessing that
some users might be surprised to see lax whitespace matching
turned off after the yank.

Not a big deal, as long as they are clearly notified, in a
way that they understand _why_ the search mode has changed
(e.g. the search string now contains more than one w-s char
in a row).

But I still have the question of what the right approach is.
There are different possibilities, when someone yanks some
text to add to the search string, regarding the intention
wrt searching for whitespace.

My guess is that whatever behavior we choose some users will
be confused.  This just underlines the importance of letting
the user know (a) that a change in behavior has taken place
and (b) why it has.





reply via email to

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