From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.help Subject: Re: interactive function name Date: Sun, 20 Mar 2011 23:45:29 +0100 Message-ID: <87lj0976nq.fsf@gmail.com> References: <21b55cc1-30f5-453a-9502-2963063bf704@d26g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1300661176 6410 80.91.229.12 (20 Mar 2011 22:46:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 22:46:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 20 23:46:10 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1RNw-0007mu-HS for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Mar 2011 23:46:08 +0100 Original-Received: from localhost ([127.0.0.1]:57821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1RNw-0005Tu-3Z for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Mar 2011 18:46:08 -0400 Original-Received: from [140.186.70.92] (port=54375 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1RNa-0005SI-GS for help-gnu-emacs@gnu.org; Sun, 20 Mar 2011 18:45:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1RNZ-0007XL-7Q for help-gnu-emacs@gnu.org; Sun, 20 Mar 2011 18:45:46 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:52047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1RNZ-0007XG-21 for help-gnu-emacs@gnu.org; Sun, 20 Mar 2011 18:45:45 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q1RNU-0007eM-VF for help-gnu-emacs@gnu.org; Sun, 20 Mar 2011 23:45:41 +0100 Original-Received: from ney92-7-78-233-218-202.fbx.proxad.net ([78.233.218.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Mar 2011 23:45:40 +0100 Original-Received: from antoine.levitt by ney92-7-78-233-218-202.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Mar 2011 23:45:40 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ney92-7-78-233-218-202.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80301 Archived-At: 20/03/11 23:38, Ritchie > I'm trying to use the interactive function name feature. On emacs lisp > manual it says: > > ‘a’ > A function name (i.e., a symbol satisfying fboundp). Existing, > Completion, Prompt. > > So I tried it with a small test code: > > (defun testfun1 () > (message "hello, world!")) > > (defun test (abcd) > (interactive "aTheme name: ") > (abcd)) > > Emacs gives an error saying, > > test: Symbol's function definition is void: abcd > > I tried to test abcd with fboundp, it returns t. So I'm quite confused > about how to use the 'a' option in interactive. > Any body can give some hints? Your problem is not with interactive. (abcd) evaluates the function "abcd", while you want the function contained in the variable "abcd". Try "apply".