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: Re: Reading in a variable list of strings Date: 14 Mar 2005 16:37:14 +0100 Organization: 1&1 Internet AG Message-ID: References: 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 1110810860 11423 80.91.229.2 (14 Mar 2005 14:34:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2005 14:34:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 14 15:34:19 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DAqe1-0000jn-Cj for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2005 15:34:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAqtg-0008MX-Ni for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2005 09:50:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!irazu.switch.ch!switch.ch!news.belwue.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: pd9502189.dip0.t-ipconnect.de Original-X-Trace: online.de 1110810832 7913 217.80.33.137 (14 Mar 2005 14:33:52 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Mon, 14 Mar 2005 14:33:52 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:129262 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:24814 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24814 Mathias Dahl writes: > How about something like this: > > (while (not (string-equal "" > (setq test > (read-string "Enter string. and press enter. (When ready, just input an empty string: "))))) Just great, thanks. I wasn't aware that the \n character (that would be part of the input in a Perl script, for example) is automatically stripped off by Elisp, and it also didn't occur to me that you can simply test the return value of an assignment like that. I guess it was a case of "den Wald vor lauter Bäumen nicht sehen" ... Thanks a lot! -- 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.