|
From: | Kevin Rodgers |
Subject: | Re: isearch-forward-regexp " $" becomes "\\s-+$" |
Date: | Fri, 21 Jun 2002 10:47:24 -0600 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Dan Jacobson wrote:
The user types <escape> C-s SPC $ C-s C-s C-s thinking that he will be searching for the regular expression " $" but instead he becomes searching for "\\s-+$" ... no wonder it find more than one asked for... doing C-x esc esc reveals (isearch-resume "\\s-+$" t nil t "\\s-+$" t) "If I had wanted to search for that I would have said so. Alls I wanted to search for was for lines with a SPC at the end. Yes, in 4 out of 5 cases I probably want also to do what it proposed, but not today."
If you want to change the default behavior, customize search-whitespace-regexp. If you want to retain the default behavior but want to search for a literal SPC, do the obvious thing: C-q SPC. -- Kevin Rodgers <kevinr@ihs.com>
[Prev in Thread] | Current Thread | [Next in Thread] |