emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] battery.el, upower fixes


From: Evgeny Zajcev
Subject: Re: [PATCH] battery.el, upower fixes
Date: Wed, 29 Jan 2020 10:05:56 +0300

Need some assistance guys.

I want to write code such as:

  (defcustom battery-status-function
    (cond ((battery-upower-usable-p)
           #'battery-upower)
    ....)

  (defun battery-upower-usable-p ()
     ...)

However such code triggers error:

   cond: Symbol’s function definition is void: battery-upower-usable-p

On fresh Emacs start and M-x battery RET

What is the best approach to write defcustoms with forward references to functions?

Thanks

--
lg

reply via email to

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