unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Structuring a list to run sequence of commands
@ 2024-11-25 20:37 Heime via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; only message in thread
From: Heime via Users list for the GNU Emacs text editor @ 2024-11-25 20:37 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


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))) )) )







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-25 20:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-25 20:37 Structuring a list to run sequence of commands Heime via Users list for the GNU Emacs text editor

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).