[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64344: [PATCH] Make calculator work with customized mode-line
From: |
Andreas Schwab |
Subject: |
bug#64344: [PATCH] Make calculator work with customized mode-line |
Date: |
Thu, 29 Jun 2023 10:22:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Jun 29 2023, Eli Zaretskii wrote:
>> diff --git a/lisp/calculator.el b/lisp/calculator.el
>> index bf2ac9b6215..6af6464d2f4 100644
>> --- a/lisp/calculator.el
>> +++ b/lisp/calculator.el
>> @@ -746,7 +746,7 @@ calculator-need-3-lines
>> ;; use 3 lines
>> (let* ((bx (face-attribute 'mode-line :box))
>> (lh (plist-get bx :line-width)))
>> - (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.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
bug#64344: [PATCH] Make calculator work with customized mode-line, Stephen Berman, 2023/06/29
bug#64344: [PATCH] Make calculator work with customized mode-line, john muhl, 2023/06/29