emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DRAFT][PATCH] org-encode-time compatibility and convenience helper


From: Paul Eggert
Subject: Re: [DRAFT][PATCH] org-encode-time compatibility and convenience helper
Date: Mon, 11 Apr 2022 10:43:27 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

On 4/11/22 08:22, Max Nikulin wrote:

+  (defmacro org-encode-time (&rest time)
+    (pcase (length time)
+      (1 `(encode-time ,(car time)))
+      (6 `(encode-time (list ,@time nil -1 nil)))
+      (9 `(encode-time (list ,@time)))

After seeing this code and thinking about it a bit more I now understand better why you'd prefer Emacs encode-time to accept a 6-argument list. I'll work on adding that to Emacs master (to become Emacs 29). Of course something like the above will still needed for Emacs 27 and 28.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]