From: Gabriel TEIXEIRA <gabriel_teixeira@sdesigns.eu>
To: help-gnu-emacs@gnu.org
Subject: Re: Scrolling text erases the search highlight
Date: Mon, 26 Jul 2010 10:20:46 +0200 [thread overview]
Message-ID: <4C4D455E.2000100@sdesigns.eu> (raw)
In-Reply-To: <9FA4FDC75D244DDA9979D6F2670C87E2@us.oracle.com>
On 23/07/2010 16:21, Drew Adams wrote:
>>>> 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?
>>>>
>>> As far as I know, there is no way to get around that
>>> problem today. I think the main issue is that in Emacs
>>> point is always in the visible portion of the buffer.
>>>
>> IMHO there is a way,
>> making functions doing de-highlighting conditional
>> (unless (or (eq last-command-event 'next)
>> (eq last-command-event 'prior))
>>
>> for example
>> (defun isearch-dehighlight ()
>> (unless (or (eq last-command-event 'next)
>> (eq last-command-event 'prior))
>> (when isearch-overlay
>> (delete-overlay isearch-overlay))))
>>
>> same with lazy-highlight-cleanup and maybe some more.
>> Produces visible effect here.
>> Some more/other will arise nonetheless:
>> isearch highlighting is done in visible portion of buffer only.
>> Starting scroll with both changes as above will keep the
>> highlights set so far, but not highlight further, now scrolled
>> portion.
>>
> In addition to some of the other suggestions, you can try Icicles search,
> including `icicle-occur'. You can keep the highlighting after searching (toggle
> that on/off with `C-.' during search). And you can scroll anywhere during
> search (or afterward) - point is not tied to a search hit when you move the
> focus from the minibuffer to your search-hits buffer.
>
> This kind of search is quite different, so you will want to read up on it - do
> not expect the same thing you are used to with isearch.
>
> Essentially, all search hits are found for an initial regexp, and they are
> presented to you as completion candidates. You can navigate among the hits, and
> you can narrow the set of hits by typing input that the candidates must also
> match. (IOW, you can search within the set of search hits.)
>
> `icicle-occur' is a simplified version of this where the initial regexp is just
> `.*', which matches all text in each line. `icicle-occur' is on `C-''.
> `icicle-search' (more general) is on `C-`'.
>
> http://www.emacswiki.org/emacs/Icicles_-_Search_Commands%2c_Overview
>
>
>
>
All the commands of icicles seems to be not defined (i.e. when I hit
'M-x icicles' and them 'Tab', the auto-completion says that there is no
match). It seems that those commands are not built-in in my emacs. I'm
using GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version
2.20.1). How can I download and install these commands or enable them
while compiling? I compiled it by myself, so it is possible that I
didn't selected the correct options while compiling.
Thanks for your attention
Gabriel
next prev parent reply other threads:[~2010-07-26 8:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-12 12:30 Scrolling text erases the search highlight Gabriel TEIXEIRA
2010-07-12 19:31 ` Qiang Guo
2010-07-13 7:14 ` Deniz Dogan
2010-07-13 8:33 ` Gabriel TEIXEIRA
2010-07-13 13:33 ` Suvayu Ali
2010-07-13 13:38 ` Deniz Dogan
2010-07-13 13:54 ` Gabriel TEIXEIRA
2010-07-23 9:20 ` Gabriel TEIXEIRA
2010-07-23 9:25 ` Deniz Dogan
2010-07-23 10:53 ` Andreas Röhler
2010-07-23 11:29 ` Gabriel TEIXEIRA
2010-07-23 14:21 ` Drew Adams
2010-07-26 8:20 ` Gabriel TEIXEIRA [this message]
2010-07-26 13:51 ` Drew Adams
-- strict thread matches above, loose matches on Subject: below --
2010-07-12 12:22 Gabriel TEIXEIRA
2010-07-12 11:54 Gabriel TEIXEIRA
2010-07-12 10:04 Gabriel TEIXEIRA
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C4D455E.2000100@sdesigns.eu \
--to=gabriel_teixeira@sdesigns.eu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.