From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.help Subject: Re: Search waht is under the cursor Date: Mon, 30 Jul 2007 11:46:29 +0200 Organization: Norwegian university of science and technology 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 1185792117 28102 80.91.229.12 (30 Jul 2007 10:41:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2007 10:41:57 +0000 (UTC) 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:41:50 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 1IFShA-0006g2-33 for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jul 2007 12:41:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFSh9-00070C-ID for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jul 2007 06:41:47 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!ntnu.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: fiinbeck.math.ntnu.no Original-X-Trace: orkan.itea.ntnu.no 1185788789 14981 129.241.15.140 (30 Jul 2007 09:46:29 GMT) Original-X-Complaints-To: usenet@itea.ntnu.no Original-NNTP-Posting-Date: Mon, 30 Jul 2007 09:46:29 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (berkeley-unix) Cancel-Lock: sha1:pCQMcbzkfHBRNK+pYobLKXV85KQ= Original-Xref: shelby.stanford.edu gnu.emacs.help:150601 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:46183 Archived-At: + Rafal Kurcz : | 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. | | Do you know how to do that ? You mean, like C-s C-w ? It may not be exactly what you describe, but could be just what you want. I use it all the time. Each C-w (can be used anytime during an incremental search) incorporates one more word into the search term. Try it. Another useful thing is to type M-p during an incremental search. That turns off searching temporarily, and lets you edit the search string in the minibuffer (actually, it invokes a history mechanism using M-p and M-n). You can then yank copied text into the search string, edit to your heart's content and hit C-s to turn searching back on. -- * Harald Hanche-Olsen - It is undesirable to believe a proposition when there is no ground whatsoever for supposing it is true. -- Bertrand Russell