From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: Search waht is under the cursor Date: Mon, 30 Jul 2007 12:45:39 +0200 Message-ID: References: <1185787814.921291.184680@w3g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185792368 28873 80.91.229.12 (30 Jul 2007 10:46:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2007 10:46:08 +0000 (UTC) Cc: Rafal Kurcz To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 30 12:46:00 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 1IFSlE-0007ht-1f for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jul 2007 12:46:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFSlD-000393-FS for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jul 2007 06:45:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IFSky-00038y-9x for help-gnu-emacs@gnu.org; Mon, 30 Jul 2007 06:45:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IFSkv-00036e-R2 for help-gnu-emacs@gnu.org; Mon, 30 Jul 2007 06:45:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFSkv-00036V-OH for help-gnu-emacs@gnu.org; Mon, 30 Jul 2007 06:45:41 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IFSkv-0000W1-95 for help-gnu-emacs@gnu.org; Mon, 30 Jul 2007 06:45:41 -0400 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate03.web.de (Postfix) with ESMTP id A247F90061BD; Mon, 30 Jul 2007 12:45:40 +0200 (CEST) Original-Received: from [84.175.180.18] (helo=wednesday) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.108 #197) id 1IFSku-0002Ck-00; Mon, 30 Jul 2007 12:45:40 +0200 In-Reply-To: <1185787814.921291.184680@w3g2000hsg.googlegroups.com> (Rafal Kurcz's message of "Mon\, 30 Jul 2007 02\:30\:14 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) X-Sender: n_schumacher@web.de X-Provags-ID: V01U2FsdGVkX19YYgFsP5d5pz6K9GrEgTDng9IrKmwVyixT/bDh pJ4Gx5jTszi6nJujYzwPMg3JjNDHF1X3/WS4VyYC1CecPr7pKk PvLhcB0/thRfgSnmzpQQ== 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:46184 Archived-At: Rafal Kurcz wrote: > 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. > > Do you know how to do that ? Depends on what you mean by "string" and by "under the cursor". After pressing C-s, you can use C-w to insert the word(s) after the cursor. If you're searching for the symbol at point, you can jump to the next location with my highlight-symbol-mode[1]. For something else, you could dig through this: http://www.emacswiki.org/cgi-bin/emacs-en/SearchAtPoint regards, Nikolaj Schumacher [1]: http://nschum.de/src/emacs/highlight-symbol/