From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mGr3FN0H0WEEBwAAgWs5BA (envelope-from ) for ; Sun, 02 Jan 2022 03:03:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WAZTEt0H0WESvQAA9RJhRA (envelope-from ) for ; Sun, 02 Jan 2022 03:03:09 +0100 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 52D3667C2 for ; Sun, 2 Jan 2022 03:03:08 +0100 (CET) Received: from localhost ([::1]:41018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3qDD-0006xV-As for larch@yhetil.org; Sat, 01 Jan 2022 21:03:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3qCH-0006xN-U0 for emacs-orgmode@gnu.org; Sat, 01 Jan 2022 21:02:10 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:58943) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3qCF-0008Po-UW for emacs-orgmode@gnu.org; Sat, 01 Jan 2022 21:02:09 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A86193200987 for ; Sat, 1 Jan 2022 21:02:02 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 01 Jan 2022 21:02:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=fm2; bh=I/GjQggyqTfoYdIkor1mvUbYok 0AsHsIfWe420O/TqM=; b=lFTtfJOpXdq6cjks7PqZ+Igx7YOeVEbYvMMiG8MqYm eQCae3eBU5aMCn94dXtfVnM8/hfmODx7WTbv0GKPzala5b2eCGenUc2A16vpXvZ1 MiR78ULjRrBBV+7nl1ybLokj2SQ/HvH+0fyx19dUI9ol0N1LinCUYGdIO22onbYR 5uCUGBuFYA0NQGujvS6cfyl4wgRsZFxDp5aXOpN15LwrraER6JM+UU8bD1Y2/cOx PvetSNw96XeMkVg1SSuGwVjhgMu5GcxIgBGhV3CcB7546BvhQxMrNUNpRv5H9s+Y ++k3PsVNB5OdHOzGKl2pqCfNdjiG+078bDDjOVdiba5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=I/GjQg gyqTfoYdIkor1mvUbYok0AsHsIfWe420O/TqM=; b=AqnR6UQukc5VQHDS1O8jlX xTcKkmeRobj545F+cCjmCn/6zW5jMMnE+nQXJmSQCnDTUdDGyVNjlylvWX5LyEKm ZRfVYWMGNyHMcgVzMnEl6zBTi6RW9zBKbb1JDxj1+/WEbdLKIGBJ+GGx2odbOMH9 jKKfyZQ86DpyImKDvrUVFyaptOrs4NP3rsrvMjxWIXJ5HspY6i5KP/ZD+KNqBi4k Wg60fdEGN93H4E/ywBlhtok/hmLzQFHKj52Ay8uTRFklP0jttHXuTXLN0OHsNFCf ofuCID7ONPTnyNzD/JNaryltUskHxo1ofxWRA8lqhV/B//oBfHjQPMecYQIFR8Yw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddvkedggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffokfggtgfgsehtqhhmtd ertddtnecuhfhrohhmpefuthgvvhgvnhcuuegrghhlvgihuceoshhtvghvvghnsggrghhl vgihsehfrghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeffieeitddvieegud euuefftdfgjeevhffhleefkedugeehleekveehveetffduhfenucffohhmrghinhepohhr ghhmohguvgdrohhrghdpvghmrggtshdrrghpphenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehsthgvvhgvnhgsrghglhgvhiesfhgrshhtmhgr ihhlrdhfmh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 1 Jan 2022 21:02:01 -0500 (EST) From: Steven Bagley To: emacs-orgmode@gnu.org Subject: [BUG] wrong date returned by org-read-date in table formula [9.5.2 (release_9.5.2-3-geb9f34 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)] Date: Sat, 01 Jan 2022 18:01:59 -0800 X-Mailer: MailMate (1.14r5853) Message-ID: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.21; envelope-from=stevenbagley@fastmail.fm; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641088989; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=I/GjQggyqTfoYdIkor1mvUbYok0AsHsIfWe420O/TqM=; b=eL1+8tWQT10t0pAnfuhVNEt3YnaIkTcULIuYSw1u6b8IzDjh/j7+8UvDxz+bNBPP1w10Ni 3MfG03JLxyySBtaNMg6LN22Koz1stPCQuiI4TN9KK53/K3WaUpJXQ7zvqcsGUoI6R37lw3 3uvxUUzvpQ+IOd8y1q1pTHW7TII+dnPao1o7DfCk9CqxUTAiY6uRTk/vLIHQ8OXShzZtWc mhSPqzSZ7xcK1SzR32TUqEUT0yinDPtWtVh7xM0xgilVue1LOC5i3az3yTJsJJvGgRA8BC X+6Yj1A2HwmqszNi0yNxs0MtrPsOanheHd8G1wamFyFxfvuQDj507bRJK/Abjw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641088989; a=rsa-sha256; cv=none; b=dS7FMmVovuz5h8tW0rQFwAC+oxYzMpipKX+Ixit2ATOnE+u3nVqF6Kbp9UBW9R10t28EKx WZ9en5haE3gmG4S6TgziISVeNV4PJfKPF5MsBvEyF3djfIENAa0uAfTV65dy/VkL8gVGhy CWgydcnFV8fdHnqhB6c8Sjd9RgRkckQB0SavpNmdw4XjchfAEYRdk14QMptpOc7Fv7oQNL 6qz13o9g0WIbBl3Msz12iipfdj08YpV1YDv4LMtm9nnvy/i/lFxAm9KJuNICd5cxXi/G+S tnrWBuLDIfXwGO7dzkLkY78KsGxPdo5tESda6Y/Ecq9Bhak2NB6/BeaU0Ib2JA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fastmail.fm header.s=fm2 header.b=lFTtfJOp; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=AqnR6UQu; dmarc=pass (policy=none) header.from=fastmail.fm; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.88 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.fm header.s=fm2 header.b=lFTtfJOp; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=AqnR6UQu; dmarc=pass (policy=none) header.from=fastmail.fm; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 52D3667C2 X-Spam-Score: -5.88 X-Migadu-Scanner: scn1.migadu.com X-TUID: xbVWvWkn3Djd Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ The following example, reading from "-Tue", inserts the wrong date into t= he table. Last Tuesday is not Jan 1, 2022. | date | (0 55 17 1 1 2022 6 nil -28800) | #+TBLFM: @1$2=3D'(format "%s" (decode-time (org-read-date nil t "-Tue")))= However, using "-tue" (all lowercase) instead does work correctly. The problem is that org-table-eval-formula binds case-fold-search to nil,= which breaks the regex search near the top of org-read-date-get-relative= =2E Emacs : GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin21.2.0, NS appkit= -2113.20 Version 12.1 (Build 21C52)) of 2022-01-01 Package: Org mode version 9.5.2 (release_9.5.2-3-geb9f34 @ /Applications/= Emacs.app/Contents/Resources/lisp/org/)