From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 23852@debbugs.gnu.org
Subject: bug#23852: 25.0.95; lazy-completion-table discards metadata
Date: Sun, 26 Jun 2016 22:42:09 -0400 [thread overview]
Message-ID: <CAM-tV-9eAN2kzitOHXXz4WTE-5nAmpOQtb=uw-mcQUyL05SE1A@mail.gmail.com> (raw)
In-Reply-To: <877fdbv0bf.fsf@web.de>
On Sun, Jun 26, 2016 at 10:21 PM, Michael Heerdegen
<michael_heerdegen@web.de> wrote:
> for example:
>
> (completing-read
> "Input: "
> (letrec ((table (lazy-completion-table
> table (lambda () (let ((cands '("1" "2")))
> (lambda (string pred action)
> (if (eq action 'metadata)
> `(metadata
> (annotation-function . ,(lambda (_) " ---")))
> (complete-with-action
> action cands string pred))))))))
> table))
When trying to evaluate this, I get an error after hitting TAB at the prompt:
Debugger entered--Lisp error: (void-variable table)
(functionp table)
(if (functionp table) (progn (setq table (funcall (function (lambda
nil (let (...) (function ...))))))))
[...]
next prev parent reply other threads:[~2016-06-27 2:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-27 2:21 bug#23852: 25.0.95; lazy-completion-table discards metadata Michael Heerdegen
2016-06-27 2:42 ` Noam Postavsky [this message]
2016-06-27 2:47 ` Michael Heerdegen
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='CAM-tV-9eAN2kzitOHXXz4WTE-5nAmpOQtb=uw-mcQUyL05SE1A@mail.gmail.com' \
--to=npostavs@users.sourceforge.net \
--cc=23852@debbugs.gnu.org \
--cc=michael_heerdegen@web.de \
/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).