aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Meyer2023-02-12 15:43:07 -0500
committerKyle Meyer2023-02-12 15:43:07 -0500
commitfe2ea5ddd8da91c8a0f3064f1447fc4fbbda68ab (patch)
treebf850d236c62f4cb34a8732a7c4891fbefcd9d21
parent8280d721d7c0f6fb2e04f23128c0d2cccf2be1d5 (diff)
downloademacs-fe2ea5ddd8da91c8a0f3064f1447fc4fbbda68ab.tar.gz
emacs-fe2ea5ddd8da91c8a0f3064f1447fc4fbbda68ab.zip
Update to Org 9.6.1-31-gaf1bb1
-rw-r--r--doc/misc/org.org16
-rw-r--r--lisp/org/ob-eval.el2
-rw-r--r--lisp/org/ob-sql.el2
-rw-r--r--lisp/org/org-agenda.el2
-rw-r--r--lisp/org/org-compat.el12
-rw-r--r--lisp/org/org-element.el45
-rw-r--r--lisp/org/org-footnote.el2
-rw-r--r--lisp/org/org-version.el2
-rw-r--r--lisp/org/org.el12
9 files changed, 58 insertions, 37 deletions
diff --git a/doc/misc/org.org b/doc/misc/org.org
index 14699e77395..ad889a5c622 100644
--- a/doc/misc/org.org
+++ b/doc/misc/org.org
@@ -5291,7 +5291,7 @@ The following commands help to work with properties:
5291 Set a property in the current entry. Both the property and the 5291 Set a property in the current entry. Both the property and the
5292 value can be inserted using completion. 5292 value can be inserted using completion.
5293 5293
5294- {{{kbd(S-RIGHT)}}} (~org-property-next-allowed-values~), {{{kbd(S-LEFT)}}} (~org-property-previous-allowed-value~) :: 5294- {{{kbd(S-RIGHT)}}} (~org-property-next-allowed-value~), {{{kbd(S-LEFT)}}} (~org-property-previous-allowed-value~) ::
5295 5295
5296 #+kindex: S-RIGHT 5296 #+kindex: S-RIGHT
5297 #+kindex: S-LEFT 5297 #+kindex: S-LEFT
@@ -10252,9 +10252,9 @@ the other commands, point needs to be in the desired line.
10252 10252
10253 Unmark entry for bulk action. 10253 Unmark entry for bulk action.
10254 10254
10255- {{{kbd(U)}}} (~org-agenda-bulk-remove-all-marks~) :: 10255- {{{kbd(U)}}} (~org-agenda-bulk-unmark-all~) ::
10256 #+kindex: U 10256 #+kindex: U
10257 #+findex: org-agenda-bulk-remove-all-marks 10257 #+findex: org-agenda-bulk-unmark-all
10258 10258
10259 Unmark all marked entries for bulk action. 10259 Unmark all marked entries for bulk action.
10260 10260
@@ -11692,9 +11692,9 @@ When the variable ~org-export-dispatch-use-expert-ui~ is set to
11692a non-~nil~ value, Org prompts in the minibuffer. To switch back to 11692a non-~nil~ value, Org prompts in the minibuffer. To switch back to
11693the hierarchical menu, press {{{kbd(?)}}}. 11693the hierarchical menu, press {{{kbd(?)}}}.
11694 11694
11695- {{{kbd(C-c C-e)}}} (~org-export~) :: 11695- {{{kbd(C-c C-e)}}} (~org-export-dispatch~) ::
11696 #+kindex: C-c C-e 11696 #+kindex: C-c C-e
11697 #+findex: org-export 11697 #+findex: org-export-dispatch
11698 11698
11699 Invokes the export dispatcher interface. The options show default 11699 Invokes the export dispatcher interface. The options show default
11700 settings. The {{{kbd(C-u)}}} prefix argument preserves options from 11700 settings. The {{{kbd(C-u)}}} prefix argument preserves options from
@@ -12232,7 +12232,7 @@ with the custom ID =theory=, you can use
12232 12232
12233The following command allows navigating to the included document: 12233The following command allows navigating to the included document:
12234 12234
12235- {{{kbd(C-c ')}}} (~org-edit~special~) :: 12235- {{{kbd(C-c ')}}} (~org-edit-special~) ::
12236 #+kindex: C-c ' 12236 #+kindex: C-c '
12237 #+findex: org-edit-special 12237 #+findex: org-edit-special
12238 12238
@@ -14363,10 +14363,10 @@ executable. Without it, export cannot finish.
14363:DESCRIPTION: Invoking export. 14363:DESCRIPTION: Invoking export.
14364:END: 14364:END:
14365 14365
14366- {{{kbd(C-c C-e o o)}}} (~org-export-to-odt~) :: 14366- {{{kbd(C-c C-e o o)}}} (~org-odt-export-to-odt~) ::
14367 14367
14368 #+kindex: C-c C-e o o 14368 #+kindex: C-c C-e o o
14369 #+findex: org-export-to-odt 14369 #+findex: org-odt-export-to-odt
14370 Export as OpenDocument Text file. 14370 Export as OpenDocument Text file.
14371 14371
14372 #+cindex: @samp{EXPORT_FILE_NAME}, property 14372 #+cindex: @samp{EXPORT_FILE_NAME}, property
diff --git a/lisp/org/ob-eval.el b/lisp/org/ob-eval.el
index 6f6edb949cc..07e53077253 100644
--- a/lisp/org/ob-eval.el
+++ b/lisp/org/ob-eval.el
@@ -59,7 +59,7 @@ Writes QUERY into a temp-buffer that is processed with
59 (let ((error-buffer (get-buffer-create " *Org-Babel Error*")) exit-code) 59 (let ((error-buffer (get-buffer-create " *Org-Babel Error*")) exit-code)
60 (with-current-buffer error-buffer (erase-buffer)) 60 (with-current-buffer error-buffer (erase-buffer))
61 (with-temp-buffer 61 (with-temp-buffer
62 (insert query) 62 (insert query "\n")
63 (setq exit-code 63 (setq exit-code
64 (org-babel--shell-command-on-region 64 (org-babel--shell-command-on-region
65 command error-buffer)) 65 command error-buffer))
diff --git a/lisp/org/ob-sql.el b/lisp/org/ob-sql.el
index 39a4573a54e..f73e7003f6d 100644
--- a/lisp/org/ob-sql.el
+++ b/lisp/org/ob-sql.el
@@ -234,7 +234,7 @@ database connections."
234 (:database . sql-database))) 234 (:database . sql-database)))
235 (mapped-name (cdr (assq name name-mapping)))) 235 (mapped-name (cdr (assq name name-mapping))))
236 (cadr (assq mapped-name 236 (cadr (assq mapped-name
237 (cdr (assoc dbconnection sql-connection-alist)))))))) 237 (cdr (assoc-string dbconnection sql-connection-alist t))))))))
238 238
239(defun org-babel-execute:sql (body params) 239(defun org-babel-execute:sql (body params)
240 "Execute a block of Sql code with Babel. 240 "Execute a block of Sql code with Babel.
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index 63107e8e6a4..3db33c4d63e 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -8211,7 +8211,7 @@ filter."
8211 (if (and org-agenda-filtered-by-category 8211 (if (and org-agenda-filtered-by-category
8212 org-agenda-category-filter) 8212 org-agenda-category-filter)
8213 (org-agenda-filter-show-all-cat) 8213 (org-agenda-filter-show-all-cat)
8214 (let ((cat (org-no-properties (org-get-at-eol 'org-category 1)))) 8214 (let ((cat (org-no-properties (org-agenda-get-category))))
8215 (cond 8215 (cond
8216 ((and cat strip) 8216 ((and cat strip)
8217 (org-agenda-filter-apply 8217 (org-agenda-filter-apply
diff --git a/lisp/org/org-compat.el b/lisp/org/org-compat.el
index 6c50852553c..d5bf2191ae7 100644
--- a/lisp/org/org-compat.el
+++ b/lisp/org/org-compat.el
@@ -196,11 +196,13 @@ removed."
196 196
197;;; Emacs < 27.1 compatibility 197;;; Emacs < 27.1 compatibility
198 198
199(unless (fboundp 'combine-change-calls) 199(if (version< emacs-version "29")
200 ;; A stub when `combine-change-calls' was not yet there. 200 ;; A stub when `combine-change-calls' was not yet there or had
201 (defmacro combine-change-calls (_beg _end &rest body) 201 ;; critical bugs (see Emacs bug#60467).
202 (declare (debug (form form def-body)) (indent 2)) 202 (defmacro org-combine-change-calls (_beg _end &rest body)
203 `(progn ,@body))) 203 (declare (debug (form form def-body)) (indent 2))
204 `(progn ,@body))
205 (defalias 'org-combine-change-calls 'combine-change-calls))
204 206
205(if (version< emacs-version "27.1") 207(if (version< emacs-version "27.1")
206 (defsubst org-replace-buffer-contents (source &optional _max-secs _max-costs) 208 (defsubst org-replace-buffer-contents (source &optional _max-secs _max-costs)
diff --git a/lisp/org/org-element.el b/lisp/org/org-element.el
index 389acf82500..4f4eebfcc2d 100644
--- a/lisp/org/org-element.el
+++ b/lisp/org/org-element.el
@@ -7406,14 +7406,16 @@ the cache."
7406 (org-element-at-point to-pos) 7406 (org-element-at-point to-pos)
7407 (cl-macrolet ((cache-root 7407 (cl-macrolet ((cache-root
7408 ;; Use the most optimal version of cache available. 7408 ;; Use the most optimal version of cache available.
7409 () `(if (memq granularity '(headline headline+inlinetask)) 7409 () `(org-with-base-buffer nil
7410 (org-element--headline-cache-root) 7410 (if (memq granularity '(headline headline+inlinetask))
7411 (org-element--cache-root))) 7411 (org-element--headline-cache-root)
7412 (org-element--cache-root))))
7412 (cache-size 7413 (cache-size
7413 ;; Use the most optimal version of cache available. 7414 ;; Use the most optimal version of cache available.
7414 () `(if (memq granularity '(headline headline+inlinetask)) 7415 () `(org-with-base-buffer nil
7415 org-element--headline-cache-size 7416 (if (memq granularity '(headline headline+inlinetask))
7416 org-element--cache-size)) 7417 org-element--headline-cache-size
7418 org-element--cache-size)))
7417 (cache-walk-restart 7419 (cache-walk-restart
7418 ;; Restart tree traversal after AVL tree re-balance. 7420 ;; Restart tree traversal after AVL tree re-balance.
7419 () `(when node 7421 () `(when node
@@ -7443,8 +7445,9 @@ the cache."
7443 ;; Avoid extra staff like timer cancels et al 7445 ;; Avoid extra staff like timer cancels et al
7444 ;; and only call `org-element--cache-sync-requests' when 7446 ;; and only call `org-element--cache-sync-requests' when
7445 ;; there are pending requests. 7447 ;; there are pending requests.
7446 (when org-element--cache-sync-requests 7448 (org-with-base-buffer nil
7447 (org-element--cache-sync (current-buffer))) 7449 (when org-element--cache-sync-requests
7450 (org-element--cache-sync (current-buffer))))
7448 ;; Call `org-element--parse-to' directly avoiding any 7451 ;; Call `org-element--parse-to' directly avoiding any
7449 ;; kind of `org-element-at-point' overheads. 7452 ;; kind of `org-element-at-point' overheads.
7450 (if restrict-elements 7453 (if restrict-elements
@@ -7515,8 +7518,9 @@ the cache."
7515 tmpnext-start)) 7518 tmpnext-start))
7516 ;; Check if cache does not have gaps. 7519 ;; Check if cache does not have gaps.
7517 (cache-gapless-p 7520 (cache-gapless-p
7518 () `(eq org-element--cache-change-tic 7521 () `(org-with-base-buffer nil
7519 (alist-get granularity org-element--cache-gapless)))) 7522 (eq org-element--cache-change-tic
7523 (alist-get granularity org-element--cache-gapless)))))
7520 ;; The core algorithm is simple walk along binary tree. However, 7524 ;; The core algorithm is simple walk along binary tree. However,
7521 ;; instead of checking all the tree elements from first to last 7525 ;; instead of checking all the tree elements from first to last
7522 ;; (like in `avl-tree-mapcar'), we begin from FROM-POS skipping 7526 ;; (like in `avl-tree-mapcar'), we begin from FROM-POS skipping
@@ -7644,7 +7648,9 @@ the cache."
7644 ;; In the process, we may alter the buffer, 7648 ;; In the process, we may alter the buffer,
7645 ;; so also keep track of the cache state. 7649 ;; so also keep track of the cache state.
7646 (progn 7650 (progn
7647 (setq modified-tic org-element--cache-change-tic) 7651 (setq modified-tic
7652 (org-with-base-buffer nil
7653 org-element--cache-change-tic))
7648 (setq cache-size (cache-size)) 7654 (setq cache-size (cache-size))
7649 ;; When NEXT-RE/FAIL-RE is provided, skip to 7655 ;; When NEXT-RE/FAIL-RE is provided, skip to
7650 ;; next regexp match after :begin of the current 7656 ;; next regexp match after :begin of the current
@@ -7678,7 +7684,7 @@ the cache."
7678 ;; 7684 ;;
7679 ;; Call FUNC. FUNC may move point. 7685 ;; Call FUNC. FUNC may move point.
7680 (setq org-element-cache-map-continue-from nil) 7686 (setq org-element-cache-map-continue-from nil)
7681 (if org-element--cache-map-statistics 7687 (if (org-with-base-buffer nil org-element--cache-map-statistics)
7682 (progn 7688 (progn
7683 (setq before-time (float-time)) 7689 (setq before-time (float-time))
7684 (push (funcall func data) result) 7690 (push (funcall func data) result)
@@ -7697,7 +7703,15 @@ the cache."
7697 (when org-element-cache-map-continue-from 7703 (when org-element-cache-map-continue-from
7698 (goto-char org-element-cache-map-continue-from)) 7704 (goto-char org-element-cache-map-continue-from))
7699 (when (> (point) start) 7705 (when (> (point) start)
7700 (move-start-to-next-match nil)) 7706 (move-start-to-next-match nil)
7707 ;; (point) inside matching element.
7708 ;; Go further.
7709 (when (> (point) start)
7710 (setq data (element-match-at-point))
7711 (if (not data)
7712 (cache-walk-abort)
7713 (goto-char (next-element-start))
7714 (move-start-to-next-match next-element-re))))
7701 ;; Drop nil. 7715 ;; Drop nil.
7702 (unless (car result) (pop result))) 7716 (unless (car result) (pop result)))
7703 ;; If FUNC did not move the point and we 7717 ;; If FUNC did not move the point and we
@@ -7710,8 +7724,9 @@ the cache."
7710 start)) 7724 start))
7711 (setq start nil)) 7725 (setq start nil))
7712 ;; Check if the buffer has been modified. 7726 ;; Check if the buffer has been modified.
7713 (unless (and (eq modified-tic org-element--cache-change-tic) 7727 (unless (org-with-base-buffer nil
7714 (eq cache-size (cache-size))) 7728 (and (eq modified-tic org-element--cache-change-tic)
7729 (eq cache-size (cache-size))))
7715 ;; START may no longer be valid, update 7730 ;; START may no longer be valid, update
7716 ;; it to beginning of real element. 7731 ;; it to beginning of real element.
7717 ;; Upon modification, START may lay 7732 ;; Upon modification, START may lay
diff --git a/lisp/org/org-footnote.el b/lisp/org/org-footnote.el
index c83026d1d8f..6bdd0b32fed 100644
--- a/lisp/org/org-footnote.el
+++ b/lisp/org/org-footnote.el
@@ -853,7 +853,7 @@ to `org-footnote-section'. Inline definitions are ignored."
853 ;; Insert un-referenced footnote definitions at the end. 853 ;; Insert un-referenced footnote definitions at the end.
854 ;; Combine all insertions into one to create a single cache 854 ;; Combine all insertions into one to create a single cache
855 ;; update call. 855 ;; update call.
856 (combine-change-calls (point) (point) 856 (org-combine-change-calls (point) (point)
857 (pcase-dolist (`(,label . ,definition) definitions) 857 (pcase-dolist (`(,label . ,definition) definitions)
858 (unless (member label inserted) 858 (unless (member label inserted)
859 (insert "\n" definition "\n")))))))))) 859 (insert "\n" definition "\n"))))))))))
diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el
index 8372a0be4a5..5f587fb3fd8 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.6.1-23-gc45a05")) 14 (let ((org-git-version "release_9.6.1-31-gaf1bb1"))
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 1b829d837c7..9a4f7803cf4 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -723,6 +723,10 @@ defined in org-duration.el.")
723 (set-default-toplevel-value var value) 723 (set-default-toplevel-value var value)
724 (when (featurep 'org) 724 (when (featurep 'org)
725 (org-load-modules-maybe 'force) 725 (org-load-modules-maybe 'force)
726 ;; FIXME: We can't have all the requires at top-level due to
727 ;; circular dependencies. Yet, this function might sometimes be
728 ;; called when 'org-element is not loaded.
729 (require 'org-element)
726 (org-element-cache-reset 'all))) 730 (org-element-cache-reset 'all)))
727 731
728(defcustom org-modules '(ol-doi ol-w3m ol-bbdb ol-bibtex ol-docview ol-gnus ol-info ol-irc ol-mhe ol-rmail ol-eww) 732(defcustom org-modules '(ol-doi ol-w3m ol-bbdb ol-bibtex ol-docview ol-gnus ol-info ol-irc ol-mhe ol-rmail ol-eww)
@@ -6556,7 +6560,7 @@ See also `org-promote'."
6556 (interactive) 6560 (interactive)
6557 (save-excursion 6561 (save-excursion
6558 (org-back-to-heading t) 6562 (org-back-to-heading t)
6559 (combine-change-calls (point) (save-excursion (org-end-of-subtree t)) 6563 (org-combine-change-calls (point) (save-excursion (org-end-of-subtree t))
6560 (org-with-limited-levels (org-map-tree 'org-promote)))) 6564 (org-with-limited-levels (org-map-tree 'org-promote))))
6561 (org-fix-position-after-promote)) 6565 (org-fix-position-after-promote))
6562 6566
@@ -6566,7 +6570,7 @@ See `org-demote' and `org-promote'."
6566 (interactive) 6570 (interactive)
6567 (save-excursion 6571 (save-excursion
6568 (org-back-to-heading t) 6572 (org-back-to-heading t)
6569 (combine-change-calls (point) (save-excursion (org-end-of-subtree t)) 6573 (org-combine-change-calls (point) (save-excursion (org-end-of-subtree t))
6570 (org-with-limited-levels (org-map-tree 'org-demote)))) 6574 (org-with-limited-levels (org-map-tree 'org-demote))))
6571 (org-fix-position-after-promote)) 6575 (org-fix-position-after-promote))
6572 6576
@@ -7135,7 +7139,7 @@ When REMOVE is non-nil, remove the subtree from the clipboard."
7135 (setq beg (point)) 7139 (setq beg (point))
7136 ;; Avoid re-parsing cache elements when i.e. level 1 heading 7140 ;; Avoid re-parsing cache elements when i.e. level 1 heading
7137 ;; is inserted and then promoted. 7141 ;; is inserted and then promoted.
7138 (combine-change-calls beg beg 7142 (org-combine-change-calls beg beg
7139 (when (fboundp 'org-id-paste-tracker) (org-id-paste-tracker txt)) 7143 (when (fboundp 'org-id-paste-tracker) (org-id-paste-tracker txt))
7140 (insert txt) 7144 (insert txt)
7141 (unless (string-suffix-p "\n" txt) (insert "\n")) 7145 (unless (string-suffix-p "\n" txt) (insert "\n"))
@@ -18844,7 +18848,7 @@ Alignment is done according to `org-property-format', which see."
18844 (when (save-excursion 18848 (when (save-excursion
18845 (beginning-of-line) 18849 (beginning-of-line)
18846 (looking-at org-property-re)) 18850 (looking-at org-property-re))
18847 (combine-change-calls (match-beginning 0) (match-end 0) 18851 (org-combine-change-calls (match-beginning 0) (match-end 0)
18848 (let ((newtext (concat (match-string 4) 18852 (let ((newtext (concat (match-string 4)
18849 (org-trim 18853 (org-trim
18850 (format org-property-format (match-string 1) (match-string 3)))))) 18854 (format org-property-format (match-string 1) (match-string 3))))))