From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman 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:07:54 +0200 Message-ID: <87wn9fsxz9.fsf@rub.de> References: <87r0zow7ty.fsf@codeisgreat.org> <875yh0t1cw.fsf@gmx.net> <834jwjx641.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17654"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 58283@debbugs.gnu.org, pankaj@codeisgreat.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 12:09:10 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 1oferO-0004Pe-G5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 12:09:10 +0200 Original-Received: from localhost ([::1]:42382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oferN-00067t-3t for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 06:09:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oferG-00067Q-9X for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 06:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53459) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oferG-000814-27 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 06:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oferF-0000S0-Su for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 06:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 10:09: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.16648780841665 (code B ref 58283); Tue, 04 Oct 2022 10:09:01 +0000 Original-Received: (at 58283) by debbugs.gnu.org; 4 Oct 2022 10:08:04 +0000 Original-Received: from localhost ([127.0.0.1]:52537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofeqJ-0000Qn-QX for submit@debbugs.gnu.org; Tue, 04 Oct 2022 06:08:04 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:54531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofeqH-0000QI-OO for 58283@debbugs.gnu.org; Tue, 04 Oct 2022 06:08:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1664878075; bh=f25lL9E5KolJTsbZe9zetRLYjeoLMQvgelxkMCVUDYY=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Aagho57N7GvxDpfyc+QFsFcC4BFHYLQww1OtS+aoHXqPDlTBsBRQ0yDEoPhYTod9K u3QOQbyXLvVCOzx0SqSlKrsY3Cev40Vzuc7SFcTOUSf6LglB3vpf3yfoRDZEJqgY4I 9Zo1rof+yBnti1tSv4Z9ybd5SIT5AOb5+vfJuWd0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.38.213]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MfpSl-1p8gza1AIT-00gFPp; Tue, 04 Oct 2022 12:07:55 +0200 In-Reply-To: <834jwjx641.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 04 Oct 2022 12:58:38 +0300") X-Provags-ID: V03:K1:ZIBWTfFu2S1ioofSUuJsfjbYKd1EZLqcILXmZxXhQo5OwolYb7d 0bNqveq4EDTx2BflX30EXBVFV9glNi69+iyQXVX4W5+0Qh9OfSVLgZes2Ycs8YrhIIHzFpy NRMNTj/XCPh7LNIztVrXhrpl5NalzMV3FF19Ko0KLmtHO2MRwe7GOdA2dDt9u/xK35JV06Y q0PHKVPIkLWarIyn76FvQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:13t3bdBOIkE=:7ZVBJIGQumTtI6tjoAJJLD vGMqpmKN8bv6C2sgMD4KMVVgc167jCQIJA+TSG41qfhuqYCd8swk0WO0dTYDz/M4Qk0e8wZwd /FjrRvlu3XhAcDiwdkDBMiShjqDQTlon21rzsI8fZV9mq/q5iKqN57b7BiB+MqPwNz5z05Gwr xUGxQwvZmpUXTa0gGiDEIFcdpBhB8l3FOvDqi4V5tHzoSx5mx4bXTSh2a1UHWEOwmgf+QtphY yJhJZGG63MYBpW897u3S52f5y675eMxl1MhUib9caivku839z1k8BSWC8mprJmkgu3ChyT+5b k1kqiak+B3Fbw0+V0tsvzzHCh60dbigeQ9nrp1Hj6NVPO92bzXSTUPortegR1yodkd+M5O9dH 0dsH1akPLvSDoZ3lJSq0PZuQjw0NAVSVvapwN5TLeLihI0pYboAYk1FGxEeWslk+PAwV+PUO+ 5A2sn1qx/5o6ubYYSFgUQTQxfJSDRoe6j8BVEAynZXm0NvJIFUMVWIGSxhZdOuyiTtNGxI8k4 WX5a9GhL0BbLZEanPB244qqk8C+Hfc9JPSXZ02j4JtaH3g932J1YCMs7YI1ACjnEFvD5LAvTB YsgJVMOh2pHTpRBiOH00jp5cxWkb5wRRdPeI6yRVRKQa98qqv+9Og3mpZSayaajw4xdK/dwVZ kn7WaJ6Q5ddaQeiBIinM13a8PbHrMsTFBhR+bGN9mQN7YRVdkQ9nPWs91GVHuT5BFIShIuz8D QopPEq7989osKi3g8z0MJiMEzJJZ3zyuBWyM5gzsMSBVDcRy3IvvBXhEAw6rCUAT+Lk5nS8G 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:244381 Archived-At: On Tue, 04 Oct 2022 12:58:38 +0300 Eli Zaretskii wrote: >> 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 >> > >> > =3D> >> > >> > 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\2= 05.\0\211\310\246\305U?\206.\0\211\311\246\305U\262\1\2037..." >> > [calendar-read-sexp "Year (>0)" #f(compiled-function (x) #> > -0x1433d194a6bf3cb2>) calendar-current-date 2 0 abs 4 100 400 366 365= "Day >> > number (+/- 1-%d)" make-closure #f(compiled-function (x) #> > 0x79fd4d90378a2b>) 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. Seems reasonable (though displaying that default value in the prompt ("Day number (+/- 1-365) (default 277): ") may make innocent users of the command wonder about it; though maybe that's not so bad...). > Please see if the latest master solves this, and thanks. Works for me. Steve Berman