From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: Break from a dolist Date: Sun, 09 Sep 2012 14:55:01 +0530 Message-ID: <87oblf1rbm.fsf@gmail.com> References: <87bohfy3om.fsf@Compaq.site> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347182662 25881 80.91.229.3 (9 Sep 2012 09:24:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Sep 2012 09:24:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Cecil Westerhof Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 09 11:24:24 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TAdkd-0001N8-AH for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Sep 2012 11:24:23 +0200 Original-Received: from localhost ([::1]:53236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAdkZ-0006FN-SH for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Sep 2012 05:24:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAdkU-0006F7-Id for help-gnu-emacs@gnu.org; Sun, 09 Sep 2012 05:24:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAdkT-0001Ho-Kz for help-gnu-emacs@gnu.org; Sun, 09 Sep 2012 05:24:14 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:39895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAdkT-0001Hk-Es for help-gnu-emacs@gnu.org; Sun, 09 Sep 2012 05:24:13 -0400 Original-Received: by iagk10 with SMTP id k10so997904iag.0 for ; Sun, 09 Sep 2012 02:24:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=QJE4jA5TtTim4tW25wPq223KFXxx/JbxldMQSFlkjEM=; b=UqNE0TfMGoJ2b8WB8xZbciL77jFJJW3k4e9v88oeRoun62mdfE0NIM9d/0Tj3/w9ZE IHUScRvgquQRFweLffx1iSlvKOXw0jGXIMngWyYbA9twlXp6JC+IHac2fVokYSz6jfhw w0AMvzYHBNVIbt1OfdSTmQbuC1R0nY25hvgcOLW3n2k0UuzueKYC5iISz/spPfBhFGhk 1mQGfc4UgCmnTLgVYTjs+aYEzyyqSC5p3ohuzTvwgSqzLaTFo2hfhNnxMudYIpThNU2J 4U+nHvOZ1+jjdHgOl0fmllA0qhI9rJjTwTYk8hZeaSqD/F+FEbYX6Zz/WNfc8Yc71McA Ngow== Original-Received: by 10.50.207.106 with SMTP id lv10mr6398415igc.0.1347182652841; Sun, 09 Sep 2012 02:24:12 -0700 (PDT) Original-Received: from debian-6.05 ([115.242.227.226]) by mx.google.com with ESMTPS id ho1sm6619104igc.3.2012.09.09.02.24.09 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 09 Sep 2012 02:24:12 -0700 (PDT) In-Reply-To: <87bohfy3om.fsf@Compaq.site> (Cecil Westerhof's message of "Sun, 09 Sep 2012 10:56:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 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:86704 Archived-At: Cecil Westerhof writes: > I have the following code to fetch the email address belonging to a > mailing list. I use it to automatically fill the to address when > posting to a newsgroup. > > (defun dcbl-gnus-get-mailing-list-address () > "Get gnus-newsgroup-name mailing list address (if it has one);" > (let ((to-address nil)) > (when gnus-newsgroup-name > (dolist (item dcbl-gnus-mailing-lists) > (when (string-match (car item) gnus-newsgroup-name) > (setq to-address (cdr item))))) > to-address)) > > But when the address is found, it would be better to leave the loop. > Is this possible? (info "(elisp) Examples of Catch") --