From: "Drew Adams" <drew.adams@oracle.com>
To: "'Matt Price'" <matt.price@utoronto.ca>,
"'help-gnu-emacs'" <help-gnu-emacs@gnu.org>
Subject: RE: pymacs & interactivel isp functions
Date: Wed, 19 Nov 2008 09:37:26 -0800 [thread overview]
Message-ID: <000801c94a6d$7d216100$c2b22382@us.oracle.com> (raw)
In-Reply-To: <1227111389.17262.159.camel@localhost>
> (setq collection (edsquery-return-addresslist "matt"))
>
> which assigns this value to collection:
> ("Matt Price <matt.price@utoronto.ca>" ...)
>
> my problem comes with a test function that triesto use the
> results of a query as a collection for tab-completion:
>
> (defun matt/external-addressbook-completion (stub)
> "get a list of addresses for tab-completion in a new email"
> (interactive (list (completing-read "Name: "
> (edsquery-return-addresslist (string))
> ;; collection
> nil t))))
>
> the function works properly if i use the list "collection"
> generated as above, but does not give any completion options if
> the python functioloadf is called instead.
C-h f string
,----
| string is a built-in function in `C source code'.
|
| (string &rest CHARACTERS)
|
| Concatenate all the argument characters and make the result a string.
`----
You used (string), which calls string with an empty list of args, so it
concatenates all zero of those together into the empty string, "".
> in the *Pymacs* buffer i ... have this message:
> >23 eval python[1]("matt")
> but when calling from completing-read, i get this instead:
> >19 eval python[1]("")
Right. See above.
> to me it seems that the completion function isn't being sent the input
> string.
What input string? You're passing (string), which is "", not any input string.
next prev parent reply other threads:[~2008-11-19 17:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-19 16:16 pymacs & interactivel isp functions Matt Price
2008-11-19 17:37 ` Drew Adams [this message]
2008-11-22 8:39 ` Matt Price
2008-11-22 15:27 ` Kevin Rodgers
2008-11-22 15:27 ` Drew Adams
2008-11-22 21:07 ` Matt Price
2008-11-22 21:45 ` Drew Adams
[not found] <mailman.747.1227111401.26697.help-gnu-emacs@gnu.org>
2008-11-20 19:48 ` Greg Detre
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='000801c94a6d$7d216100$c2b22382@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=matt.price@utoronto.ca \
/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.
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).