[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-r and C-s in minibuffer should search completion
From: |
Stefan Monnier |
Subject: |
Re: C-r and C-s in minibuffer should search completion |
Date: |
Sun, 30 Mar 2008 22:11:24 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> The special code should be in C-x b, C-x 4 b, and C-x 5 b.
>> Checking the caller inside the minibuffer is *bad*. I already
>> suggested a much better solution: use a minibuffer-completion-predicate.
>> That's what it's for.
> C-x b switch-to-buffer has an interactive spec in buffer.c
> "BSwitch to buffer: ". Do you mean replacing it with an
> expression that uses `minibuffer-with-setup-hook' to bind
> `minibuffer-completion-predicate' to a new predicate that
> rules out the current-buffer?
Actually, looking at the code some more, I'd suggest to add
a `predicate' arg to `read-buffer' and then use it in switch-to-buffer
(which would clearly need to be changed not to use a string-spec but
a lisp-spec for its interactive spec).
Stefan
- Re: minibuffer-default-add-shell-commands, (continued)
- Re: minibuffer-default-add-shell-commands, Reiner Steib, 2008/03/30
- Re: minibuffer-default-add-shell-commands, Juri Linkov, 2008/03/30
- Re: minibuffer-default-add-shell-commands, Reiner Steib, 2008/03/30
- Re: C-r and C-s in minibuffer should search completion, Juri Linkov, 2008/03/29
- Re: C-r and C-s in minibuffer should search completion, Stefan Monnier, 2008/03/30
- Re: C-r and C-s in minibuffer should search completion, Juri Linkov, 2008/03/30
- Re: C-r and C-s in minibuffer should search completion, Stefan Monnier, 2008/03/30
- Re: C-r and C-s in minibuffer should search completion, Juri Linkov, 2008/03/30
- Re: C-r and C-s in minibuffer should search completion,
Stefan Monnier <=