From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#64344: [PATCH] Make calculator work with customized mode-line Date: Thu, 29 Jun 2023 11:43:59 +0200 Message-ID: References: <87jzvn4f4e.fsf@pub.pink> <83jzvmu2r1.fsf@gnu.org> <83fs6aty6b.fsf@gnu.org> <83edlutxpf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20002"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: jm@pub.pink, 64344@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 29 11:45:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qEoDD-0004y1-BU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Jun 2023 11:45:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEoD2-0000vN-1v; Thu, 29 Jun 2023 05:45:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEoD0-0000um-KQ for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2023 05:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEoD0-0004CE-BI for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2023 05:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qEoD0-0002ci-7q for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2023 05:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Jun 2023 09:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 64344-submit@debbugs.gnu.org id=B64344.16880318489971 (code B ref 64344); Thu, 29 Jun 2023 09:45:02 +0000 Original-Received: (at 64344) by debbugs.gnu.org; 29 Jun 2023 09:44:08 +0000 Original-Received: from localhost ([127.0.0.1]:52287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEoC7-0002al-OJ for submit@debbugs.gnu.org; Thu, 29 Jun 2023 05:44:08 -0400 Original-Received: from smtp-out2.suse.de ([195.135.220.29]:39004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEoC4-0002a9-W7 for 64344@debbugs.gnu.org; Thu, 29 Jun 2023 05:44:06 -0400 Original-Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 897081F8AF; Thu, 29 Jun 2023 09:43:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1688031839; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WZDYelobxIDgrpfjRkEEAWDbrviTRfwTbBZdrjOlHQo=; b=iLWxIhO+DUgp6Vy8C7siTYOARzXxdyqqiw88tPM0tdWvAQZEXuXlbDJ2rVoUWwWDy9oRWT oGmaNfZY8PNBvkyQXlKNLuyswLW0ggg/7Dg8IZZdSj+bEg1R2TAVZEk5MKGmLZHE4Yz4QG kYBxEm+coOloBk9Ej+vwg1ElxDRMA2s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1688031839; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WZDYelobxIDgrpfjRkEEAWDbrviTRfwTbBZdrjOlHQo=; b=HhzPt+zdLEWzC70ZYCliouRXOAhkAA65Tailf/3fDtxvpCoMr4xVykIlDROX6u0acEPzn2 B6qKesj0FjLdbKAw== Original-Received: from hawking.nue2.suse.org (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id 7A40F2C141; Thu, 29 Jun 2023 09:43:59 +0000 (UTC) Original-Received: by hawking.nue2.suse.org (Postfix, from userid 17005) id 672204A03B6; Thu, 29 Jun 2023 11:43:59 +0200 (CEST) In-Reply-To: <83edlutxpf.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 29 Jun 2023 12:38:36 +0300") X-Yow: .. does your DRESSING ROOM have enough ASPARAGUS? X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264274 Archived-At: On Jun 29 2023, Eli Zaretskii wrote: >> From: Andreas Schwab >> Cc: jm@pub.pink, 64344@debbugs.gnu.org >> Date: Thu, 29 Jun 2023 11:31:06 +0200 >> >> On Jun 29 2023, Eli Zaretskii wrote: >> >> >> From: Andreas Schwab >> >> Cc: john muhl , 64344@debbugs.gnu.org >> >> 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. >> >> Then you need to add a comment, not change correct code. > > There's no reason whatsoever to comment correct code. Ok, so nothing needs to change. -- 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."