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: Structuring a list to run sequence of commands Date: Mon, 25 Nov 2024 20:37:40 +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="9936"; 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 Mon Nov 25 21:38:23 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 1tFfqh-0002Q5-D8 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 25 Nov 2024 21:38:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFfqJ-0002tB-E3; Mon, 25 Nov 2024 15:37:59 -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 1tFfqB-0002ss-R7 for help-gnu-emacs@gnu.org; Mon, 25 Nov 2024 15:37:53 -0500 Original-Received: from mail-40130.protonmail.ch ([185.70.40.130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFfq9-0002Oj-UQ for help-gnu-emacs@gnu.org; Mon, 25 Nov 2024 15:37:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1732567067; x=1732826267; bh=Y85ob8FOGu41QI0HqckWmJ0CF5iCBwc0hNerHCVhcjg=; 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=KZh0yXgWw7RjYYyuTCKyUfD/OkmILpOnY2eJ+MfDmPzBM4jsu3yZt9yLzBUyer4ds FlIVnNJVyQZM4HCohjmpxs0xwI4xpXRiG3Wya265KCTjCTDkHckd4xYW/3x8gY4lCu fpeGElr1y13OL4nuf25nm3qf2WRNkznRg+aDX7wJMdOxQfcwYd8Nq5mJHks+ZNcf75 cw9+w+zOOCDFCZgboOnnjAEDhVtgtXAtibLrkLCzG6XsYpKOfKBkcMze8o4Bxy/BoU SMdAz28H4eJH5R10FEF/1cwuxbnu/huoCgBGTbW+OO/LUiij75aVyDHxiJtHXnG+IE puMSj7YCvcuhA== Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 6cbe52c0d4dc1b1982924c85cb4d4388c7ea79b6 Received-SPF: pass client-ip=185.70.40.130; envelope-from=heimeborgia@protonmail.com; helo=mail-40130.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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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:148394 Archived-At: Have been hoping to grouping a sequence of commands and execute each one. But am getting=20 Debugger entered--Lisp error: (invalid-function (add-to-list 'load-path (ma= rnap-sec-fpln-waypt "NAPLN"))) ((add-to-list 'load-path (marnap-sec-fpln-waypt "NAPLN")) (require 'napol= eon)) eval(((add-to-list 'load-path (marnap-sec-fpln-waypt "NAPLN")) (require '= napoleon))) (let ((cmd (car tail))) (eval cmd) (setq tail (cdr tail))) I want to ensures that each command in lookup-alist for options 'armg=20 and 'go are evaluated independently. The call I use is (marnap '(armg go)) (defun marnap (&optional actm-service) (let ( (lookup-alist '((armg ((add-to-list 'load-path (marnap-sec-fpln-waypt "NAPLN")) (require 'napoleon)) ) (go ((napoleon-tachyon 'go)) ) )) ) (dolist (actm actm-service) (let ( (fnlist (cdr (assoc actm lookup-alist))) ) (if fnlist ;; Iterate over list of commands and evaluate each (dolist (cmd fnlist) (eval cmd)) ; Evaluate command as a list (message "ACTM Unrecognised: '%s\n" actm))) )) )