Subject: bug#64344: [PATCH] Make calculator work with customized mode-line

From: Eli Zaretskii <[email-masked]>
Date: Thu, 29 Jun 2023 12:28:28 +0300

> From: Andreas Schwab <[email-masked]>
> Cc: john muhl <[email-masked]>,  [email-masked]
> Date: Thu, 29 Jun 2023 10:22:02 +0200
> 
> On Jun 29 2023, Eli Zaretskii wrote:
> 
> >> -               (and bx (or (not lh) (> lh 0))))
> >> +               (and bx (or (not lh) (> (if (listp lh) (cdr lh) lh) 0))))
> >                                                ^^^^^
> > Shouldn't that be 'consp' instead?  'listp' returns non-nil for nil
> > argument.
> 
> lh cannot be nil here, but it wouldn't make a difference anyway, since
> (cdr nil) returns nil.

I prefer not to have, nor force others, to analyze code in order to
ensure it's correct.