emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntax sugar question


From: Stefan Monnier
Subject: Re: Syntax sugar question
Date: Sun, 11 Apr 2021 08:59:33 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Why the minor modes variables are only t or nil?

Because that's how they've been defined.  There's nothing magical about
minor modes, so you can definitely define something that looks and acts
very much like a minor mode but doesn't limit itself to boolean values.

Whether the `define-minor-mode` macro should offer a way to do that is
hence a UI design question.  I can see the benefit of what you propose,
but I also see the benefit of sticking to this simple model.

[ I don't understand the choice of "Subject:" here, I must say.
  What do minor modes have to do with syntactic sugar?  ]


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]