emacs-devel
[Top][All Lists]
Advanced

[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: Thu, 03 Apr 2008 21:18:47 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> 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).

> Adding a new argument to `read-buffer' will cause the argument list
> mismatch between `read-buffer' and `read-buffer-function', and
> calling `read-buffer-function' with an additional argument will
> break existing code.

Then lets fix the existing code.

> But I now have an idea how to accomplish this task without adding a
> new argument to `read-buffer'.  The patch below adds a new function
> `read-buffer-to-switch' that binds `minibuffer-default-add-function' to
> `minibuffer-default-add-buffers' that omits the current buffer from the
> list of defaults before calling `read-buffer':

That's ugly.


        Stefan




reply via email to

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