aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Meyer2022-02-28 00:11:01 -0500
committerKyle Meyer2022-02-28 00:11:01 -0500
commite77fc8262ad73f30b1983f403262dce6f0e4cb09 (patch)
tree7c0b1c6e4d59104fed469090dc253675d4e1ba6b
parent9bce4b67f1770e288a16b44478f1a6dfdc1fc177 (diff)
downloademacs-e77fc8262ad73f30b1983f403262dce6f0e4cb09.tar.gz
emacs-e77fc8262ad73f30b1983f403262dce6f0e4cb09.zip
Update to Org 9.5.2-22-g33543d
-rw-r--r--lisp/org/oc-basic.el20
-rw-r--r--lisp/org/ol.el2
-rw-r--r--lisp/org/org-version.el2
-rw-r--r--lisp/org/org.el10
4 files changed, 21 insertions, 13 deletions
diff --git a/lisp/org/oc-basic.el b/lisp/org/oc-basic.el
index d82406affb2..81b7e4471fd 100644
--- a/lisp/org/oc-basic.el
+++ b/lisp/org/oc-basic.el
@@ -178,21 +178,29 @@ Return a hash table with citation references as keys and fields alist as values.
178 " and "))) 178 " and ")))
179 ('issued 179 ('issued
180 ;; Date are expressed as an array 180 ;; Date are expressed as an array
181 ;; (`date-parts') or a "string (`raw'). 181 ;; (`date-parts') or a "string (`raw'
182 ;; In both cases, extract the year and 182 ;; or `literal'). In both cases,
183 ;; associate it to `year' field, for 183 ;; extract the year and associate it
184 ;; compatibility with BibTeX format. 184 ;; to `year' field, for compatibility
185 ;; with BibTeX format.
185 (let ((date (or (alist-get 'date-parts value) 186 (let ((date (or (alist-get 'date-parts value)
187 (alist-get 'literal value)
186 (alist-get 'raw value)))) 188 (alist-get 'raw value))))
187 (cons 'year 189 (cons 'year
188 (cond 190 (cond
189 ((consp date) 191 ((consp date)
190 (caar date)) 192 (caar date))
191 ((stringp date) 193 ((stringp date)
192 (car (split-string date "-"))) 194 (replace-regexp-in-string
195 (rx
196 (minimal-match (zero-or-more anything))
197 (group-n 1 (repeat 4 digit))
198 (zero-or-more anything))
199 (rx (backref 1))
200 date))
193 (t 201 (t
194 (error "Unknown CSL-JSON date format: %S" 202 (error "Unknown CSL-JSON date format: %S"
195 date)))))) 203 value))))))
196 (_ 204 (_
197 (cons field value)))) 205 (cons field value))))
198 item) 206 item)
diff --git a/lisp/org/ol.el b/lisp/org/ol.el
index 2cba33ed952..a03d85f618a 100644
--- a/lisp/org/ol.el
+++ b/lisp/org/ol.el
@@ -183,7 +183,7 @@ link.
183(defcustom org-link-descriptive t 183(defcustom org-link-descriptive t
184 "Non-nil means Org displays descriptive links. 184 "Non-nil means Org displays descriptive links.
185 185
186E.g. [[https://orgmode.org][Org website]] is be displayed as 186E.g. [[https://orgmode.org][Org website]] is displayed as
187\"Org Website\", hiding the link itself and just displaying its 187\"Org Website\", hiding the link itself and just displaying its
188description. When set to nil, Org displays the full links 188description. When set to nil, Org displays the full links
189literally. 189literally.
diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el
index 6a2aa8ca5ba..badf0e47695 100644
--- a/lisp/org/org-version.el
+++ b/lisp/org/org-version.el
@@ -11,7 +11,7 @@ Inserted by installing Org mode or when a release is made."
11(defun org-git-version () 11(defun org-git-version ()
12 "The Git version of Org mode. 12 "The Git version of Org mode.
13Inserted by installing Org or when a release is made." 13Inserted by installing Org or when a release is made."
14 (let ((org-git-version "release_9.5.2-17-gea6b74")) 14 (let ((org-git-version "release_9.5.2-22-g33543d"))
15 org-git-version)) 15 org-git-version))
16 16
17(provide 'org-version) 17(provide 'org-version)
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 7ea8d65f3b9..d656a51591e 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -17522,11 +17522,11 @@ this numeric value."
17522 (interactive "r") 17522 (interactive "r")
17523 (let ((result "")) 17523 (let ((result ""))
17524 (while (/= beg end) 17524 (while (/= beg end)
17525 (when (get-char-property beg 'invisible) 17525 (if (invisible-p beg)
17526 (setq beg (next-single-char-property-change beg 'invisible nil end))) 17526 (setq beg (next-single-char-property-change beg 'invisible nil end))
17527 (let ((next (next-single-char-property-change beg 'invisible nil end))) 17527 (let ((next (next-single-char-property-change beg 'invisible nil end)))
17528 (setq result (concat result (buffer-substring beg next))) 17528 (setq result (concat result (buffer-substring beg next)))
17529 (setq beg next))) 17529 (setq beg next))))
17530 (setq deactivate-mark t) 17530 (setq deactivate-mark t)
17531 (kill-new result) 17531 (kill-new result)
17532 (message "Visible strings have been copied to the kill ring."))) 17532 (message "Visible strings have been copied to the kill ring.")))