From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian von Savigny Newsgroups: gmane.emacs.help Subject: Reading in a variable list of strings Date: 14 Mar 2005 13:40:22 +0100 Organization: 1&1 Internet AG Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1110802965 19371 80.91.229.2 (14 Mar 2005 12:22:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2005 12:22:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 14 13:22:45 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DAoZW-0001zr-Ae for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2005 13:21:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAopC-0002Nc-8W for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2005 07:37:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: pd9502189.dip0.t-ipconnect.de Original-X-Trace: online.de 1110800221 27375 217.80.33.137 (14 Mar 2005 11:37:01 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Mon, 14 Mar 2005 11:37:01 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:129256 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24808 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24808 Hi there, I am running into problems whatever I try: I am writing (better, trying to write) a function the core of which is call-process. The problem is that I would like to be able to supply a variable number of arguments to the process called, by user input. I have no clear idea of how to read in an unknown-length list of strings. It must be something with (while ...) and (read-string ...), but (while what?), i. e. how can the user say he's done now? For the moment, I am reading in just one string and splitting it at spaces, but this is quick and dirty at best. Any hints greatly appreciated! -- Florian v. Savigny If you are going to reply in private, please be patient, as I only check for mail something like once a week. - Si vous allez répondre personellement, patientez s.v.p., car je ne lis les courriels qu'environ une fois par semaine.