From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Use of return in dolist Date: Tue, 31 Dec 2024 18:45:18 +0000 Message-ID: Reply-To: Heime Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32031"; mail-complaints-to="usenet@ciao.gmane.io" To: Heime via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 31 19:46:17 2024 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 1tShFx-0008DH-Nb for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 31 Dec 2024 19:46:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tShFH-0007C6-VO; Tue, 31 Dec 2024 13:45:36 -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 1tShFD-0007Bm-Cx for help-gnu-emacs@gnu.org; Tue, 31 Dec 2024 13:45:31 -0500 Original-Received: from mail-40135.protonmail.ch ([185.70.40.135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tShFB-00034W-ES for help-gnu-emacs@gnu.org; Tue, 31 Dec 2024 13:45:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1735670722; x=1735929922; bh=YuZM7Cuw8AHnTUGSry23QreKlCckBfONU/1D5slXfkc=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=WVsPNAyriHtFRgj33pJj0VYPxlIU0Ylc2da4a0YznPwOgUQfDdGA+s8d7LvPu4yWl FPyb24+7u2HeuMkZIsaFFO8CTwnVbst6DqXBrXzm5c0qYdrKjq72XeTK7YIvfhfL87 lBj+JXzH2DtlD8r0fvop/C3rCaQmacqnL3zfyYNz+uH3mqgkZMAZMlcjN3bMdZqCzq aQeydQrtqtkY8YczxAm7Bw2UIWU21yFHRt8vHjEQg5CHErEpa67IxPg0Q/zpbH/sjY D/BmYgP2mH4tbegv2aggBNEzBdpFCUG4rTYNapw2uZJZnE13NGpDMOe3cNdhXOnE78 ckSZGX7iA693Q== Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 4ac5c5133beb7a0e5b5f4642953905ff73696dcf Received-SPF: pass client-ip=185.70.40.135; envelope-from=heimeborgia@protonmail.com; helo=mail-40135.protonmail.ch 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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:149076 Archived-At: I want to understand what return does? I is supposed to exit the dolist. But does return also return a value. Does in also exit the function or not= ?=20 (defun amazones-okul-kntlr (actm-seqr) "TODO" ;; Make ACTM-SEQR a list, even if a single symbol is passed. (let ( (actm-seqr (if (listp actm-seqr) actm-seqr (list actm-seqr))) ) (dolist (actm actm-seqr) (pcase actm ;; PCASE ('armg (message "ARMG amazones-okul-kntlr") (add-to-list 'load-path (amazones-fpln-waypt "OKUL" 'sec)) (require 'okul) (require 'prevodilac)) ;; PCASE ('go (message "GO amazones-okul-kntlr") (okul-modeline "primitive")) ;; PCASE ('nogo (message "NOGO amazones-okul-kntlr") (return)) ;; PCASE (_ (message "NOGO amazones-okul-kntlr") (message " =E2=94=94=E2=94=80=E2=94=80 ACTM Unrecognised: %s" actm) (return)) ))) )