help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making alist that executes multiple commands


From: Heime
Subject: Re: Making alist that executes multiple commands
Date: Mon, 25 Nov 2024 17:59:22 +0000

I get error when calling (marnap '(armg go))

That is I get message "ACTM Unrecognised: 'armg"



(defun marnap (&optional actm-service)

  (let ( (lookup-alist '((armg ((add-to-list 'load-path (marnap-sec-fpln-waypt 
"NAPLN"))
                                (require 'napyon)))

                         (go   ((napyon 'go))) )) )

    (dolist (actm actm-service)
      (let ((fnlist (cdr (assoc actm lookup-alist))))
        (while fnlist
          (dolist (cmd fnlist)
            (if (functionp (car cmd))
                (apply (car cmd) (cdr cmd))
              (message "ACTM Unrecognised: '%s\n" actm)))))) ))






reply via email to

[Prev in Thread] Current Thread [Next in Thread]