all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: completing-read() with explanations of the possible alternatives
Date: Fri, 30 May 2008 09:36:38 -0700 (PDT)	[thread overview]
Message-ID: <1ac2b900-194b-4af8-9e87-f16d38d6f173@k13g2000hse.googlegroups.com> (raw)

Hi there!

I would like to extend completing-read() and completing-read-
multiple() in such a way that I get extra help for the alternatives
that are provided in the TABLE argument.

I thought that completing-read() would give this functionality by
default as the documentation for it says:
        "TABLE is an alist whose elements' cars are strings, or an
obarray."
I thought that the car was what displayed during completing-read() and
its corresponding cdr's were gathered in the return value.

But I only return the cars of these elements. Is it meant to be this
way? Should I perform the lookup of crds by using the return value of
completing-read(). If so how do I accomplish that for the different
possible TABLE types.

Example:
I want the interface for my completing-read-function to list the
alternatives something like this (preferrablly with vector or list in
font-lock-type-face and explanations in font-lock-comment-face)
- vector - Vector Container is ...
- list - List Container is ...
and return for example in the form
'("vector")

Thanks in advance,
Nordlöw


             reply	other threads:[~2008-05-30 16:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-30 16:36 Nordlöw [this message]
2008-05-30 17:05 ` completing-read() with explanations of the possible alternatives Drew Adams

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1ac2b900-194b-4af8-9e87-f16d38d6f173@k13g2000hse.googlegroups.com \
    --to=per.nordlow@gmail.com \
    --cc=help-gnu-emacs@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.