From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64344: [PATCH] Make calculator work with customized mode-line Date: Thu, 29 Jun 2023 21:22:45 +0300 Message-ID: <838rc2t9fu.fsf@gnu.org> References: <87jzvmp9m8.fsf@pub.pink> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1798"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64344-done@debbugs.gnu.org To: john muhl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 29 20:23:28 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 1qEwIh-0000Fx-IQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Jun 2023 20:23:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEwIM-000102-6M; Thu, 29 Jun 2023 14:23:06 -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 1qEwII-0000z2-Nw for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2023 14:23:03 -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 1qEwII-0003X5-FY for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2023 14:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qEwIH-0002ZC-Uy for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2023 14:23:01 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Jun 2023 18:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 64344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 64344@debbugs.gnu.org, eliz@gnu.org, jm@pub.pink Original-Received: via spool by 64344-done@debbugs.gnu.org id=D64344.16880629509811 (code D ref 64344); Thu, 29 Jun 2023 18:23:01 +0000 Original-Received: (at 64344-done) by debbugs.gnu.org; 29 Jun 2023 18:22:30 +0000 Original-Received: from localhost ([127.0.0.1]:54002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEwHm-0002YA-7q for submit@debbugs.gnu.org; Thu, 29 Jun 2023 14:22:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEwHi-0002Xt-Ee for 64344-done@debbugs.gnu.org; Thu, 29 Jun 2023 14:22:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEwHc-0003QL-2c; Thu, 29 Jun 2023 14:22:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=IMgFwAQxQPZqCfvaj/v52rHANyRrjqUz38so5BtZxBQ=; b=afZhu6PzoGK1dkxxqDFx qN8uaKlOr2F/BW1glIQd/rzo9pqLAmS2AzlUf4h8Xx6z9RUwUcJxSar7APwgXs+hcuLwYik0xz3nR IQjTWX9ULoqjZ6d9i5dNDvjL1tzs372Ch+MQomK3ED1WtMFi+iPbZNK2f65R4lc+RB49i7byZgupY ioihORId1IYjD0BRT+JY/gPlQb4asEW96f9/1iEM03lyKK4gppvA9W3Lx+I2G7+UdbWfaH1VWo3iR ywbu9ATx8m8FhhA7w+9xeK13Yw10WdDVaO1UdJEXapst9BdaS1ijHUoYVSWHMw7KAy/UYUnXMwOe2 S0DA+vzRs8Y4KQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEwHZ-0003r2-O1; Thu, 29 Jun 2023 14:22:19 -0400 In-Reply-To: <87jzvmp9m8.fsf@pub.pink> (message from john muhl on Thu, 29 Jun 2023 10:12:06 -0500) 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:264288 Archived-At: > From: john muhl > Cc: 64344@debbugs.gnu.org > Date: Thu, 29 Jun 2023 10:12:06 -0500 > > > Shouldn't that be 'consp' instead? 'listp' returns non-nil for nil > > argument. > > I’m not expert enough to say more than that either way works to fix the > issue. Originally I did the ‘(cdr lh)’ unconditionally and got an error > mentioning ‘listp’ so I just used that when I added the condition; if it > had said ‘conps’ I would have used that. > > Here is the patch with ‘consp’ instead. Thanks. That still uses 'listp', so I fixed that manually. This is now installed on the emacs-29 branch; closing the bug.