all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] Org-publish-find-date ignores #+DATE keyword [9.7.5 (9.7.5-eafa47 @ /usr/share/emacs/29.3/lisp/org/)]
@ 2024-06-28 13:50 noa
  2024-07-08 17:35 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: noa @ 2024-06-28 13:50 UTC (permalink / raw)
  To: emacs-orgmode



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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-12  6:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-28 13:50 [BUG] Org-publish-find-date ignores #+DATE keyword [9.7.5 (9.7.5-eafa47 @ /usr/share/emacs/29.3/lisp/org/)] noa
2024-07-08 17:35 ` Ihor Radchenko
2024-08-12  6:21   ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.