From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: How to search current word under cursor? Date: Sat, 19 Jul 2008 09:24:48 -0700 Message-ID: <001001c8e9bb$f6eccf50$0200a8c0@us.oracle.com> References: <86bqtwkgh0.fsf@gmail.com> <87k68kn998.fsf@tallis.ilo.ucl.ac.uk> <18528933.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216484806 14998 80.91.229.12 (19 Jul 2008 16:26:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jul 2008 16:26:46 +0000 (UTC) To: "'cfelton'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 19 18:27:34 2008 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 1KKFHO-0000fJ-FC for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jul 2008 18:27:30 +0200 Original-Received: from localhost ([127.0.0.1]:34245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKFGV-0001i9-Bs for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Jul 2008 12:26:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KKFG8-0001e6-Tw for help-gnu-emacs@gnu.org; Sat, 19 Jul 2008 12:26:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KKFG6-0001Yh-K4 for help-gnu-emacs@gnu.org; Sat, 19 Jul 2008 12:26:11 -0400 Original-Received: from [199.232.76.173] (port=38640 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KKFG6-0001YQ-9o for help-gnu-emacs@gnu.org; Sat, 19 Jul 2008 12:26:10 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]:54226) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KKFG5-0001cg-UI for help-gnu-emacs@gnu.org; Sat, 19 Jul 2008 12:26:10 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m6JGPDL2001661; Sat, 19 Jul 2008 11:25:13 -0500 Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m6J9MFgn001481; Sat, 19 Jul 2008 10:25:13 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt353.oracle.com with ESMTP id 10924034821216484691; Sat, 19 Jul 2008 09:24:51 -0700 Original-Received: from dradamslap1 (/24.5.171.11) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 19 Jul 2008 09:24:51 -0700 X-Mailer: Microsoft Office Outlook 11 In-reply-to: <18528933.post@talk.nabble.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AcjpO7w1tIyc1k5TQZarCM5PEWgYrQAf++tg X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: 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:55731 Archived-At: > >> I want search this buffer of current word under cursor, > >> how can I do it? > > > > C-s C-w > > How do you extend this to the occur function? I have a key > binding mapped to the occur function, and I would like the > word at the cursor (compete word foo_bar, not just foo) to be > the default search when invoked? http://www.emacswiki.org/cgi-bin/wiki/OccurFromIsearch (Also, C-s C-w C-w... accumulates search text, so C-s C-w C-w will pick up foo_bar as the search string.)