Subject: bug#49116: 28.0.50; Why `bound-and-true-p' is not working in lexical binding?

From: Michael Heerdegen <[email-masked]>
Date: Wed, 23 Jun 2021 01:00:11 +0200

Jean Louis <[email-masked]> writes:

> (defun verify-direction (timestamp &optional direction)
>   (cond ((bound-and-true-p direction) (message "OK"))))
>
> (verify-direction "10:00" t) ⇒ nil

BTW, if your original intention was to check whether a function argument
has been specified in a function call (including nil) -- optional
arguments in `cl-defun' support such a feature.

Michael.