On 2022-01-01 18:02, Steven Bagley wrote: > 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.
Fixed, by ‘c0d629b5b’ on main. org-read-date-get-relative: Assure case-insensitive weekday matching * lisp/org.el (org-read-date-get-relative): Bind `case-fold-search' to non-nil when matching weekdays. This is to avoid breakage for non-default value of `case-fold-search'. Thanks, -- Jacob S. Gordon [email protected] Please don’t send me HTML emails or MS Office/Apple iWork documents. https://useplaintext.email/#etiquette https://www.fsf.org/campaigns/opendocument
