[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Structuring a list to run sequence of commands
From: |
Jean Louis |
Subject: |
Re: Structuring a list to run sequence of commands |
Date: |
Mon, 23 Dec 2024 08:47:16 +0300 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
* 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