GNU bug report logs - #22494
still can't search for two spaces

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sat, 30 Jan 2016 06:35:02 UTC

Severity: minor

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 22494 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Marcin Borkowski <mbork <at> mbork.pl>
Cc: 22494 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, rms <at> gnu.org,
 jidanni <at> jidanni.org
Subject: RE: bug#22494: still can't search for two spaces
Date: Sat, 30 Jan 2016 16:02:29 -0800 (PST)
> >>   > > I still can't search for two spaces with C-s SPC SPC.
> >>   > > It still just sits on the first match for single space.
> >>
> >>   > Crystal ball says you didn't read the manual, which explains that you
> >>   > need to type M-s SPC after C-s to get what you want (which is literal
> >>   > space matching).
> >>
> >> This is a bug.  When the user types SPC SPC in a search string,
> >> person clearly wants to search for two spaces.  It should do that.
> >
> > +1
> 
> +1
> 
> > And then what if the user made a mistake typing that second SPC
> > char - i.e., didn't really mean to search literally for multiple
> > whitespace chars?  It won't be enough to just delete the second
> > SPC char (but the user might try that).
> 
> Why couldn't it be enough?

It's not a clear indication that the user wants to return to
lax whitespace matching.  What if s?he deleted the second SPC
and typed a TAB or other whitespace char?  Or typed a SPC char
again?  Would you toggle back again?

More than one whitespace char in a row might be sufficient cause
to switch to literal whitespace matching, but it's not clear that
a single such char is sufficient cause to switch to lax matching.

I'd propose a clear message indicating that Emacs has guessed,
because you typed more than one whitespace char in a row, that
you really want literal whitespace char matching, and so it has
switched to that mode.  And at the same time indicate that you
can toggle the whitespace-matching behavior using `M-s SPC'.
That should be clear enough, I would think.




This bug report was last modified 9 years and 166 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.