From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: use of minibuffer in interactive spec code
Date: Tue, 18 May 2010 23:27:10 -0400 [thread overview]
Message-ID: <jwvy6fgshi8.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <3E79AA18AD2A4001A33DE551781D3CB1@us.oracle.com> (Drew Adams's message of "Tue, 18 May 2010 10:11:14 -0700")
> 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
next prev parent reply other threads:[~2010-05-19 3:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-18 17:11 use of minibuffer in interactive spec code Drew Adams
2010-05-18 17:27 ` Drew Adams
2010-05-18 20:39 ` Stefan Monnier
2010-05-19 3:27 ` Stefan Monnier [this message]
2010-05-19 12:44 ` Drew Adams
2010-05-19 15:39 ` Stefan Monnier
2010-05-19 16:40 ` Drew Adams
2010-05-19 17:41 ` Stefan Monnier
2010-05-19 16:04 ` Sean Sieger
2010-05-19 16:16 ` Eli Zaretskii
2010-05-19 16:21 ` posting Windows binaries of latest trunk dev code [was: use of minibuffer in interactive spec code] Drew Adams
2010-05-19 17:25 ` Eli Zaretskii
2010-05-19 17:48 ` Drew Adams
2010-05-20 21:19 ` posting Windows binaries of latest trunk dev code Sean Sieger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvy6fgshi8.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).