From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help 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 Message-ID: <87bo7vc580.fsf@gmail.com> References: <87mwrfe4oy.fsf@gmail.com> <51A4972C.5000903@easy-emacs.de> <87ip23e3ev.fsf@gmail.com> <87a9nfdvdz.fsf@gmail.com> <6cc8e9f1-e7ce-4646-b7ac-be2a57b84ab2@default> <87fvx7cayr.fsf_-_@gmail.com> <061d4281-1056-4df6-993d-9c4a845bbe50@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369766837 14774 80.91.229.3 (28 May 2013 18:47:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 May 2013 18:47:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 28 20:47:15 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UhOvS-0001qi-Pb for geh-help-gnu-emacs@m.gmane.org; Tue, 28 May 2013 20:47:14 +0200 Original-Received: from localhost ([::1]:60997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhOvS-0007ta-Fb for geh-help-gnu-emacs@m.gmane.org; Tue, 28 May 2013 14:47:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhOvB-0007k3-16 for help-gnu-emacs@gnu.org; Tue, 28 May 2013 14:47:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhOv6-00087i-8b for help-gnu-emacs@gnu.org; Tue, 28 May 2013 14:46:56 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:43209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhOv6-00087d-2C for help-gnu-emacs@gnu.org; Tue, 28 May 2013 14:46:52 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UhOv3-0001TK-5z for help-gnu-emacs@gnu.org; Tue, 28 May 2013 20:46:49 +0200 Original-Received: from g231106097.adsl.alicedsl.de ([92.231.106.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 May 2013 20:46:49 +0200 Original-Received: from tjolitz by g231106097.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 May 2013 20:46:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231106097.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:iWII7CHmh2oPsFlgYF8mQpcFO9k= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91109 Archived-At: Drew Adams 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