unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Keywords as function arguments for control flow
@ 2024-11-28 15:21 Heime via Users list for the GNU Emacs text editor
  2024-11-29  6:18 ` Tassilo Horn
  2024-11-30 11:47 ` Jean Louis
  0 siblings, 2 replies; 7+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2024-11-28 15:21 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


How cam one use function arguments that use keywords for 
applying control operations with pcase or cond?

Consider this as example

(defun cuprat (seqr)

    (if (eq seqr 'global)
          (global-whitespace-mode 1)
      (whitespace-mode 1)) )

(cuprat 'global) 





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

end of thread, other threads:[~2024-11-30 14:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-28 15:21 Keywords as function arguments for control flow Heime via Users list for the GNU Emacs text editor
2024-11-29  6:18 ` Tassilo Horn
2024-11-29 21:06   ` [External] : " Drew Adams
2024-11-29 21:26     ` Heime via Users list for the GNU Emacs text editor
2024-11-30 11:47 ` Jean Louis
2024-11-30 11:55   ` Heime via Users list for the GNU Emacs text editor
2024-11-30 14:37     ` Jean Louis

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