From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Making alist that executes multiple commands Date: Mon, 25 Nov 2024 23:09:23 +0100 Message-ID: <8734jf6k4s.fsf@rub.de> References: <87jzcr6ooe.fsf@rub.de> <87frnf6n2l.fsf@rub.de> <87bjy36m2w.fsf@rub.de> <877c8r6l8e.fsf@rub.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11878"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 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 Mon Nov 25 23:10:13 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 1tFhHZ-0002uN-6y for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 25 Nov 2024 23:10:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFhGu-0006zZ-NH; Mon, 25 Nov 2024 17:09:32 -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 1tFhGt-0006zR-H9 for help-gnu-emacs@gnu.org; Mon, 25 Nov 2024 17:09:31 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFhGr-0007hb-3e for help-gnu-emacs@gnu.org; Mon, 25 Nov 2024 17:09:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1732572564; x=1733177364; i=stephen.berman@gmx.net; bh=uXk95Hghrw7z1p/shLJdoBaAVgEG9Z/Q3L/XXx2ZQt4=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=HogkQUZ0VF5BO6h5jjtgUDEDepiqJ7fFEeaesUdMka1bcdX0FnE5QlTkhvzcbECC GEIGnQP6XVVrfuldB0BiKii71w/qszW9R6PbleGRGoXApcGnDmwcbRNvJugHJlgfC MpghVKNJALB/Yt6SpITF16wHIo8l5am7e2/texx7YW7AkKYDh4rF08qRGJ/3yJwte LwmegOyh9eJf3rrU5afyd8IZK2ZIIkwGCuDN5TSwT+d2FGfSWHAVzIGTTXvsemL4W mM3up32v6DiNoSuFK7KtbhL6hfLe8r24q5RW5VozwmcDB+qc/feCxgn0LsoU+KV8i EqolAYG2OipFaujSLQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfssd ([88.130.50.169]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mzyyk-1tav4s0r4A-00wH3z; Mon, 25 Nov 2024 23:09:24 +0100 In-Reply-To: (Heime's message of "Mon, 25 Nov 2024 21:59:53 +0000") X-Provags-ID: V03:K1:caLwvBI1kHJGANmb2euXrQS4epVuFSmzw3G8i5ZGIanXQDumHKb zzkASh+GYXDolu3RnUKLQRGqma7Qv9QfBeOTRK6rJOhVrgbdkMk4GNrmBsbCockNsPvuRzh u+Wu0PCJfzyNr0aRZNTAqqc/yGHiV9ikErlMGXBqiuoTEfApMfPLEe7RmVrAufrZsIVBBy+ BX4WP/qSTh4NyTfz7g/Ew== UI-OutboundReport: notjunk:1;M01:P0:kfWl0YcVUBc=;ZLJ8s7IOqDeQlFg1ocMfBIKyEXE tjVJj+r0b2jDS9ViZVgzVkjwVSTPfRP9Y7yon/F7LA14cDvHHimXbYDo482iV9XF+bZ0b2zbA 5m5mlASkHJuxzCDegiDwOHKgHXsdvF1L4yTjnlHfo1jrGlGbukjwEcwL3DmWgcRXdLCCkmehL vTpabgXyYY4WAB2MXHAeVloumzy3/9AR7XYdHmIKdvi5AJWh4Xz87Id9Ww2Luyecenx3SrFIf uliMNbaAb7kIuttd6vHgh+2VgRxPm6hQ5gKyLFZkQQeHFXJMeMV4AR2rtFfi+9H3HiqEb3UKs K6Frz77KnE24KDubeE3gNCIkyqNfjTgCQ/xhCVI8TXQ3YxSeg4snq3/eFi5MMwi4OJM/72I+d SiGW48P3FZgV0ZakTW5ElEUn4uAQ7PiMLedNPwN97jD8sNgyHpe/AVs+IaZS+6eO/S3zDxlrm 31lXwL1iRH7D72VBVPB0+g26PQVIYd8sGwn9hmqV1CEK6Gfakll7vi+/yJyWbgnytRE6vSxbx EOe7a5OJGNNDHxLmHrGJgHwpnmy7lRuzIlBXeZaNacGcMTN53HNsGGT4OtdajsWE2rpNqoYII 8wvaZxlNNT39s37DRNrjNDmnYXMtg4Wdx/SyLF4VO1ccFTTYpr4JBb+m6cA06QzYdFy4Gmt5H ppXUpYoKzr3w4OEnjHjiQ2/7XoKlseEcavkPCOk2M9yD/GY0p4WE+0iLnzzD93/TUTWdLM5CV vQP3uFRVOzgs90foGOKVNDCDFI04BD90RRrgWT0BjePPBofiCS0Rxn2n+iHeF6nQVG9zpoe9 Received-SPF: pass client-ip=212.227.17.22; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.93, RCVD_IN_SBL_CSS=3.335, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:148402 Archived-At: On Mon, 25 Nov 2024 21:59:53 +0000 Heime wrot= e: > About your comment > >> That seems fine if the functions take no arguments, though probably not >> as flexible as looping over a list. > > You provided the examples > > (funcall 'alkotr-ar ar) > (funcall 'alkotr-ar af) > > But I did not understand how to inceorporate this idea. With > my lambda function, I can also pass arguments to my commands. > > I did not understand the implication of the following in my case. > > (dolist (f '(+ - list)) > (dolist (a '(1 2 3)) > (funcall f a))) > > Thusly, I do not understand what "allow arguments to be freely combined" > actually means practically. It produces all combinations of function calls comprised of one of the functions f and one of the arguments a; I did not mean to imply anything else. If it doesn't help with your use case, then of course don't use it. Steve Berman