From: Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Structuring a list to run sequence of commands
Date: Mon, 25 Nov 2024 20:37:40 +0000 [thread overview]
Message-ID: <CmnqcpUkjiRESoIvrQLWCRBiQXquUWUvYsfFwMXX3bd3cFZgzUmvOZhe2WsCeN9wFYP146cInq8OskadVOhMBAtDTUYG9jNyvUY0PER793s=@protonmail.com> (raw)
Have been hoping to grouping a sequence of commands and execute each one.
But am getting
Debugger entered--Lisp error: (invalid-function (add-to-list 'load-path (marnap-sec-fpln-waypt "NAPLN")))
((add-to-list 'load-path (marnap-sec-fpln-waypt "NAPLN")) (require 'napoleon))
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
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))) )) )
reply other threads:[~2024-11-25 20:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CmnqcpUkjiRESoIvrQLWCRBiQXquUWUvYsfFwMXX3bd3cFZgzUmvOZhe2WsCeN9wFYP146cInq8OskadVOhMBAtDTUYG9jNyvUY0PER793s=@protonmail.com' \
--to=help-gnu-emacs@gnu.org \
--cc=heimeborgia@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).