From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2ELnKnXWLGDUGwAA0tVLHw (envelope-from ) for ; Wed, 17 Feb 2021 08:40:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +COpJnXWLGBmfwAAB5/wlQ (envelope-from ) for ; Wed, 17 Feb 2021 08:40:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 77F71208A6 for ; Wed, 17 Feb 2021 09:40:21 +0100 (CET) Received: from localhost ([::1]:32852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCINg-0002vr-1d for larch@yhetil.org; Wed, 17 Feb 2021 03:40:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCILp-0002vh-FP for emacs-orgmode@gnu.org; Wed, 17 Feb 2021 03:38:25 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:60914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCILn-0002GR-1K for emacs-orgmode@gnu.org; Wed, 17 Feb 2021 03:38:24 -0500 X-IronPort-AV: E=Sophos;i="5.81,184,1610406000"; d="asc'?scan'208";a="493414145" Received: from cbg35-2-78-242-14-140.fbx.proxad.net (HELO set) ([78.242.14.140]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Feb 2021 09:38:19 +0100 From: Alan Schmitt To: Kyle Meyer Subject: Re: org-agenda for a day different than today In-Reply-To: <87pn0ztkao.fsf@kyleam.com> References: <87pn10t83u.fsf@m4x.org> <87pn0ztkao.fsf@kyleam.com> Date: Wed, 17 Feb 2021 09:38:17 +0100 Message-ID: <87eehft7gm.fsf@m4x.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: neutral client-ip=192.134.164.83; envelope-from=alan.schmitt@polytechnique.org; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: 77F71208A6 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0RiKWB7gpZTl --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Kyle, On 2021-02-16 23:01, Kyle Meyer writes: >> By the way, I=E2=80=99m surprised by the code of this function, as it is= defined >> as: >> >> (defun org-agenda-goto-date (span) >> "Jump to DATE in agenda." >> =E2=80=A6 >> ) >> >> and "span" is never mentioned in the function. Am I missing something? > > That does look wrong. Among other changes, 93fcfe4d3 (org-agenda.el: > Fix org-agenda-goto-date' again, 2012-08-30) switched the DATE argument > to SPAN, moving the org-read-date call out of the interactive form. > From that commit alone, I don't have a good guess at why and am > wondering if the above change was an unfinished thought that came along > with the other changes. > > Here are two threads from around that time that may be related, though I > haven't reviewed either of them: > > https://orgmode.org/list/BLU0-SMTP912FC379760EE431D3D68EBBBC0@phx.gbl/T/= #u > https://orgmode.org/list/BLU0-SMTP950E9387B34FA390C4FD9CBBBD0@phx.gbl/T/= #u > > Moving org-read-date back to the interactive form would allow lisp > callers to pass in the date, though perhaps it'd bring back some > misbehavior discussed in the above threads. I=E2=80=99ve tried this change here and it works great, thanks a lot. Looking at the code, I don=E2=80=99t see how it could cause trouble elsewhe= re (but understanding agenda code is always tricky=E2=80=A6) Should I file a bug regarding this? Best, Alan --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAmAs1fkfHGFsYW4uc2No bWl0dEBwb2x5dGVjaG5pcXVlLm9yZwAKCRAEDQo7TtLlx16xCACvJVzW5KtDaiXk jXo+s72g1dkwUSgA8Pm+SV7tO9sgqDt5/yv/dRCpXLtqi+gDg+zVmBMwc/94oE7p 87nEOrwfwib4caqvb2RHqdGK9oUP5xkSkmE2h/M59YPYGCLs5LgqxKrNPCG6a3y0 IZRhRCJi4DPzHmunDrh9i7+PWQlnF+UgV7aqnHa8zaeRF65cen9btGsAaWCSvkSA mKg1bBi5v5fmAS03/fC0KjsPo/oJPR3NwmMPMF2WnXWo+YbnGJHnkX/q+9inHrck 7kW5O2l9NBswbnGUmjkOEuHxpRw/IXNwpdiOk+WOpij+C4vmG0CXzLoLVb5sj1wz C/p8qSQa =L5A0 -----END PGP SIGNATURE----- --=-=-=--