emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Justin <justinvallon@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Use compat org-time-convert-to-list for emacs <27.1
Date: Tue, 4 Jul 2023 19:29:34 -0400	[thread overview]
Message-ID: <e6fb8906-f045-5af3-88f7-6a0315839cf4@vallon.homeip.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

---
  lisp/org-macs.el | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index 2eed0028e..d6879e8cf 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -803,7 +803,7 @@ When NEXT is non-nil, check the next line instead."
    "Return string with random (version 4) UUID."
    (let ((rnd (md5 (format "%s%s%s%s%s%s%s"
                (random)
-              (time-convert nil 'list)
+              (org-time-convert-to-list nil)
                (user-uid)
                (emacs-pid)
                (user-full-name)

base-commit: 48fffa5daca3e13e4c5ff3928e3b1858cf2bab6b
-- 
2.20.1


[-- Attachment #2: 0001-Use-compat-org-time-convert-to-list-for-emacs-27.1.patch --]
[-- Type: text/x-patch, Size: 802 bytes --]

From 929b8ec807ac83f70a0a689c01ce704db9e3994e Mon Sep 17 00:00:00 2001
From: Justin Vallon <JustinVallon@gmail.com>
Date: Tue, 4 Jul 2023 19:01:27 -0400
Subject: [PATCH] Use compat org-time-convert-to-list for emacs <27.1

---
 lisp/org-macs.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index 2eed0028e..d6879e8cf 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -803,7 +803,7 @@ When NEXT is non-nil, check the next line instead."
   "Return string with random (version 4) UUID."
   (let ((rnd (md5 (format "%s%s%s%s%s%s%s"
 			  (random)
-			  (time-convert nil 'list)
+			  (org-time-convert-to-list nil)
 			  (user-uid)
 			  (emacs-pid)
 			  (user-full-name)

base-commit: 48fffa5daca3e13e4c5ff3928e3b1858cf2bab6b
-- 
2.20.1


             reply	other threads:[~2023-07-04 23:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-04 23:29 Justin [this message]
2023-07-05 10:30 ` [PATCH] Use compat org-time-convert-to-list for emacs <27.1 Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e6fb8906-f045-5af3-88f7-6a0315839cf4@vallon.homeip.net \
    --to=justinvallon@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).