From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: Search waht is under the cursor Date: Mon, 30 Jul 2007 21:49:40 +1200 Message-ID: <18093.46132.555841.206016@kahikatea.snap.net.nz> References: <1185787814.921291.184680@w3g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185789068 16901 80.91.229.12 (30 Jul 2007 09:51:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2007 09:51:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rafal Kurcz Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 30 11:51:01 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IFRu0-0000uZ-HB for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jul 2007 11:51:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFRty-0008PD-M9 for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jul 2007 05:50:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IFRt2-0008O7-DV for help-gnu-emacs@gnu.org; Mon, 30 Jul 2007 05:50:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IFRt0-0008MP-Ue for help-gnu-emacs@gnu.org; Mon, 30 Jul 2007 05:49:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFRt0-0008M6-C2 for help-gnu-emacs@gnu.org; Mon, 30 Jul 2007 05:49:58 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IFRsz-0004VC-Nn for help-gnu-emacs@gnu.org; Mon, 30 Jul 2007 05:49:58 -0400 Original-Received: from kahikatea.snap.net.nz (94.63.255.123.dynamic.snap.net.nz [123.255.63.94]) by viper.snap.net.nz (Postfix) with ESMTP id 3D0263D9F26; Mon, 30 Jul 2007 21:49:47 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 7A48D8FC6D; Mon, 30 Jul 2007 21:49:41 +1200 (NZST) Original-Newsgroups: gnu.emacs.help In-Reply-To: <1185787814.921291.184680@w3g2000hsg.googlegroups.com> X-Mailer: VM 7.19 under Emacs 22.1.50.3 X-detected-kernel: Linux 2.4-2.6 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:46179 Archived-At: > Hello > I would like to search the string that is currently under the cursor. > It should do something very similar to C-s and C-r but take the string > that is currently under the cursor as a default search pattern. The characters `C-w' and `C-y' can be used in incremental search to grab text from the buffer into the search string. This makes it convenient to search for another occurrence of text at point. `C-w' copies the character or word after point as part of the search string, advancing point over it. (The decision, whether to copy a character or a word, is heuristic.) Another `C-s' to repeat the search will then search for a string including that character or word. Hopefully next time this will help you search the manual more effectively first! -- Nick http://www.inet.net.nz/~nickrob