From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: Use of return in dolist Date: Wed, 1 Jan 2025 22:21:12 -0300 Message-ID: References: <868qrv889h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5527"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joel Reicher , Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 02:22:06 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 1tT9uY-0001MN-3f for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 02:22:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tT9tx-0003uG-CF; Wed, 01 Jan 2025 20:21:29 -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 1tT9tu-0003ty-M9 for help-gnu-emacs@gnu.org; Wed, 01 Jan 2025 20:21:26 -0500 Original-Received: from mail-yb1-xb2c.google.com ([2607:f8b0:4864:20::b2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tT9tt-0000Zj-4W for help-gnu-emacs@gnu.org; Wed, 01 Jan 2025 20:21:26 -0500 Original-Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-e387ad7abdaso16360563276.0 for ; Wed, 01 Jan 2025 17:21:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735780883; x=1736385683; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kl+Sfkkrz5WS/vW/qBpXX2KyYMcE600F/E6M4WW6Deo=; b=krJivTivoB5+m+qBQLQwTjb+movymHVAUWlVSU80Y4uqd3L3RKrS5+7NUeQdS1KYdw XlFRyWGK5/AGNmFyooMAS1L9xdArQS8Ub9ZiOaRXvn1Fhrp8SfW7NbRCzC2mTbAiH+++ j+kuxWivHOA1sEz4ZE7SHlyi4hX6li/BlvuuK3xH15njlmgODEk3eistBQYpU4mt9xp/ PSdobzFChSXjisC7U2x8Tt1yJlvNrezBIUX5A5zFs28/Hf7oFPcmRQrG5qrLCEn2MblI y5Waz1LWAiw+eC44sT4MXH8SOw04XKTnVdJaOZKRxAtcsamd+wNrs3SIGWybwOQBrQQb pZqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735780883; x=1736385683; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kl+Sfkkrz5WS/vW/qBpXX2KyYMcE600F/E6M4WW6Deo=; b=vwP1EVjc81xjbRyze9/sftkX+ovckcAr0i4jgbAtDLr08cI1SrZd8KN3pkVPX+nt8N ch5LKZU0v//3Q7eUPxubgou8YQENkHCglceWzqdZvB8yn092jT9JYkSGnsB0POf8RNPu chuC4J0b/24fBqVi7SLerRpXM5xxxCm0/vaWR8V7A8coKB3zj0ziUX163KD7Ukt53ux+ V0OgsFEv353qNsjG6NxSojhUWD+LuTuGdsjaGAipLVAa+P99Iq3vvaMwf/lA97kpqyul 64n5njSTXJ3Nw1YQvwGIotu5uxfXb13Z3X+qE8n0CCpT5txliRdR20SqL0/YxjFvmh50 af7g== X-Forwarded-Encrypted: i=1; AJvYcCUTURFGWqpOIQrnMU2lCeAC2f2h5SQAvwZjkXRyfBDE7a3j+ON6uXI0VcI02Iok6lk5NTi2CWh0TWigru8Kmg==@gnu.org X-Gm-Message-State: AOJu0YyKAqMu+QIctmMdMhn6B/H/P2kLWT9Eykam1vBXJaPjT0PaazjG rf7TfFbmNB/SGnzccwBzKvI2QQAX2qwaFkE/r74NBvBzRbzCXSK17iC//12MM0cZ61nmmDKGu7+ FwaNLnp9GnGP8eAwRGwxzXrLyJbA= X-Gm-Gg: ASbGncvrmPu2V/3dsoYpBJpaIPWITEoRaPIsmozBOAD7CHkeM/6RkFA2VjkrEIn9Nsz RDGggVRIVcTf73snm1hQcWACS/chzlnL3MKBhJA== X-Google-Smtp-Source: AGHT+IF/yPtrF8nYWc8VowBHt45+MTa2/YAJCcMsoa2qoD2oga+bQs21welHUgST3odoFJeROkHKyV+s8mu6Vz2p7ns= X-Received: by 2002:a05:690c:7003:b0:6ef:8c41:defc with SMTP id 00721157ae682-6f3f8110733mr269190987b3.11.1735780883351; Wed, 01 Jan 2025 17:21:23 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b2c; envelope-from=eduardoochs@gmail.com; helo=mail-yb1-xb2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:149103 Archived-At: On Wed, 1 Jan 2025 at 21:42, Eduardo Ochs wrote: > > On Wed, 1 Jan 2025 at 20:10, Heime via Users list for the GNU Emacs > text editor wrote: > > > > I cannot do C-h f return > > Try: > > (defun eek (str) (execute-kbd-macro (read-kbd-macro str))) > (eek "M-x apropos RET return RET") > (eek "C-h f cl-return RET") > > Cheers, > Eduardo Try this too: ;; See: (info "(cl)Blocks and Exits") (defun myinsert (o) (insert (format "\n%S" o))) (dolist (i '(2 3 5)) (myinsert i)) (cl-block nil (dolist (i '(2 3 5 8)) (if (= i 5) (cl-return) (myinsert i)))) Cheers, E.