unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to write (interactive) with user-selection from predefined enumeration? (was Re: (interactive "rP") valid?)
Date: Tue, 28 May 2013 20:46:39 +0200	[thread overview]
Message-ID: <87bo7vc580.fsf@gmail.com> (raw)
In-Reply-To: 061d4281-1056-4df6-993d-9c4a845bbe50@default

Drew Adams <drew.adams@oracle.com> writes:

> `Using Interactive' explains how to code such a list. As one example,
> you can use `completing-read' to read a user choice among any kind of
> completion candidates (not just names of functions, buffers, commands,
> directories, files, options, and coding systems).

Ok, thanks for the tip, 'completing-read' was the missing piece of the
puzzle for me.

> What more do you need?  The manual is your friend.

I must admit I don't find everything so crystal clear and obvious in the
Elisp manual as you describe it here. Especially in the section about
(interactive), more and more comples examples would be helpful. On the
other hand, a 1000page manual is already thick enough, so I would not
call that a bug. 

-- 
cheers,
Thorsten




  reply	other threads:[~2013-05-28 18:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-28 11:15 (interactive "rP") valid? Thorsten Jolitz
2013-05-28 11:38 ` Andreas Röhler
2013-05-28 11:42   ` Thorsten Jolitz
2013-05-28 13:20     ` Drew Adams
2013-05-28 14:36       ` Thorsten Jolitz
2013-05-28 15:13         ` Drew Adams
2013-05-28 16:42           ` How to write (interactive) with user-selection from predefined enumeration? (was Re: (interactive "rP") valid?) Thorsten Jolitz
2013-05-28 17:27             ` Drew Adams
2013-05-28 18:46               ` Thorsten Jolitz [this message]
     [not found]     ` <mailman.511.1369747231.22516.help-gnu-emacs@gnu.org>
2013-05-28 15:35       ` (interactive "rP") valid? Joost Kremers
     [not found]         ` <mailman.521.1369756484.22516.help-gnu-emacs@gnu.org>
2013-05-30 10:34           ` Joost Kremers
     [not found]       ` <<slrnkq9jm0.2vb.joostkremers@j.kremers4.news.arnhem.chello.nl>
2013-05-28 15:54         ` Drew Adams
     [not found] <<87mwrfe4oy.fsf@gmail.com>

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=87bo7vc580.fsf@gmail.com \
    --to=tjolitz@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.
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).