From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "nico" Newsgroups: gmane.emacs.help Subject: Re: Search selected text Date: 22 Jun 2006 01:28:59 -0700 Organization: http://groups.google.com Message-ID: <1150964939.100894.153780@m73g2000cwd.googlegroups.com> References: <1150962948.199199.114070@r2g2000cwb.googlegroups.com> <8564ittybc.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1150965732 19747 80.91.229.2 (22 Jun 2006 08:42:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Jun 2006 08:42:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 22 10:42:10 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FtKlE-0002DN-ME for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Jun 2006 10:42:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FtKlD-0007kJ-UO for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Jun 2006 04:41:59 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 93 Original-NNTP-Posting-Host: 82.242.45.161 Original-X-Trace: posting.google.com 1150964944 4797 127.0.0.1 (22 Jun 2006 08:29:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 22 Jun 2006 08:29:04 +0000 (UTC) In-Reply-To: <8564ittybc.fsf@lola.goethe.zz> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=82.242.45.161; posting-account=waDJgA0AAAAVr6eBeS4bbD388UdPcZ97 Original-Xref: shelby.stanford.edu gnu.emacs.help:139965 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35590 Archived-At: yeah! cursor at the beginning of the word, C-s C-w C-s works great I will practice some of your other shortuts tonight :) thanx david David Kastrup a =E9crit : > "nico" writes: > > > Hi all, > > > > sorry if it seems obvious but i really can t find (help or web) :/ > > is it possible to search the selected text in (x)emacs ? > > thanx in advance > > Various ways. > > C-s runs the command isearch-forward > which is an interactive compiled Lisp function in `isearch.el'. > It is bound to C-s. > (isearch-forward &optional REGEXP-P NO-RECURSIVE-EDIT) > > Do incremental search forward. > With a prefix argument, do an incremental regular expression search inste= ad. > > As you type characters, they add to the search string and are found. > The following non-printing keys are bound in `isearch-mode-map'. > > Type DEL to cancel last input item from end of search string. > Type RET to exit, leaving point at location found. > Type LFD (C-j) to match end of line. > Type C-s to search again forward, C-r to search again backward. > Type C-w to yank next word or character in buffer > onto the end of the search string, and search for it. > Type C-M-w to delete character from end of search string. > Type C-M-y to yank char from buffer onto end of search string and search = for it. > Type C-y to yank rest of line onto end of search string and search for it. > Type M-y to yank last killed text onto end of search string and search fo= r it. > Type C-q to quote control character to search for it. > C-g while searching or when search has failed cancels input back to what = has > been found successfully. > C-g when search is successful aborts and moves point to starting point. > > If you try to exit with the search string still empty, it invokes > nonincremental search. > > Type M-% to start `query-replace' with string to replace from last search= string. > Type C-M-% to start `query-replace-regexp' with string to replace from la= st search string. > > Type M-c to toggle search case-sensitivity. > Type M-r to toggle regular-expression mode. > Type M-e to edit the search string in the minibuffer. > > Also supported is a search ring of the previous 16 search strings. > Type M-n to search for the next item in the search ring. > Type M-p to search for the previous item in the search ring. > Type M-TAB to complete the search string using the search ring. > > If an input method is turned on in the current buffer, that input > method is also active while you are typing characters to search. To > toggle the input method, type C-\. It > also toggles the input method in the current buffer. > > To use a different input method for searching, type > C-^, and specify an input method > you want to use. > > The above keys, bound in `isearch-mode-map', are often controlled by > options; do M-x apropos on search-.* to find them. > Other control and meta characters terminate the search > and are then executed normally (depending on `search-exit-option'). > Likewise for function keys and mouse button events. > > If this function is called non-interactively, it does not return to > the calling function until the search is done. >=20 > [back] >=20 >=20 > --=20 > David Kastrup, Kriemhildstr. 15, 44793 Bochum