From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gabriel TEIXEIRA Newsgroups: gmane.emacs.help Subject: Re: Scrolling text erases the search highlight Date: Tue, 13 Jul 2010 10:33:30 +0200 Message-ID: <4C3C24DA.6080303@sdesigns.eu> References: <4C3B0AE2.3060507@sdesigns.eu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279010067 16667 80.91.229.12 (13 Jul 2010 08:34:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Jul 2010 08:34:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 13 10:34:24 2010 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.69) (envelope-from ) id 1OYawT-0003U5-3p for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jul 2010 10:34:22 +0200 Original-Received: from localhost ([127.0.0.1]:36958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYawL-0000pl-N3 for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jul 2010 04:34:09 -0400 Original-Received: from [140.186.70.92] (port=44912 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYavl-0000ow-EM for help-gnu-emacs@gnu.org; Tue, 13 Jul 2010 04:33:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYavk-0001js-EO for help-gnu-emacs@gnu.org; Tue, 13 Jul 2010 04:33:33 -0400 Original-Received: from a.mx.sdesigns.eu ([78.31.43.6]:55994) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OYavk-0001jM-9p for help-gnu-emacs@gnu.org; Tue, 13 Jul 2010 04:33:32 -0400 Original-Received: from [172.27.0.213] (kobe.france.sdesigns.com [172.27.0.213]) by mailhost.france.sdesigns.com (Postfix) with ESMTP id 4871E164072 for ; Tue, 13 Jul 2010 10:33:30 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:74182 Archived-At: On 13/07/2010 09:14, Deniz Dogan wrote: > 2010/7/12 Qiang Guo: > >> You may want to check variable 'isearch-allow-scroll' >> >> >> > This is a good suggestion. But you may also want to know about "M-s o". > > M-s o runs the command occur, which is an interactive compiled Lisp > function in `replace.el'. > > It is bound to M-s o. > > (occur REGEXP&optional NLINES) > > Show all lines in the current buffer containing a match for REGEXP. > This function can not handle matches that span more than one line. > > Thanks for the answers and sorry for the multiple messages, the M-s o is very useful, but the isearch-allow-scroll doesn't work very well with me. It will conserve the search if I do C-l or C-v, but won't if I use the mouse scroll wheel or if I use the arrow keys to move the cursor (which are the way I scroll the screen mostly). I want something that works similar to the Linux man search, the vim or the gedit, that conserves the highlight as long as the search is erased. Any other suggestions?