From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: use of read Date: Mon, 07 Jan 2008 23:48:01 +0100 Message-ID: <87hchpb6ce.fsf@thievol.homelinux.org> References: <87prwdbcq3.fsf@thievol.homelinux.org> <87ejct72ko.fsf@bzg.ath.cx> <87lk71b8dy.fsf@thievol.homelinux.org> <4782A288.2070406@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199745716 25056 80.91.229.12 (7 Jan 2008 22:41:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 22:41:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Lennart Borgman \(gmail\)" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 07 23:42:14 2008 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.50) id 1JC0fe-0006eV-FT for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2008 23:42:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JC0fH-00049o-BM for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2008 17:41:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JC0ey-000480-5p for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 17:41:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JC0ex-000479-6J for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 17:41:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JC0ew-00046y-VV for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 17:41:31 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.152]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JC0ew-0001Re-JU for help-gnu-emacs@gnu.org; Mon, 07 Jan 2008 17:41:30 -0500 Original-Received: by fg-out-1718.google.com with SMTP id d23so4835080fga.30 for ; Mon, 07 Jan 2008 14:41:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=0dfTK5E/hG914l9pc7tm3047DnTOHEjX6yyfaQ7HY0o=; b=cADT8ZQRygWFl6uMGlbHh/6ApeykO2munOXq8adux0Jq94q2ue7CYCU7tuy+EnjeWSIx6ED35SkgkiB4H7VTgV/T8pinrvZHgs503wH3K3EhZDLmYdSNDRPvYIxRopSvuR6gJB56V/Wa9hu9C5g+mQXJj7sr/LpuzBgZ5+o5o2g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=rPqDaplgDFlWMY29H4mcS+ri/E/sWn3b5DucO9PH40tk4Hsjj3QL1ewU1ywhzy/Nm75KLVBRP/VprmaRrmy04lbCvw1aO0iXlOxV83hQEbM4JoQCIGhMvCcQL4qiy1m0o0ePxtWlx6RBjbfgF4wABPi0KmUFhwBmgvddBJwtMZ0= Original-Received: by 10.86.71.1 with SMTP id t1mr20595964fga.33.1199745689635; Mon, 07 Jan 2008 14:41:29 -0800 (PST) Original-Received: from thievol.homelinux.org ( [79.81.61.246]) by mx.google.com with ESMTPS id 12sm23566235fgg.6.2008.01.07.14.41.27 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2008 14:41:28 -0800 (PST) In-Reply-To: <4782A288.2070406@gmail.com> (Lennart Borgman's message of "Mon, 07 Jan 2008 23:07:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:50568 Archived-At: "Lennart Borgman (gmail)" writes: > Thierry Volpiatto wrote: >> Bastien writes: >> >>> Thierry Volpiatto writes: >>> >>>> Hello, i use the function (read) to fill a list interactively. >>>> the prompt is "Lisp expression:" , is it possible to have another prompt? >>>> Thank you in advance. >>> This string is hardcoded in the C source code for this function. So I >>> think it's not possible to modify it. >> >> Thanks, >> no over function to get a variable interactively ?(not with interactive) > > Maybe this can help? > > (defun read2 (lisp) > (interactive "xGive me some lisp: ") > lisp) > > (call-interactively 'read2) > Yes, that work fine with that, like that i can fill my list: (setq liste nil) (dotimes (i 3) (push (format "%s" (call-interactively '(lambda (var) (interactive "xGive me some lisp: ") var))) liste)) Thank you very much for your help :) -- A + Thierry Pub key: http://pgp.mit.edu