From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Newsgroups: gmane.emacs.help Subject: Re: Search for selected tex Date: Sun, 15 Jun 2008 02:15:09 +0200 Message-ID: <200806150215.10047.juanma_bellon@yahoo.es> References: <4853F20B.5030802@gmail.com> <4853F593.2040009@gmail.com> <87d4mk9ckv.fsf@thievol.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213488940 18652 80.91.229.12 (15 Jun 2008 00:15:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Jun 2008 00:15:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 15 02:16:22 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 1K7fut-0001b2-Bn for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jun 2008 02:16:19 +0200 Original-Received: from localhost ([127.0.0.1]:39804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7fu5-0003rm-AC for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2008 20:15:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7fto-0003rX-7L for help-gnu-emacs@gnu.org; Sat, 14 Jun 2008 20:15:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7ftl-0003rH-Cu for help-gnu-emacs@gnu.org; Sat, 14 Jun 2008 20:15:10 -0400 Original-Received: from [199.232.76.173] (port=40245 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7ftl-0003rE-9e for help-gnu-emacs@gnu.org; Sat, 14 Jun 2008 20:15:09 -0400 Original-Received: from n15.bullet.mail.mud.yahoo.com ([68.142.206.42]:43731) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1K7ftl-0001g8-0Y for help-gnu-emacs@gnu.org; Sat, 14 Jun 2008 20:15:09 -0400 Original-Received: from [209.191.108.97] by n15.bullet.mail.mud.yahoo.com with NNFMP; 15 Jun 2008 00:15:08 -0000 Original-Received: from [68.142.201.248] by t4.bullet.mud.yahoo.com with NNFMP; 15 Jun 2008 00:15:08 -0000 Original-Received: from [127.0.0.1] by omp409.mail.mud.yahoo.com with NNFMP; 15 Jun 2008 00:15:08 -0000 X-Yahoo-Newman-Id: 473967.92379.bm@omp409.mail.mud.yahoo.com Original-Received: (qmail 83667 invoked from network); 15 Jun 2008 00:15:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.es; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=WTHsG+9q5dcnKXov3S/qrjmb7BkfeCWMqAHweUNXuI6a2HHEhGBqdZ5wn4YquL7q4MgCYXFLqPcgv2GiUcGHscbuyCqx2cf9PGCutopIUkMZvNW1Dwx4tAV38ZL0GpWy8sfLHQkH6QeNKnnSUW1cT1VJO8DGOi+rqEmnB0w36D0= ; Original-Received: from unknown (HELO 212251170197.customer.cdi.no) (juanma_bellon@212.251.170.197 with plain) by smtp122.plus.mail.mud.yahoo.com with SMTP; 15 Jun 2008 00:15:07 -0000 X-YMail-OSG: d28JGU4VM1lXOovE2GwQl7z5OgeQtyLjA4kDhO7veI8F4Lrb_0QyR705nOduJmwXbt4AaojHD8vGxq2yMsD8Hs6fJKQpmw.UuTd1DdVpKQoLMpPdyNgYMJtKuez9n.8x.Cxd_IWIFwzU2uBL1x.jOQEP X-Yahoo-Newman-Property: ymail-3 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) In-Reply-To: <87d4mk9ckv.fsf@thievol.homelinux.org> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:54844 Archived-At: On Saturday 14 June 2008, Thierry Volpiatto wrote: > "Lennart Borgman (gmail)" writes: > > > Lorenzo Isella wrote: > >> Dear All, > >> I would like to be able to select some text with C-space and then > >> look for it inside the buffer. > > > > There is some code for similar wishes in > > > > http://www.emacswiki.org/cgi-bin/wiki/SearchAtPoint > > > > > > You can also use isearch-forward like that: > put the point at begining of text and then hit C-s C-w C-w C-w .... > until you are at the end of text and then C-s C-s ...etc... Or C-y to search for text between point and end of line, instead of taking words one by one. Repeating C-y takes one more line at a time. Or, kill or save the text to the kill ring and yank it for search with M-y (i.e., after having pressed C-s). Once you defined some text to search for, you can edit it, moving point to the minibuffer with M-e. See here: *info* (emacs)Isearch Yank (chapter 20.1.6) Even more if you see the documentation of `isearch-forward'. -- Juanma "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr