summaryrefslogtreecommitdiff
path: root/lisp/org/org-macro.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-12-16 09:40:21 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2021-12-16 11:17:25 -0800
commitdd0727e1ec1f535b9b06be88173b4d3ccd55abcb (patch)
treeeb6c05dfc0acdb90cd6d774447bba1b5e701a3d1 /lisp/org/org-macro.el
parent3e6c69de9d1ae99ebb71eb2ed04bdb9ee42cbb80 (diff)
downloademacs-dd0727e1ec1f535b9b06be88173b4d3ccd55abcb.tar.gz
emacs-dd0727e1ec1f535b9b06be88173b4d3ccd55abcb.tar.bz2
emacs-dd0727e1ec1f535b9b06be88173b4d3ccd55abcb.zip
encode-time simplifications
* lisp/gnus/gnus-search.el (gnus-search-query-parse-date): * lisp/net/soap-client.el (soap-decode-date-time): * lisp/net/tramp-adb.el (tramp-adb-ls-output-time-less-p): * lisp/org/ol.el (org-store-link): * lisp/org/org-clock.el (org-clock-sum) (org-clock-update-time-maybe): * lisp/org/org-colview.el (org-colview-construct-allowed-dates): * lisp/org/org-macro.el (org-macro--vc-modified-time): * lisp/org/org-macs.el (org-2ft, org-matcher-time): * lisp/org/org-table.el (org-table-eval-formula): * lisp/org/org.el (org-read-date, org-display-custom-time) (org-time-string-to-time, org-timestamp-change): Prefer (encode-time L) to (apply #'encode-time L) where either will do. * lisp/gnus/gnus-search.el (gnus-search-imap-handle-date): * lisp/org/org-clock.el (org-clocktable-steps): Prefer (encode-time S M ...) to (apply #'encode-time (list S M ...)).
Diffstat (limited to 'lisp/org/org-macro.el')
-rw-r--r--lisp/org/org-macro.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org/org-macro.el b/lisp/org/org-macro.el
index c0287a25a55..83c35faea41 100644
--- a/lisp/org/org-macro.el
+++ b/lisp/org/org-macro.el
@@ -378,7 +378,7 @@ Return value as a string."
(buffer-substring
(point) (line-end-position)))))
(when (cl-some #'identity time)
- (setq date (apply #'encode-time time))))))))
+ (setq date (encode-time time))))))))
(let ((proc (get-buffer-process buf)))
(while (and proc (accept-process-output proc .5 nil t)))))
(kill-buffer buf))