* 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; 3+ 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] 3+ messages in thread
* Re: Structuring a list to run sequence of commands
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
2024-12-23 5:47 ` Jean Louis
0 siblings, 1 reply; 3+ messages in thread
From: Joel Reicher @ 2024-12-22 12:38 UTC (permalink / raw)
To: Heime via Users list for the GNU Emacs text editor; +Cc: Heime
Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:
> Have been hoping to grouping a sequence of commands and execute
> each one.
Isn't this just what progn does?
Regards,
- Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Structuring a list to run sequence of commands
2024-12-22 12:38 ` Joel Reicher
@ 2024-12-23 5:47 ` Jean Louis
0 siblings, 0 replies; 3+ messages in thread
From: Jean Louis @ 2024-12-23 5:47 UTC (permalink / raw)
To: Joel Reicher; +Cc: Heime via Users list for the GNU Emacs text editor, Heime
* Joel Reicher <joel.reicher@gmail.com> [2024-12-22 15:40]:
> Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
> writes:
>
> > Have been hoping to grouping a sequence of commands and execute each
> > one.
>
> Isn't this just what progn does?
This is how I do that:
(rcd-dashboard
'(rcd-notes-dashboard-header
rcd-notes-hyperscope
rcd-notes-people
rcd-notes-marketing
rcd-notes-dashboard-people-communication
rcd-notes-dashboard-hyperscope-tags
rcd-notes-dashboard-hyperscope-referencing
rcd-notes-dashboard-hyperscope-action-statuses
rcd-notes-dashboard-people-assigned-to-pending-hyperdocuments
rcd-notes-dashboard-org
rcd-notes-dashboard-admin-scales
rcd-notes-dashboard-media
rcd-notes-dashboard-www
rcd-notes-dashboard-hyperscope-maintenance
rcd-notes-dashboard-system
rcd-notes-customize
rcd-notes-dashboard-footer
rcd-notes-refresh-with-idle-timer
read-only-mode)
"RCD-notes")
(defun rcd-dashboard (list-of-functions &optional dashboard-name)
"Start RCD Dashboard and invoke LIST-OF-FUNCTIONS."
then the function do other things and then:
(mapc #'funcall list-of-functions)
--
Jean Louis
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-23 5:47 UTC | newest]
Thread overview: 3+ 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
2024-12-23 5:47 ` Jean Louis
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.