]> git.eshelyaron.com Git - emacs.git/commitdiff
Update to Org 9.5.4-3-g6dc785
authorKyle Meyer <kyle@kyleam.com>
Mon, 27 Jun 2022 03:00:38 +0000 (23:00 -0400)
committerKyle Meyer <kyle@kyleam.com>
Mon, 27 Jun 2022 03:00:38 +0000 (23:00 -0400)
lisp/org/oc-basic.el
lisp/org/org-version.el

index 775690f1767968314b56185ef3843bb160c5f7b5..9ed1b810fab67f4e8aa08a80c46f05f8127c4ec4 100644 (file)
@@ -189,7 +189,14 @@ Return a hash table with citation references as keys and fields alist as values.
                                 (cons 'year
                                       (cond
                                        ((consp date)
-                                        (caar date))
+                                         (let ((year (caar date)))
+                                           (cond
+                                             ((numberp year) (number-to-string year))
+                                             ((stringp year) year)
+                                             (t
+                                               (error
+                                                 "First element of CSL-JSON date-parts should be a number or string, got %s: %S"
+                                                 (type-of year) year)))))
                                        ((stringp date)
                                         (replace-regexp-in-string
                                           (rx
index 6bdcb0afff510d4c1e7211548aded833b5d25f87..2a500fe5106cce7c4762f2b504e14640224aa37c 100644 (file)
@@ -11,7 +11,7 @@ Inserted by installing Org mode or when a release is made."
 (defun org-git-version ()
   "The Git version of Org mode.
 Inserted by installing Org or when a release is made."
-   (let ((org-git-version "release_9.5.4"))
+   (let ((org-git-version "release_9.5.4-3-g6dc785"))
      org-git-version))
 \f
 (provide 'org-version)