[Top][All Lists]

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

Re: irepeat.el - repeat through history data FAST

From: Alex Schroeder
Subject: Re: irepeat.el - repeat through history data FAST
Date: Mon, 25 Mar 2002 11:42:54 +0100
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu)

Richard Stallman <address@hidden> writes:

>     I am not sure irepeat should modify the minibuffer to replace
>     the standard completion.
> That is the only clean way to do it.  That is the only way that avoids
> the need to redefine individual commands that use the minibuffer.
> That is the only way that works across the board.

Hm, I actually thought that irepeat could be an alternative to or a
replacement for completing-read.  But often this does not make sense,
for example I have used irepeat for finding files -- but since irepeat
searches a list of strings for matches, the really existing files are
not used for completion, the file-name-history is.  In this case, how
would you want to augment find-file with irepeat?  I think this is not
possible.  It makes more sense when switching buffers, but for
switching buffers, we already have a gazillion ways to do it.  It
makes sense when completing symbols, I think, because the list of
symbols is easy to obtain and reasonably fast to search (unlike the
list of existing files).  Thus there perhaps, a transparent
replacement would be the right thing to do.

My point is, replacing standard completion is not that easy.  Or
perhaps you mean that irepeat should work just like icomplete-mode?
Perhaps that is the only "generic" way in which irepeat can be used.
It could be used in more powerful ways, though.  The finding of files
based on the history is one such example.  But these "better" ways of
doing things are difficult to get right, so it seems that you are
asking for the hardest part, first.

Maybe we should add it to Emacs, then let people offer ways to use it
(ie. write functions which use irepeat to do useful stuff), and
then let us consider wether we want to add those to Emacs.  BTW
irepeat comes with some examples, and some of these use the semantic
package which is not part of Emacs, yet.  So perhaps we just want to
take the core of irepeat and add it to Emacs instead of adding the
whole list of functions using it.  Thus we add irepeat and helpers,
which is an alternative to completing-read for elisp authors.  That
seems like a good first step to me.

Can anybody tell me what is going so dreadfully wrong in Palestine?

reply via email to

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