- Subject: Re: minibuffer comletion case insensitiv
- From: Dave Kuhlman <dkuhlman@xxxxxxxxxxxxxxx>
- Date: Wed, 10 Nov 2004 11:38:53 -0800
On Tue, Nov 09, 2004 at 07:57:58AM +0100, G. Milde wrote:
> On 9.11.04, Joachim Schmitz wrote:
> > hi,
> >
> > can the minibuffer-space-completion made caseINsensitiv, at least for
> > buffernames ?
>
> In principle, this can be done, but it is a hack (replacing the
> completion function with an self-made function). What do you need this
> for? For a fast buffer switching I recommend using numbuf.sl.
>
> http://jedmodes.sf.net/mode/numbuf/
>
Cool. Very nice. Very convenient.
And, if you want to *cycle* through buffers, try the following.
Dave
%===============================================================
%
% Switch to previous or next buffer.
% This code originated in ide_next_buffer() in ide.sl.
%
define next_buffer (previous)
{
variable n, buf;
n = buffer_list (); % get the buffers on the stack
if (previous)
{
_stk_reverse (n-1);
}
loop (n) {
buf = ();
n--;
% Skip *scratch* and other buffers that are not of interest.
if ((buf[0] == '*') or (buf[0] == ' '))
{
continue;
}
sw2buf (buf);
_pop_n (n);
return;
}
}
% Bind Alt-. and Alt-, (Meta-period and Meta-comma) to next_buffer().
setkey ("next_buffer (0)", "\e,");
setkey ("next_buffer (1)", "\e.");
%===============================================================
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2004 date index]
[2004 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]