unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* function with multiple symbol instructions
@ 2024-08-27 13:16 Heime
  2024-08-27 13:34 ` uzibalqa
  0 siblings, 1 reply; 2+ messages in thread
From: Heime @ 2024-08-27 13:16 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

I want a function to have the capability of passing multiple
symbol instructions in its argument.  I am using mapc to parse
the symbols.  Is this a good way as implementation goes ?


(defun marsot (&optional actn-list)
  "Add marsot path and requirements."

  ;; Check each symbol in actm-list
  (mapc (lambda (actn)
          (cond ( (eq actn 'armg)
	            (add-to-list 'load-path "~/Opstk/bin/marsot"))

                ( (eq actn 'go)
	            (require 'marsot)
	            (marsot-start))

	        (t  (message "Unknown ACTN value: %s" actn))))
	actn-list)))





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-27 13:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-27 13:16 function with multiple symbol instructions Heime
2024-08-27 13:34 ` uzibalqa

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