From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : Exiting from mapc Date: Wed, 1 Jan 2025 02:02:44 +0000 Message-ID: References: <7cSjmNb9wbuuXOPxnBml1e6cPaldn8EPTGZ2LZdnm-ZjIANwQBYOYq9a-nJDcaCG8QKkb09TGeUjlQ6vLFyFVzOPZfJniDINxCNXT1TW6vQ=@protonmail.com> <87wmffwb8w.fsf@> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37596"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime , Heime via Users list for the GNU Emacs text editor To: =?iso-8859-1?Q?Bj=F6rn_Bidar?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 01 03:03:43 2025 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tSo5F-0009eo-QG for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 01 Jan 2025 03:03:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSo4c-0008Sx-Ch; Tue, 31 Dec 2024 21:03:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tSo4X-0008SU-7R for help-gnu-emacs@gnu.org; Tue, 31 Dec 2024 21:02:57 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tSo4U-00050v-PW for help-gnu-emacs@gnu.org; Tue, 31 Dec 2024 21:02:56 -0500 Original-Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5011UxN8028464; Wed, 1 Jan 2025 02:02:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=oNfvcBlhjuvbaMPUaQaudECHrha7cOvTxP7CTKiUjUA=; b= UORUWZC/Oi7JGNNjQAAqAZP1mT19xgbkDhxLYr27NE442V0EeLnsIDwyJ4qb7+Yc iy39nTHDS1i1MliqxOFQN5e9/7W8DbxuTvNA4UmaA3CzNpop6Ld48ofkBzdqKMOJ 4WuQ5X2mIImmh5Q7IYZhJRAUXSf9u88C23sroiwJlNf5UrU6aPILB1MeH+TiOB67 aM9qzNZDbPaRLkk083AFBiqwIskkL3g5WEJ2M75Ex/2CfTukXjdwL2cqRXwyTsYH DcDpbPzfLgdKZTlkPuzGgii0/Xw6XDqnDeoskQuZW3f5Ixi8Rrp7Ei0RSb7lG2gl 6CE5ChKRS0tLV7pcclHCQw== Original-Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 43t88a3vyh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Jan 2025 02:02:51 +0000 (GMT) Original-Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4BVKL1BN011786; Wed, 1 Jan 2025 02:02:50 GMT Original-Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2177.outbound.protection.outlook.com [104.47.56.177]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 43t7s7jdcd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 01 Jan 2025 02:02:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CTBj0RMtiO763bGAhpEF5/k877FKV7Z+bxVDS6HZ6NkNHwzcOMFV9B4v5U/q1URVZ+l6fTtDvrKA7e4cWR7U+RL+JlRXbO3RvmBo1UGcJfI6EqK380j7QslKEESKrsT9fPsfz9I5X4aBgzakPnYUmrtfvItjGU76VCOhDExYZRApfml3rckqh+00n2mTyvZRXauqllojIMpsf6Qkepl4Aqz3H6DAx5C4JE6pPpqdO5fk6qPT+Yr6c7OX0XqIyGj3UuBAPftVLMzdJmnPMuWlR+elhELDMSaF1vM7RMlHZ2J/1295AoNbeI5LiZuWXP1xkkVW88FCH/u6Ud94uj9g3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oNfvcBlhjuvbaMPUaQaudECHrha7cOvTxP7CTKiUjUA=; b=Zmc8CGLf90EMGzXqZ8QDNEGKyOgB5dr8TpXkP7fs5pxTgxRxKo6BxNWyAPb/d3kIhCWqnIFLJ8ePl5Orcpk9BKU9L/RapAbYfpOk2poWEHoA92wlz0zDIvqr1Eayb+hQ1MJEEPGZ2YZdgsUgvFJsebRIvac0CxvMzpBJ1ZWYvmTr3UjV3wzWhi6HLWA8WoiESaXdN/ng+m+962pCDAYrGuZkxt4JTG+ZXRa0JcNDLBdRCydn0mShZzZ1qaOIkopYWZH8xOG+J5PmGpXUadIrErX85VXh/JHiYhT61G3XJajQKnLZLxMrxOL919lAbDcx9Chgr5ZXdystVt+qBUTqpg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oNfvcBlhjuvbaMPUaQaudECHrha7cOvTxP7CTKiUjUA=; b=cbWnxwlgp6nDx70jlC1567kpWPggDvfJb9k+GoP/OYp8hyaNT8W+pHZb+oNKMc58RhWEBSPmrzX/KmO6oe7pl1v9YYgk3SFlkUvLAY02vKRFTeeQHGpHPA40DIu4d/1NO/RieLfW3tHtOJAYBZ5/ParTvHs7Qrb/k7eVl/ThaBI= Original-Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by CYXPR10MB7951.namprd10.prod.outlook.com (2603:10b6:930:dc::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8293.19; Wed, 1 Jan 2025 02:02:44 +0000 Original-Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8314.012; Wed, 1 Jan 2025 02:02:44 +0000 Thread-Topic: [External] : Exiting from mapc Thread-Index: AQHbW+/1jEg+nF82Jk2WS4ZrQFjea7MBKVNA In-Reply-To: <87wmffwb8w.fsf@> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|CYXPR10MB7951:EE_ x-ms-office365-filtering-correlation-id: c8467f35-9b72-40d2-7e3d-08dd2a08619b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?Q?kF3JYgkYf0LB/lpQSAiGHSovJXne8/yXuzw8qgklAK4Kb136tj9UWbxXgs?= =?iso-8859-1?Q?Xf3/MFLIQWrCJSxR64wWSOUzqHPZNw2iOzqYUINtIIt/VOi4U0d4iLsfGQ?= =?iso-8859-1?Q?5TwmUF69SV3CwZWR76YY280CACnoHjvMQ20yBIZ9627oxU7vIW451ysSGp?= =?iso-8859-1?Q?YdNo13jDw+ofA4MLDjIP4K2C19PrvOXWt0ZI5u1egOyyH7F9DT/DbSoJ6B?= =?iso-8859-1?Q?Qu+lDE+0V92LEFoakGV8JwMpXbmXdqPnKZrQekm3Qkpfq1K5Q2virqeSkK?= =?iso-8859-1?Q?1ckKi9DXd3WVAdhNDQ/ETldxR3rWXJ+KUREbPBm9PoofehmO+zMvZebzrh?= =?iso-8859-1?Q?FE1HcpZ9SxE3lXrwWtJQNmlZV6PsBrKN+fO651HELh2yOqIN6TsOAPpD+B?= =?iso-8859-1?Q?dAu1IWdmZlCAjdA6DCZuwLr3PT3kCrU0VoCrP28lzsCybWKSUq/Q7uZzUU?= =?iso-8859-1?Q?zFwgjUd3cC1mx9ty8gYC+CHXJep17wI97oBa7eqUTu9qsOf0eETVbkmj94?= =?iso-8859-1?Q?G1CcShvmuPKTl9oSYJBWi9d3fgzhvhXFJ6BWoWKNbuh/UU5PoZ/JxUGLJq?= =?iso-8859-1?Q?Y1O1EOxBSxQdYYtELM+6ZYjJFjRdiiN4qVDcPD55LryFt/RxqTYjv6+SPJ?= =?iso-8859-1?Q?0hI x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?34uPo1NZ85n9/O49Mf3l9KGzVJ9a7mKreacxJjDjrdsAbDguTklQ/PcdFf?= =?iso-8859-1?Q?m03sO4vmamLlaBQYpjGvBGDjHb2h0z8zsCXYye3jPfcgRL9IvG28VFQ7u3?= =?iso-8859-1?Q?meyhxHNRqo+ZN7xj5zg683DH2PwggqerrnaGto9vQxpRuikHT10fvyuEXk?= =?iso-8859-1?Q?bfhjdZ8vo9gPtyxKH4fKdpTDdjeBBGMQ9txKB1UoqBJbjAf1CIdULK8NO3?= =?iso-8859-1?Q?ZEvj0dWra1jd2EkljPeXgdFw0KMYcL3El7/uRIUhnh43o9b2SYY+tg838w?= =?iso-8859-1?Q?ZSB6A7o/fGrClKMTcVGwflzIHseV3/zyHznqwVNNg0AMkoe7I49hFnQeoo?= =?iso-8859-1?Q?K02Yh/YJUxtZW3ky0l91Ebihmgn46m9+bLZ8NXmrnd0b7DPkhljZeNZlSH?= =?iso-8859-1?Q?AdYeQarGnNJIBjShu7SB0zKr1tEufeMZBjDx2iisKhRXCpp/JgNqdpOc3A?= =?iso-8859-1?Q?/i03WMPtHVpYIiyggti51xytSyV0zMSVOhX1F7TqRvR+tFFcLgVvsDeeRm?= =?iso-8859-1?Q?cQ5wa+SdNmd50Updy1Eb5moL1mQ8vw7dSDrBnN42Be6RTIb7h425FdVIYh?= =?iso-8859-1?Q?poy/OZeTnd8XfKFymoJL5gGLGbuMOtIB9eNoTuGRvIc3jVgIxCTZRRnm6L?= =?iso-8859-1?Q? X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: oQYODaX33Kl/KGPnxivzHoTUc1m0VBkYAnrpnNyjcDmeAatlXYQSkyPk7EV2QsHiDgjuMnPd2RFCN03JV3SwINPMC6WiMajo9V9Wj/223KIiKgrY3xONM3Sd5AFvu/MFAPWnoiARMFT5dq5DrR21qxqITM5d4tVbzVKBXECqIF8OdkF9nHzw3CPtKHe/hUAM71hOV4KdNRUz4w5v5MJ8u8jlH74TY2m0apSmNWZnWUa+lBoDAEuMuU2A8xmmF1zp66vUR5ckmWt+BF4pC5Lm5L8nqqEOXVqszojIwKUb1oCODys/t6kZHhejiBddpinvWdoyTgEHdlzePglQQGJ+69gFvt1/gyJMo+gBSVsRW9MU4WKxi1glM58fiDhw1PcnS3nSm98bEhRxKR5l7gVyf6B1iM1h7qknJvDXIHfqLRGVNqgsyLKm6oyiWeByQw8ddXmxUfq+GBtsc+n9VjbFg3TkGAjQZOHtrAkWcyx5n5CqTBaXpNgbme05u05sLmQolz2K3o5JnUvzX3msKd2xBnVtrnKOeoIO+mjUc1YvfqhVfNjrYhF8vrZ3UXOL+QRSUcvYEfg1GT5TdDij0loOnBLFRZAzMS/ardySUHot900= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8467f35-9b72-40d2-7e3d-08dd2a08619b X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jan 2025 02:02:44.2036 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zs3qDE+UQVPr70BY1ct+Hw3AS70urIDtsOSpK1PSh/IEmJe1DNw7jfvtXdj5aJOk4PJgZ9+vkfqLODkjig7Mow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYXPR10MB7951 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2024-12-31_09,2024-12-24_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 spamscore=0 malwarescore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501010014 X-Proofpoint-GUID: _Ym4EGxOJ4LU6aLTal9RX5JfoSAoY40C X-Proofpoint-ORIG-GUID: _Ym4EGxOJ4LU6aLTal9RX5JfoSAoY40C Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:149088 Archived-At: > >> How can I exit when encountering 'safg or 'nogo > > > > As usual, wrap with a `catch', and `throw' to it whenever you like. >=20 > Should dolist be better in this context anyway? Of course, but it doesn't answer his question. ;-) If a plain iteration, with no intermediate escape to throw a value, is appropriate for what you want to do, then by all means use it. IOW, don't go catching and throwing willy nilly. Like `GO TO'. `dolist' and `mapc' etc. don't let you escape; you must go through the whole list. Catch and throw are available for when you need to get out and return or do something directly, and not waste time running down the rest of the list for nothing.