unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* jump to end of search substring
@ 2009-02-18  2:12 jrwats
  2009-02-19  3:49 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: jrwats @ 2009-02-18  2:12 UTC (permalink / raw)
  To: help-gnu-emacs

When you search for a substring in a word such as 'eLong' in
someLongStringVarName
the cursor is placed at the beginning of the search predicate (in the
example that'd be the first 'e')
Is there a commadn that can set the cursor to the end of the substring
searched for (the 'g' or 'V' in the example)?

Thanks!


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

* Re: jump to end of search substring
  2009-02-18  2:12 jump to end of search substring jrwats
@ 2009-02-19  3:49 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2009-02-19  3:49 UTC (permalink / raw)
  To: help-gnu-emacs

jrwats wrote:
> When you search for a substring in a word such as 'eLong' in
> someLongStringVarName
> the cursor is placed at the beginning of the search predicate (in the
> example that'd be the first 'e')

Not normally.  Both of these leave point between "someLong" and before
"StringName":

C-s eLong RET
M-: (search-forward "eLong")

Does emacs -Q give the same same behavior you describe?

> Is there a commadn that can set the cursor to the end of the substring
> searched for (the 'g' or 'V' in the example)?

-- 
Kevin Rodgers
Denver, Colorado, USA





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

end of thread, other threads:[~2009-02-19  3:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-18  2:12 jump to end of search substring jrwats
2009-02-19  3:49 ` Kevin Rodgers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).