gnu-emacs-sources
[Top][All Lists]
Advanced

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

Re: ioccur incremental occur


From: Ted Zlatanov
Subject: Re: ioccur incremental occur
Date: Wed, 08 Dec 2010 15:54:04 -0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

On Wed, 05 May 2010 14:38:42 +0200 Thierry Volpiatto <address@hidden> wrote: 

TV> Ted Zlatanov <address@hidden> writes:
>> You may want to enable next-error functions in the ioccur mode.  See
>> the occur, grep, or compile modes in Emacs for examples.  Basically this
>> is so users can bind keys to next-error and previous-error and then move
>> between ocurrences in various modes in a consistent way.

TV> Thanks to point me on that, however ioccur is different of occur:

TV> It can destroy the ioccur-buffer after a search.

TV> When keeping buffer, the ioccur-buffer are named, so you can have more
TV> than one ioccur-buffer, each ioccur-buffer dedicated to a particular
TV> buffer.

TV> If i bind the next-error system in ioccur, i imagine it will recall
TV> only the search made in the last ioccur-buffer recorded, so i wonder if
TV> it is really useful?
TV> But maybe i am wrong, anyway i will think at it.

(sorry for the late reply)

in simple.el you'll see:

(make-variable-buffer-local 'next-error-function)

so you can set this function every time ioccur is run in a buffer and it
will get called appropriately locally for that buffer.  Most modes have
a global binding for next-error-function but yes, you can bind it to a
lambda.

Ted


reply via email to

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