[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[BUG] wrong date returned by org-read-date in table formula [9.5.2 (rele
From: |
Steven Bagley |
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 |
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 the
table. Last Tuesday is not Jan 1, 2022.
| date | (0 55 17 1 1 2022 6 nil -28800) |
#+TBLFM: @1$2='(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.
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/)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [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/)],
Steven Bagley <=