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

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

RE: How to select one of the buffers that match a substring in "switch-t


From: KARR, DAVID
Subject: RE: How to select one of the buffers that match a substring in "switch-to-buffer"?
Date: Mon, 8 Jun 2015 19:09:22 +0000

> -----Original Message-----
> From: Tassilo Horn [mailto:tsdh@gnu.org]
> Sent: Monday, June 08, 2015 11:59 AM
> To: KARR, DAVID
> Cc: Drew Adams; help-gnu-emacs@gnu.org
> Subject: Re: How to select one of the buffers that match a
> substring in "switch-to-buffer"?
> 
> "KARR, DAVID" <dk068x@att.com> writes:
> 
> >> `icomplete-mode' is the official replacement for `iswitchb',
> AFAIK.
> >>
> >> Icicles completion will also give you what you want.  Likewise,
> >> `ido-mode'.  Also, in the scenario you described (vanilla `C-x
> b'),
> >> you can type some more chars to continue completing (with TAB).
> >
> > I already have icomplete enabled.  It's useless if you've typed a
> > substring that doesn't represent the start of the file name.
> 
> But it should work for buffers, no?
> 
> If so, the reason why it doesn't work for file name completion is
> because there, emacs doesn't use substring completion.  But you can
> configure it to do so.
> 
> ,----[ C-h v completion-category-overrides RET ]
> | completion-category-overrides is a variable defined in
> ‘minibuffer.el’.
> | Its value is nil.
> |
> | Documentation:
> | List of category-specific user overrides for completion styles.
> | Each override has the shape (CATEGORY . ALIST) where ALIST is
> | an association list that can specify properties such as:
> | - ‘styles’: the list of ‘completion-styles’ to use for that
> category.
> | - ‘cycle’: the ‘completion-cycle-threshold’ to use for that
> category.
> | Categories are symbols such as ‘buffer’ and ‘file’, used when
> | completing buffer and file names, respectively.
> | This overrides the defaults specified in ‘completion-category-
> defaults’.
> `----

Would this variable have changed after I installed Icicles?  Its present value 
is "((buffer (styles basic substring)))".

In any case, installing Icicles appears to give me what I need.

reply via email to

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