From 7d03d10334a1589a6a9d96affdb49da310f584e2 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 26 Aug 2019 13:46:34 +0530 Subject: Clean up ennu--post-metadata-memoized. * ennu.el (ennu--post-metadata-memoized): Combine treatment of :title and :date properties into a single clause. --- ennu.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ennu.el b/ennu.el index 76485a3..8aa2c85 100644 --- a/ennu.el +++ b/ennu.el @@ -267,9 +267,9 @@ with two arguments -- the key and the value." (ennu-plist-map-to-plist (lambda (key value) (pcase key - (:title (funcall export (first (plist-get metadata :title)))) - (:date (org-timestamp-to-time (first (plist-get metadata :date)))) - (:author (funcall export (first (plist-get metadata :author)))))) + ((or :author :title) + (funcall export (first (plist-get metadata key)))) + (:date (org-timestamp-to-time (first (plist-get metadata :date)))))) metadata)))) (defvar ennu-mandatory-metadata -- cgit v1.2.3