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#58283: 29.0.50; calendar-goto-day-of-year => wrong-type-argument numberp Date: Tue, 04 Oct 2022 12:58:38 +0300 Message-ID: <834jwjx641.fsf@gnu.org> References: <87r0zow7ty.fsf@codeisgreat.org> <875yh0t1cw.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5780"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58283@debbugs.gnu.org, pankaj@codeisgreat.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 11:59:09 2022 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 1ofehg-0001Lq-J3 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 11:59:08 +0200 Original-Received: from localhost ([::1]:50112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofehf-0002vl-LL for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 05:59:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofeha-0002vY-99 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 05:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofeha-0006YC-0j for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 05:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofehZ-0000Bb-KA for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 05:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 09:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58283 X-GNU-PR-Package: emacs Original-Received: via spool by 58283-submit@debbugs.gnu.org id=B58283.1664877530687 (code B ref 58283); Tue, 04 Oct 2022 09:59:01 +0000 Original-Received: (at 58283) by debbugs.gnu.org; 4 Oct 2022 09:58:50 +0000 Original-Received: from localhost ([127.0.0.1]:52517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofehN-0000B0-Ow for submit@debbugs.gnu.org; Tue, 04 Oct 2022 05:58:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofehM-0000Ao-4A for 58283@debbugs.gnu.org; Tue, 04 Oct 2022 05:58:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofehG-0006VT-QR; Tue, 04 Oct 2022 05:58:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=UEZsRuI1lJucq7w1TQ6J1JO8dND7ZkP9tEHmFx+CTWo=; b=r3EVZnjCDXbh thDAvTkJV9al9YmVsycxwS8yPP+uhGxKY6wnMlc7utFrsiMGrMg8PQph9Km1P12MdYcw+NBcxGtrU YE2A7Z7/v7biF6W8G3JMcHulEUewVQZpv0S89R6+J8dA3lb0V9EZCB/qf67yIbBoBi/hiJKl35RtI MIqnAZwk8Hxuh6JifZHUeEg3ScdmtZ5Q008+nBSTy92Yrz3fGeZGczeGNIvRV+YY0SHf2IjaoiLhQ zMfgxZk/NBfFs5rpDiOmdZ8JC5EhMKeDGHLS1CAhAQqoOja3nJT+5QFBP+dDb9rKnFqCzdS3aSujl q58bUeeIiOtAEzXpt2uI9A==; Original-Received: from [87.69.77.57] (port=2808 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 1ofehG-00030z-6v; Tue, 04 Oct 2022 05:58:42 -0400 In-Reply-To: <875yh0t1cw.fsf@gmx.net> (message from Stephen Berman on Tue, 04 Oct 2022 10:54:55 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:244378 Archived-At: > Cc: 58283@debbugs.gnu.org > From: Stephen Berman > Date: Tue, 04 Oct 2022 10:54:55 +0200 > > On Tue, 04 Oct 2022 09:36:49 +0530 Pankaj Jangid wrote: > > > Steps: > > > > 1. emacs -Q > > 2. M-x calendar RET g D RET RET > > > > => > > > > Debugger entered--Lisp error: (wrong-type-argument numberp nil) > > abs(nil) > > #f(compiled-function (x) #)(nil) > > calendar-read-sexp("Day number (+/- 1-%d)" #f(compiled-function (x) #) nil 365) > > byte-code("\300\301\302\303 \304\18\262\1#\211\211\305W\203\30\0\306\1!S\262\1\211\307\246\305U\205.\0\211\310\246\305U?\206.\0\211\311\246\305U\262\1\2037..." [calendar-read-sexp "Year (>0)" #f(compiled-function (x) #) calendar-current-date 2 0 abs 4 100 400 366 365 "Day number (+/- 1-%d)" make-closure #f(compiled-function (x) #) nil] 7) > > call-interactively(calendar-goto-day-of-year nil nil) > > command-execute(calendar-goto-day-of-year) > > The value of the `default' argument in the calendar-read-sexp call here > has to be a number instead of nil. > But what number? 1, 365, (random 365), ...? I decided that today's day number is a good default. Please see if the latest master solves this, and thanks.