emacs-devel
[Top][All Lists]
Advanced

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

Re: Always-true predicate?


From: Lars Ingebrigtsen
Subject: Re: Always-true predicate?
Date: Fri, 19 Feb 2021 15:05:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> But my main gripe is about options whose values can only be functions,
> and nothing else.  No one will convince me that Emacs developers
> cannot come up with meaningful values that aren't functions for some
> option.

Yeah, that's true.  Having nil/t values is often handy.  I guess the
only reason for not adding those is laziness.  I.e., every
implementation of these options end up looking like

(pcase foo-option
  ('nil nil)
  ('t t)
  (_ (funcall foo-option)))

or something.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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