all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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
  2024-12-22 12:38 ` Joel Reicher
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

end of thread, other threads:[~2024-12-22 12:38 UTC | newest]

Thread overview: 2+ messages (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
2024-12-22 12:38 ` Joel Reicher

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.