Change: (org-ql--org-timestamp-element<) Use macrolet
Should be a small performance improvement, avoiding funcall overhead.
This commit is contained in:
parent
51a472ffa8
commit
c605ccbaf3
1 changed files with 3 additions and 3 deletions
|
|
@ -333,9 +333,9 @@ Deadline is considered before scheduled."
|
||||||
(defun org-ql--org-timestamp-element< (a b)
|
(defun org-ql--org-timestamp-element< (a b)
|
||||||
"Return non-nil if A's date element is earlier than B's.
|
"Return non-nil if A's date element is earlier than B's.
|
||||||
A and B are Org timestamp elements."
|
A and B are Org timestamp elements."
|
||||||
(cl-flet ((ts (ts)
|
(cl-macrolet ((ts (ts)
|
||||||
(when ts
|
`(when ,ts
|
||||||
(org-timestamp-format ts "%s"))))
|
(org-timestamp-format ,ts "%s"))))
|
||||||
(let* ((a-ts (ts a))
|
(let* ((a-ts (ts a))
|
||||||
(b-ts (ts b)))
|
(b-ts (ts b)))
|
||||||
(cond ((and a-ts b-ts)
|
(cond ((and a-ts b-ts)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue