From: noa <noa@noa.pub>
To: emacs-orgmode@gnu.org
Subject: [BUG] Org-publish-find-date ignores #+DATE keyword [9.7.5 (9.7.5-eafa47 @ /usr/share/emacs/29.3/lisp/org/)]
Date: Fri, 28 Jun 2024 14:50:41 +0100 [thread overview]
Message-ID: <877ce9fa6m.fsf@baby> (raw)
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.
------------------------------------------------------------------------
When generating a sitemap from org-publish with the anti-chronological and list options set, i noticed that the order of files wasn't as i expected. I wanted the order to be in the order i specified with DATE keywords in each individual file. I modified org-publish-sitemap-default-entry to include the date as well:
(format "%s: [[file:%s][%s]]"
(format-time-string (car org-time-stamp-custom-formats) (org-publish-find-date entry project))
entry
(org-publish-find-title entry project))
All the dates shown were the mtime of the files, rather than the dates i specified with the DATE keyword in YYYY-MM-DD format. Looking at org-publish-find-date, it seems that the let binding successfully pulls the date from the file, but it looks like #1=(#("2024-05-28" 0 10 (:parent #1#))). My elisp skills aren't great so i find what this means quite difficult to understand, but the following cond clause seems to not work because (assq 'timestamp date) always returns nil.
I've tried running this with emacs -q and get the same issue, and also have updated to the version of org in elpa, and get the same issue.
Emacs : GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0)
of 2024-05-20, modified by Debian
Package: Org mode version 9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)
--
~noa (https://noa.pub)
next reply other threads:[~2024-07-08 14:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-28 13:50 noa [this message]
2024-07-08 17:35 ` [BUG] Org-publish-find-date ignores #+DATE keyword [9.7.5 (9.7.5-eafa47 @ /usr/share/emacs/29.3/lisp/org/)] Ihor Radchenko
2024-08-12 6:21 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877ce9fa6m.fsf@baby \
--to=noa@noa.pub \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).