[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling text erases the search highlight

From: Gabriel TEIXEIRA
Subject: Re: Scrolling text erases the search highlight
Date: Fri, 23 Jul 2010 11:20:06 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100423 Thunderbird/3.0.4

On 13/07/2010 15:54, Gabriel TEIXEIRA wrote:
On 13/07/2010 15:38, Deniz Dogan wrote:
2010/7/13 Gabriel TEIXEIRA<address@hidden>:
On 13/07/2010 09:14, Deniz Dogan wrote:

2010/7/12 Qiang Guo<address@hidden>:

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?

For what it's worth, scrolling using the mouse works fine using: GNU
Emacs (i386-mingw-nt6.1.7600) of 2010-07-12 on 3249CTO

Yes, I'm using version 23.1.1. I couldn't realize that this could be the version of emacs. I will install a newer version to check it out. Hopefully won't break with my .emacs config file :)
Many many thanks for your help

Hello back

After I recompiled my emacs to the, the problems of scrolling were solved mostly, but now after some time of usage I noticed a weird behaviour: Now that I can scroll freely, I noticed that it won't scroll beyond the position were the cursor is located (meaning that if I have one result in the line 150 and my text has 1000 lines and my buffer is 80 lines tall, I can't scroll to see above the line 70 nor after the line 230), so I am limited to scrolling the buffer that is near a result of the searched text, and if I try to move the cursor away in order to scroll more or just to change some text around it will erase the search too (and I come back with the original problem again). Any idea to how to solve that?

Thanks for the attention
Gabriel Teixeira

reply via email to

[Prev in Thread] Current Thread [Next in Thread]