From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#61460: 30.0.50; Calendar shows eclipse for quarter moon Date: Mon, 13 Feb 2023 04:25:13 +0100 Message-ID: <87sffab61y.fsf@web.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4556"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 61460@debbugs.gnu.org To: Ulrich =?UTF-8?Q?M=C3=BCller?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 13 04:26:23 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 1pRPTy-0000vD-82 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Feb 2023 04:26:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRPTl-0000Un-1w; Sun, 12 Feb 2023 22:26:09 -0500 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 1pRPTj-0000Tq-11 for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 22:26:07 -0500 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 1pRPTe-0004DI-Vg for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 22:26:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRPTe-0007Bu-SP for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 22:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Feb 2023 03:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61460 X-GNU-PR-Package: emacs Original-Received: via spool by 61460-submit@debbugs.gnu.org id=B61460.167625874227598 (code B ref 61460); Mon, 13 Feb 2023 03:26:02 +0000 Original-Received: (at 61460) by debbugs.gnu.org; 13 Feb 2023 03:25:42 +0000 Original-Received: from localhost ([127.0.0.1]:47273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRPTJ-0007B3-RX for submit@debbugs.gnu.org; Sun, 12 Feb 2023 22:25:42 -0500 Original-Received: from mout.web.de ([212.227.17.11]:51535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRPTH-0007Ac-CZ for 61460@debbugs.gnu.org; Sun, 12 Feb 2023 22:25:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1676258715; bh=RFxFRp4FEE6kGJKtclTP+x4+DGeM4vvEvAfh+aX6JuU=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=By3794VxLo11F7119QX+FdbRfWcPyG76JPhgFwuiY8/fElaxXuuNCsDSw/naKEabA VZdC0W2uATRXTudArFjK/roUNVOHuNRVhdvZlf6t7YUMnWq6yzoDaOuKG0wZ7iRf/f OOVQ261kXrxB0ePU7OfC6HjqI6aUwUgXsaPAEnt3EcWnoaD//YibB5j1a3ptJjOSkP 5UYTl4RA3MwwAE6NaIpgPQqk+CJFYeogibIx3+D2VKHGsKDcF7QZIrYg3EqFlfBaJD iL+PVwaOWzSxvEcdePvkBTsEQgjL2JF1flXsH8aptM9y5jrkEHDtoOSzeFlSu2BRy6 5qHBcoZYXo02g== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([84.59.210.57]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MUlDP-1p0loJ3qyX-00QrAK; Mon, 13 Feb 2023 04:25:14 +0100 In-Reply-To: ("Ulrich =?UTF-8?Q?M=C3=BCller?="'s message of "Sun, 12 Feb 2023 21:07:09 +0100") X-Provags-ID: V03:K1:D6qq+2pp9yOOMM/3xF6VsoE9Z2Mdj4/1PKoUDxDr2fmOXvhUXVz ZNAQ4NQrnI1KFMBO+JuOM9uVqgw+nkhPed/UcXXyxOBFQ0r73F930goWW73J4rxf6r0w7ph w5L2br8EmU6jM84NbgBD/G0gzPsW33IqX9FRSrt+GhgabXpbFcVPOrSf/NAWtVLDNOz7ati IuPZbAYQUB0lWNN3fZXpw== UI-OutboundReport: notjunk:1;M01:P0:KqQoGfPa4dM=;PcF6L7YJuxYhprWFIwOmEJ0xRcO PrG3Ur64gQz9WsJJpUv1iZ7kr+MBT3mjsfUNbD+3U8bZbGiUQMR1bbo6si0rUTSiXyOyNTgu4 GcgjpHES3ddMGEKSyAU3XSag9/PdzUdVzjqv+qY+ctg7nPDMbcVCOOmLZzHU/kZFn9aPmTMi3 M5Azc0qANyrxAbfcfmsoSfaxZnftuW/GMdQMUL8lpIO/DBOe5IUylb/IR42wDJbZxHdZk1rQO /8x7ZgiGB57SC0h1b6x4YHFun5RaMgjDU1JN9wvH1CRBCO1nNmG2zRkCCEJnedbVRUfdRGLG5 CNiol4MOu+xQ2TYTvW47HIMDSnFpAMug42rGX/VDouWx8jMj2dUu5sXIeSiJUFAuIS4+U47NU 2Le10M4Lh3UDKhYT5Id8qG4rAXkwZZiib1NFislY6WQEVLdx2mACgQeDX/i0R+OQt282AT1br EXlw2odBX/xVA6e9CgcjrUINJpiGzcf825NH/fJVkH6uAhVtk/0ZTgr9TJyxmPWuDD8pkL0w7 9ksdv2ucuvotqsjwTfsEzgrqishOY/Q0/oq3VJqwvYAYVyTQaA1vnyepoBzeYCuWh184px2Nv eRKjgGFdQQoHOjYKIXtfnBWThSSb6aRtDwcywf7fyVoQ30tv7fBWnPTxfr2F4wUE83lvS0GIl QW8jlzKmqbAnsfqoI9lL5bQ17rjGOYCUP2sSl1y47iaRoxipPCnFdtd/tsd4+NnIpZ+xw7fYW kSo8djhzczg5h4dRdq6B1lNi9CqNt92lS5ARbajM8U55OCyM06Jhyu9wEElrykauev98zOWf 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:255456 Archived-At: Ulrich M=C3=BCller writes: > @@ -161,7 +161,9 @@ remainder mod 4 gives the phase: 0 new moon, 1 first = quarter, 2 full moon, > (phase-name (cond ((=3D phase 0) "Solar") > ((=3D phase 2) "Lunar") > (t "")))) > - (cond ((< moon-lat 2.42600766e-1) > + (cond ((string=3D phase-name "") > + "") > + ((< moon-lat 2.42600766e-1) > (concat "** " phase-name " Eclipse **")) > ((< moon-lat 0.37) > (concat "** " phase-name " Eclipse possible **")) Sorry if I am misunderstanding, but is this good enough? Then I don't understand. This doesn't go specifically to you only. What I understand is: there are two conditions that have to be met at the same time, and these are more or less independent over time: (1) the latitude of the moon has to be smaller than a certain angle, and (2) it has to be new moon or full moon. Correct? My questions: (1) AFAIU, the "phase name" is derived from one of four values of the moon "phase". Is this really good enough to decide whether it is new moon or full moon? AFAIU the four moon phases all have the same length. So AFAIU the test you added is not strong enough, we must first test whether it is full moon or new moon, only at these days can an eclipse happen, and only for these exact dates we need to check the moon's latitude for whether it is small enough for an eclipse. (2) https://en.wikipedia.org/wiki/Lunar_node tells that the limit for the longitude of the moon is different for lunar vs. solar eclipses. The same will be the case when we test the latitude. The test we currently use doesn't reflect that. Should it? Thanks, Michael.