all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* isearch-forward-regexp " $" becomes "\\s-+$"
@ 2002-06-20 20:32 Dan Jacobson
  2002-06-21 16:47 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2002-06-20 20:32 UTC (permalink / raw)


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."
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: isearch-forward-regexp " $" becomes "\\s-+$"
  2002-06-20 20:32 isearch-forward-regexp " $" becomes "\\s-+$" Dan Jacobson
@ 2002-06-21 16:47 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2002-06-21 16:47 UTC (permalink / raw)


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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-21 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-20 20:32 isearch-forward-regexp " $" becomes "\\s-+$" Dan Jacobson
2002-06-21 16:47 ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.