From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: david.chappaz@free.fr Newsgroups: gmane.emacs.help Subject: Get a list with edit-and-eval-command Date: Sun, 12 Feb 2012 17:25:15 +0100 (CET) Message-ID: <2f113867-1467-4df7-b6b0-f8c13872a615@zimbra62-e11.priv.proxad.net> References: <9601423a-874e-4e7e-a2d7-a90c5ea80503@zimbra62-e11.priv.proxad.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1329063932 7034 80.91.229.3 (12 Feb 2012 16:25:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2012 16:25:32 +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 Feb 12 17:25:32 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RwcF1-000401-3k for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Feb 2012 17:25:31 +0100 Original-Received: from localhost ([::1]:53762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwcF0-0001uR-Ge for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Feb 2012 11:25:30 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwcEv-0001uB-OV for help-gnu-emacs@gnu.org; Sun, 12 Feb 2012 11:25:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwcEu-0002wZ-KF for help-gnu-emacs@gnu.org; Sun, 12 Feb 2012 11:25:25 -0500 Original-Received: from smtp4-g21.free.fr ([212.27.42.4]:51844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwcEt-0002wN-U3 for help-gnu-emacs@gnu.org; Sun, 12 Feb 2012 11:25:24 -0500 Original-Received: from zimbra62-e11.priv.proxad.net (unknown [172.20.243.212]) by smtp4-g21.free.fr (Postfix) with ESMTP id 92B2B4C81A1 for ; Sun, 12 Feb 2012 17:25:16 +0100 (CET) In-Reply-To: <9601423a-874e-4e7e-a2d7-a90c5ea80503@zimbra62-e11.priv.proxad.net> X-Originating-IP: [88.108.100.164] X-Mailer: Zimbra 7.1.4-GA3333 (ZimbraWebClient - FF3.0 (Win)/7.1.4-GA3333) X-Authenticated-User: david.chappaz@free.fr X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 212.27.42.4 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:83716 Archived-At: Hi all, I'm trying to get an elisp object (more specifically a list) from the minibuffer, using the function edit-and-eval-command, as documented in http://www.gnu.org/software/emacs/manual/html_mono/elisp.html#Object-from-Minibuffer For example say I first evaluate: (setq wildcard '("*.c" "*.h" "*.v")) Next I am trying to do something like: (setq newwildcard (edit-and-eval-command "Enter an expression: " (format "%s" wildcard)) but it does not achieves what I really want, which is to provide as initial argument a valid lisp list [e.g. '("*.c" "*.h" "*.v")] so no error is generated if the user simply hits [Enter]. The above generates double quotes and misses the single quote, which causes the problem. Can anyone give me some insight to do this properly ? Many thanks, David.