unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using variables to set defaults to parameters
@ 2022-02-03 14:55 goncholden via Users list for the GNU Emacs text editor
  2022-02-03 16:24 ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 4+ messages in thread
From: goncholden via Users list for the GNU Emacs text editor @ 2022-02-03 14:55 UTC (permalink / raw)
  To: goncholden via Users list for the GNU Emacs text editor

I am currently defining a minor-mode with default parameters, but want to pass defaulted variables
instead. What is the way to do this, using setq ?

(define-minor-mode rich-minor-mode
"Brief description" nil "" nil

then changed to

(setq initval nil)
(setq mdline-indic "")
(setq other nil)

(define-minor-mode rich-minor-mode
"Brief description" initval mdline-indic other

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

end of thread, other threads:[~2022-02-03 18:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-03 14:55 Using variables to set defaults to parameters goncholden via Users list for the GNU Emacs text editor
2022-02-03 16:24 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-02-03 18:20   ` goncholden
2022-02-03 18:43     ` goncholden

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