* partial completion and switch-to-buffer
@ 2009-08-21 14:20 Tobias Gerdin
2009-08-22 15:10 ` Drew Adams
0 siblings, 1 reply; 5+ messages in thread
From: Tobias Gerdin @ 2009-08-21 14:20 UTC (permalink / raw)
To: help-gnu-emacs
Greetings,
With the advent of partial-completion-mode in Emacs 23, I was wondering
if there isn't any way to use this mechanism with switch-to-buffer ("C-x b")?
Switch-to-buffer still seems to do only prefix-matching.
I am aware of iswitch-mode and ido-mode, which does substring matching
(which is basically what I want), but find them too obtrusive. I do not
want any completion to be done unless I say so (by pressing <tab>).
I'm using Emacs CVS from 2009-07-30 (i.e. pretty much 23.1).
-Tobias
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: partial completion and switch-to-buffer
[not found] <mailman.5112.1250926029.2239.help-gnu-emacs@gnu.org>
@ 2009-08-22 14:03 ` Xah Lee
2009-08-24 15:28 ` Tobias Gerdin
0 siblings, 1 reply; 5+ messages in thread
From: Xah Lee @ 2009-08-22 14:03 UTC (permalink / raw)
To: help-gnu-emacs
On Aug 21, 7:20 am, Tobias Gerdin <t...@opera.com> wrote:
> Greetings,
>
> With the advent of partial-completion-mode in Emacs 23, I was wondering
> if there isn't any way to use this mechanism with switch-to-buffer ("C-x b")?
>
> Switch-to-buffer still seems to do only prefix-matching.
>
> I am aware of iswitch-mode and ido-mode, which does substring matching
> (which is basically what I want), but find them too obtrusive. I do not
> want any completion to be done unless I say so (by pressing <tab>).
>
> I'm using Emacs CVS from 2009-07-30 (i.e. pretty much 23.1).
so far as my studie goes, the partial completition does not always
works, perhaps by intention. However, wildcard works. So, just put a
wildcard “*” in front first.
might be of interest (contains some example):
• New Features in Emacs 23
http://xahlee.org/emacs/emacs23_features.html
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: partial completion and switch-to-buffer
2009-08-21 14:20 Tobias Gerdin
@ 2009-08-22 15:10 ` Drew Adams
2009-08-24 15:31 ` Tobias Gerdin
0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2009-08-22 15:10 UTC (permalink / raw)
To: 'Tobias Gerdin', help-gnu-emacs
> I am aware of iswitch-mode and ido-mode, which does substring matching
> (which is basically what I want), but find them too obtrusive. I do not
> want any completion to be done unless I say so (by pressing <tab>).
Icicles does no completion until you say so (by pressing TAB), by default.
http://www.emacswiki.org/cgi-bin/wiki/Icicles
----
Details -
* To get substring completion instead of prefix completion, use S-TAB.
* Or, if you want to use TAB for both prefix and substring completion, then set
option `icicle-cycling-respects-completion-mode' to t. (Use TAB / S-TAB to
change the completion mode: prefix / substring.)
* S-TAB actually does regexp completion, by default. To get only substring
completion, set option `icicle-regexp-quote-flag' to non-nil. Or use `C-`' in
the minibuffer to toggle it.
* When buffer *Completions* is showing, the completion candidates are updated as
you type (incremental completion), by default. To turn this off, set option
`icicle-incremental-completion-flag' to nil. Or use `C-#' in the minibuffer to
toggle it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: partial completion and switch-to-buffer
2009-08-22 14:03 ` partial completion and switch-to-buffer Xah Lee
@ 2009-08-24 15:28 ` Tobias Gerdin
0 siblings, 0 replies; 5+ messages in thread
From: Tobias Gerdin @ 2009-08-24 15:28 UTC (permalink / raw)
To: Xah Lee; +Cc: help-gnu-emacs
Xah Lee <xahlee@gmail.com> writes:
> On Aug 21, 7:20 am, Tobias Gerdin <t...@opera.com> wrote:
>> Greetings,
>>
>> With the advent of partial-completion-mode in Emacs 23, I was wondering
>> if there isn't any way to use this mechanism with switch-to-buffer ("C-x b")?
>>
>> Switch-to-buffer still seems to do only prefix-matching.
>>
>> I am aware of iswitch-mode and ido-mode, which does substring matching
>> (which is basically what I want), but find them too obtrusive. I do not
>> want any completion to be done unless I say so (by pressing <tab>).
>>
>> I'm using Emacs CVS from 2009-07-30 (i.e. pretty much 23.1).
>
> so far as my studie goes, the partial completition does not always
> works, perhaps by intention. However, wildcard works. So, just put a
> wildcard “*” in front first.
Thank you. I thought I tried that and found that it didn't work but it
did. However, I would really like not need to put the star there, since
it's a shifted char on my layout and really slows things down. Would
have been nice if a partial match was attempted directly. Since the list
of buffers is available in memory even a partial search should be very
quick.
I think I will just cook up something simple by myself, but I
find it odd that a stock Emacs doesn't do it this way.
-Tobias
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: partial completion and switch-to-buffer
2009-08-22 15:10 ` Drew Adams
@ 2009-08-24 15:31 ` Tobias Gerdin
0 siblings, 0 replies; 5+ messages in thread
From: Tobias Gerdin @ 2009-08-24 15:31 UTC (permalink / raw)
To: Drew Adams; +Cc: help-gnu-emacs
"Drew Adams" <drew.adams@oracle.com> writes:
>> I am aware of iswitch-mode and ido-mode, which does substring matching
>> (which is basically what I want), but find them too obtrusive. I do not
>> want any completion to be done unless I say so (by pressing <tab>).
>
> Icicles does no completion until you say so (by pressing TAB), by default.
I am aware of Icicles, but I would prefer not to have to rely on
an external package for this simple matter. But thanks for the thorough
explanation.
-Tobias
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-08-24 15:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.5112.1250926029.2239.help-gnu-emacs@gnu.org>
2009-08-22 14:03 ` partial completion and switch-to-buffer Xah Lee
2009-08-24 15:28 ` Tobias Gerdin
2009-08-21 14:20 Tobias Gerdin
2009-08-22 15:10 ` Drew Adams
2009-08-24 15:31 ` Tobias Gerdin
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.