all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: automatic search/search and replace for a marked string
Date: Sat, 22 Aug 2009 06:58:33 -0700 (PDT)	[thread overview]
Message-ID: <b9aa1cd1-1f10-484d-9ce7-08be65a8754c@l5g2000pra.googlegroups.com> (raw)
In-Reply-To: 61780ed3-2c6b-4233-8f05-3ec082689bb8@s15g2000yqs.googlegroups.com

On Aug 22, 4:07 am, lichtkind <lichtki...@web.de> wrote:
> Hello,
>
> I have marked a string. Now I want to search for this string in the
> whole text. I know that I can search with C-R or C-S. and type in the
> searchstring. I'm looking for a way, that the marked string is
> automatic the searchstring. This should also work for the other
> search/ search and replace types.

if u are using emacs 22, then you can do this:

“Ctrl+s Ctrl+w”. This will search the current word, but you must move
your cursor to the beginning of the word first.

In emacs 23, the above is deprecated. Basically, now you start it with
M-s as prefix, then press some other key. It's rather complex and very
not intuitive. I have 10 years of using emacs, but i did spent some 5
or 10 min reading the release notes... but i haven't figured it out.

You can, type M-s then C-h, to get a list of shortcuts that has M-s as
start. You can read their command names there.

here's the output:


Global Bindings Starting With M-s:
key             binding
---             -------

M-s h		Prefix Command
M-s o		occur
M-s w		isearch-forward-word

M-s h f		hi-lock-find-patterns
M-s h l		highlight-lines-matching-regexp
M-s h p		highlight-phrase
M-s h r		highlight-regexp
M-s h u		unhighlight-regexp
M-s h w		hi-lock-write-interactive-patterns

ok, i just gave another try with M-s w. Spent another 2 min on this.
Dunno what the fuck it is going.

someday i'll give a hour or two on this, maybe then i'll know the
answer.

  Xah
∑ http://xahlee.org/

  reply	other threads:[~2009-08-22 13:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-22 11:07 automatic search/search and replace for a marked string lichtkind
2009-08-22 13:58 ` Xah Lee [this message]
2009-08-22 14:27 ` Pascal J. Bourguignon
2009-08-22 15:12   ` Andy Stewart
2009-08-22 15:14   ` Eric Abrahamsen
     [not found]   ` <mailman.5145.1250957330.2239.help-gnu-emacs@gnu.org>
2009-08-22 17:07     ` lichtkind
2009-08-23 22:05 ` A.Politz
  -- strict thread matches above, loose matches on Subject: below --
2009-08-23 10:16 Kada Situ
2009-08-23 16:41 ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b9aa1cd1-1f10-484d-9ce7-08be65a8754c@l5g2000pra.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.