[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use of minibuffer in interactive spec code
From: |
Stefan Monnier |
Subject: |
Re: use of minibuffer in interactive spec code |
Date: |
Tue, 18 May 2010 23:27:10 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> It turns out that I now need to bind `minibuffer-completion-predicate' in the
> interactive spec. Otherwise, it has the value that is used for
> `read-directory-name', which is `file-directory-p'.
I cannot reproduce this problem on the trunk. Can you?
Maybe the problem is that I didn't do quite the same as you did.
I did:
emacs -Q
(defun sm-foo (dir)
(interactive
(list (read-directory-name
"Dir: " nil nil
(and (member cd-path '(nil ("./")))
(null (getenv "CDPATH"))))))
(message "m-c-p=%s" minibuffer-completion-predicate))
(define-key minibuffer-local-completion-map [?\C-s ?\C-m] 'sm-foo)
(setq enable-recursive-minibuffers t)
M-x C-s C-m RET
and I see that minibuffer-completion-predicate was properly reset to commandp.
Can you give another recipe, maybe?
Stefan
- use of minibuffer in interactive spec code, Drew Adams, 2010/05/18
- RE: use of minibuffer in interactive spec code, Drew Adams, 2010/05/18
- Re: use of minibuffer in interactive spec code, Stefan Monnier, 2010/05/18
- Re: use of minibuffer in interactive spec code,
Stefan Monnier <=
- Re: use of minibuffer in interactive spec code, Sean Sieger, 2010/05/19
- Re: use of minibuffer in interactive spec code, Eli Zaretskii, 2010/05/19
- posting Windows binaries of latest trunk dev code [was: use of minibuffer in interactive spec code], Drew Adams, 2010/05/19
- Re: posting Windows binaries of latest trunk dev code [was: use of minibuffer in interactive spec code], Eli Zaretskii, 2010/05/19
- RE: posting Windows binaries of latest trunk dev code [was: use of minibuffer in interactive spec code], Drew Adams, 2010/05/19
- Re: posting Windows binaries of latest trunk dev code, Sean Sieger, 2010/05/20