diff options
| author | Kyle Meyer | 2023-11-05 21:46:42 -0500 |
|---|---|---|
| committer | Kyle Meyer | 2023-11-05 21:46:42 -0500 |
| commit | 5bdc61bc0efc704c85b78f36f5f7e5f6c42bb877 (patch) | |
| tree | 48972f5a9361bfb67b6896a7a82dd0b298389c84 | |
| parent | 18e2de1bec9c2d49a9d7352db04b44deeea6a22b (diff) | |
| download | emacs-5bdc61bc0efc704c85b78f36f5f7e5f6c42bb877.tar.gz emacs-5bdc61bc0efc704c85b78f36f5f7e5f6c42bb877.zip | |
Update to Org 9.6.11
| -rw-r--r-- | doc/misc/org.org | 10 | ||||
| -rw-r--r-- | etc/refcards/orgcard.tex | 2 | ||||
| -rw-r--r-- | lisp/org/ob-core.el | 10 | ||||
| -rw-r--r-- | lisp/org/ob-shell.el | 12 | ||||
| -rw-r--r-- | lisp/org/ol-info.el | 14 | ||||
| -rw-r--r-- | lisp/org/org-agenda.el | 10 | ||||
| -rw-r--r-- | lisp/org/org-version.el | 4 | ||||
| -rw-r--r-- | lisp/org/org.el | 2 | ||||
| -rw-r--r-- | lisp/org/ox.el | 28 |
9 files changed, 62 insertions, 30 deletions
diff --git a/doc/misc/org.org b/doc/misc/org.org index d8bbcb4d0c5..9f6cda17da0 100644 --- a/doc/misc/org.org +++ b/doc/misc/org.org | |||
| @@ -20266,12 +20266,12 @@ packages are documented here. | |||
| 20266 | #+vindex: org-table-formula-constants | 20266 | #+vindex: org-table-formula-constants |
| 20267 | 20267 | ||
| 20268 | Org can use names for constants in formulas in tables. Org can also | 20268 | Org can use names for constants in formulas in tables. Org can also |
| 20269 | use calculation suffixes for units, such as =M= for =Mega=. For | 20269 | use calculation suffixes for units, such as =M= for =Mega=. For a |
| 20270 | a standard collection of such constants, install the =constants= | 20270 | standard collection of such constants, install the =constants= |
| 20271 | package. Install version 2.0 of this package, available at | 20271 | package. Install version 2.0 of this package, available at |
| 20272 | [[http://www.astro.uva.nl/~dominik/Tools]]. Org checks if the function | 20272 | [[https://github.com/cdominik/constants-for-Emacs]]. Org checks if the |
| 20273 | ~constants-get~ has been autoloaded. Installation instructions are | 20273 | function ~constants-get~ has been autoloaded. Installation |
| 20274 | in the file =constants.el=. | 20274 | instructions are in the file =constants.el=. |
| 20275 | 20275 | ||
| 20276 | - =cdlatex.el= by Carsten Dominik :: | 20276 | - =cdlatex.el= by Carsten Dominik :: |
| 20277 | #+cindex: @file{cdlatex.el} | 20277 | #+cindex: @file{cdlatex.el} |
diff --git a/etc/refcards/orgcard.tex b/etc/refcards/orgcard.tex index 240e3366b0b..4b73a544e80 100644 --- a/etc/refcards/orgcard.tex +++ b/etc/refcards/orgcard.tex | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | % Reference Card for Org Mode | 1 | % Reference Card for Org Mode |
| 2 | \def\orgversionnumber{9.6.10} | 2 | \def\orgversionnumber{9.6.11} |
| 3 | \def\versionyear{2023} % latest update | 3 | \def\versionyear{2023} % latest update |
| 4 | \input emacsver.tex | 4 | \input emacsver.tex |
| 5 | 5 | ||
diff --git a/lisp/org/ob-core.el b/lisp/org/ob-core.el index e69ce4f1d12..2df3396ee72 100644 --- a/lisp/org/ob-core.el +++ b/lisp/org/ob-core.el | |||
| @@ -1932,12 +1932,12 @@ buffer or nil if no such result exists." | |||
| 1932 | 1932 | ||
| 1933 | (defun org-babel-result-names (&optional file) | 1933 | (defun org-babel-result-names (&optional file) |
| 1934 | "Return the names of results in FILE or the current buffer." | 1934 | "Return the names of results in FILE or the current buffer." |
| 1935 | (save-excursion | 1935 | (with-current-buffer (if file (find-file-noselect file) (current-buffer)) |
| 1936 | (when file (find-file file)) (goto-char (point-min)) | 1936 | (org-with-point-at 1 |
| 1937 | (let ((case-fold-search t) names) | 1937 | (let ((case-fold-search t) names) |
| 1938 | (while (re-search-forward org-babel-result-w-name-regexp nil t) | 1938 | (while (re-search-forward org-babel-result-w-name-regexp nil t) |
| 1939 | (setq names (cons (match-string-no-properties 9) names))) | 1939 | (setq names (cons (match-string-no-properties 9) names))) |
| 1940 | names))) | 1940 | names)))) |
| 1941 | 1941 | ||
| 1942 | ;;;###autoload | 1942 | ;;;###autoload |
| 1943 | (defun org-babel-next-src-block (&optional arg) | 1943 | (defun org-babel-next-src-block (&optional arg) |
| @@ -2358,7 +2358,7 @@ INFO may provide the values of these header arguments (in the | |||
| 2358 | using the argument supplied to specify the export block | 2358 | using the argument supplied to specify the export block |
| 2359 | or snippet type." | 2359 | or snippet type." |
| 2360 | (cond ((stringp result) | 2360 | (cond ((stringp result) |
| 2361 | (setq result (org-no-properties result)) | 2361 | (setq result (substring-no-properties result)) |
| 2362 | (when (member "file" result-params) | 2362 | (when (member "file" result-params) |
| 2363 | (setq result | 2363 | (setq result |
| 2364 | (org-babel-result-to-file | 2364 | (org-babel-result-to-file |
diff --git a/lisp/org/ob-shell.el b/lisp/org/ob-shell.el index 2c30a26056b..87e38e414ce 100644 --- a/lisp/org/ob-shell.el +++ b/lisp/org/ob-shell.el | |||
| @@ -166,6 +166,11 @@ This function is called by `org-babel-execute-src-block'." | |||
| 166 | "Return a list of statements declaring the values as a generic variable." | 166 | "Return a list of statements declaring the values as a generic variable." |
| 167 | (format "%s=%s" varname (org-babel-sh-var-to-sh values sep hline))) | 167 | (format "%s=%s" varname (org-babel-sh-var-to-sh values sep hline))) |
| 168 | 168 | ||
| 169 | (defun org-babel--variable-assignments:fish | ||
| 170 | (varname values &optional sep hline) | ||
| 171 | "Return a list of statements declaring the values as a fish variable." | ||
| 172 | (format "set %s %s" varname (org-babel-sh-var-to-sh values sep hline))) | ||
| 173 | |||
| 169 | (defun org-babel--variable-assignments:bash_array | 174 | (defun org-babel--variable-assignments:bash_array |
| 170 | (varname values &optional sep hline) | 175 | (varname values &optional sep hline) |
| 171 | "Return a list of statements declaring the values as a bash array." | 176 | "Return a list of statements declaring the values as a bash array." |
| @@ -211,8 +216,11 @@ This function is called by `org-babel-execute-src-block'." | |||
| 211 | (if (string-suffix-p "bash" shell-file-name) | 216 | (if (string-suffix-p "bash" shell-file-name) |
| 212 | (org-babel--variable-assignments:bash | 217 | (org-babel--variable-assignments:bash |
| 213 | (car pair) (cdr pair) sep hline) | 218 | (car pair) (cdr pair) sep hline) |
| 214 | (org-babel--variable-assignments:sh-generic | 219 | (if (string-suffix-p "fish" shell-file-name) |
| 215 | (car pair) (cdr pair) sep hline))) | 220 | (org-babel--variable-assignments:fish |
| 221 | (car pair) (cdr pair) sep hline) | ||
| 222 | (org-babel--variable-assignments:sh-generic | ||
| 223 | (car pair) (cdr pair) sep hline)))) | ||
| 216 | (org-babel--get-vars params)))) | 224 | (org-babel--get-vars params)))) |
| 217 | 225 | ||
| 218 | (defun org-babel-sh-var-to-sh (var &optional sep hline) | 226 | (defun org-babel-sh-var-to-sh (var &optional sep hline) |
diff --git a/lisp/org/ol-info.el b/lisp/org/ol-info.el index ad9e4a12bd7..350ccf5cc57 100644 --- a/lisp/org/ol-info.el +++ b/lisp/org/ol-info.el | |||
| @@ -129,13 +129,13 @@ If LINK is not an info link then DESC is returned." | |||
| 129 | 129 | ||
| 130 | (defconst org-info-emacs-documents | 130 | (defconst org-info-emacs-documents |
| 131 | '("ada-mode" "auth" "autotype" "bovine" "calc" "ccmode" "cl" "dbus" "dired-x" | 131 | '("ada-mode" "auth" "autotype" "bovine" "calc" "ccmode" "cl" "dbus" "dired-x" |
| 132 | "ebrowse" "ede" "ediff" "edt" "efaq-w32" "efaq" "eieio" "eintr" "elisp" | 132 | "ebrowse" "ede" "ediff" "edt" "efaq-w32" "efaq" "eglot" "eieio" "eintr" |
| 133 | "emacs-gnutls" "emacs-mime" "emacs" "epa" "erc" "ert" "eshell" "eudc" "eww" | 133 | "elisp" "emacs-gnutls" "emacs-mime" "emacs" "epa" "erc" "ert" "eshell" |
| 134 | "flymake" "forms" "gnus" "htmlfontify" "idlwave" "ido" "info" "mairix-el" | 134 | "eudc" "eww" "flymake" "forms" "gnus" "htmlfontify" "idlwave" "ido" "info" |
| 135 | "message" "mh-e" "newsticker" "nxml-mode" "octave-mode" "org" "pcl-cvs" | 135 | "mairix-el" "message" "mh-e" "modus-themes" "newsticker" "nxml-mode" "octave-mode" |
| 136 | "pgg" "rcirc" "reftex" "remember" "sasl" "sc" "semantic" "ses" "sieve" | 136 | "org" "pcl-cvs" "pgg" "rcirc" "reftex" "remember" "sasl" "sc" "semantic" |
| 137 | "smtpmail" "speedbar" "srecode" "todo-mode" "tramp" "url" "vip" "viper" | 137 | "ses" "sieve" "smtpmail" "speedbar" "srecode" "todo-mode" "tramp" "transient" |
| 138 | "widget" "wisent" "woman") | 138 | "url" "use-package" "vhdl-mode" "vip" "viper" "vtable" "widget" "wisent" "woman") |
| 139 | "List of Emacs documents available. | 139 | "List of Emacs documents available. |
| 140 | Taken from <https://www.gnu.org/software/emacs/manual/html_mono/.>") | 140 | Taken from <https://www.gnu.org/software/emacs/manual/html_mono/.>") |
| 141 | 141 | ||
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 38e81d9d713..670116304e6 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -6321,6 +6321,11 @@ specification like [h]h:mm." | |||
| 6321 | (org-element-cache-map | 6321 | (org-element-cache-map |
| 6322 | (lambda (el) | 6322 | (lambda (el) |
| 6323 | (when (and (org-element-property :deadline el) | 6323 | (when (and (org-element-property :deadline el) |
| 6324 | ;; Only consider active timestamp values. | ||
| 6325 | (memq (org-element-property | ||
| 6326 | :type | ||
| 6327 | (org-element-property :deadline el)) | ||
| 6328 | '(diary active active-range)) | ||
| 6324 | (or (not with-hour) | 6329 | (or (not with-hour) |
| 6325 | (org-element-property | 6330 | (org-element-property |
| 6326 | :hour-start | 6331 | :hour-start |
| @@ -6662,6 +6667,11 @@ scheduled items with an hour specification like [h]h:mm." | |||
| 6662 | (org-element-cache-map | 6667 | (org-element-cache-map |
| 6663 | (lambda (el) | 6668 | (lambda (el) |
| 6664 | (when (and (org-element-property :scheduled el) | 6669 | (when (and (org-element-property :scheduled el) |
| 6670 | ;; Only consider active timestamp values. | ||
| 6671 | (memq (org-element-property | ||
| 6672 | :type | ||
| 6673 | (org-element-property :scheduled el)) | ||
| 6674 | '(diary active active-range)) | ||
| 6665 | (or (not with-hour) | 6675 | (or (not with-hour) |
| 6666 | (org-element-property | 6676 | (org-element-property |
| 6667 | :hour-start | 6677 | :hour-start |
diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el index cfef38581c6..e5b0fbcf2a9 100644 --- a/lisp/org/org-version.el +++ b/lisp/org/org-version.el | |||
| @@ -5,13 +5,13 @@ | |||
| 5 | (defun org-release () | 5 | (defun org-release () |
| 6 | "The release version of Org. | 6 | "The release version of Org. |
| 7 | Inserted by installing Org mode or when a release is made." | 7 | Inserted by installing Org mode or when a release is made." |
| 8 | (let ((org-release "9.6.10")) | 8 | (let ((org-release "9.6.11")) |
| 9 | org-release)) | 9 | org-release)) |
| 10 | ;;;###autoload | 10 | ;;;###autoload |
| 11 | (defun org-git-version () | 11 | (defun org-git-version () |
| 12 | "The Git version of Org mode. | 12 | "The Git version of Org mode. |
| 13 | Inserted by installing Org or when a release is made." | 13 | Inserted by installing Org or when a release is made." |
| 14 | (let ((org-git-version "release_9.6.10")) | 14 | (let ((org-git-version "release_9.6.11")) |
| 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 0ba0cef4490..863a9e093f5 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | ;; URL: https://orgmode.org | 9 | ;; URL: https://orgmode.org |
| 10 | ;; Package-Requires: ((emacs "26.1")) | 10 | ;; Package-Requires: ((emacs "26.1")) |
| 11 | 11 | ||
| 12 | ;; Version: 9.6.10 | 12 | ;; Version: 9.6.11 |
| 13 | 13 | ||
| 14 | ;; This file is part of GNU Emacs. | 14 | ;; This file is part of GNU Emacs. |
| 15 | ;; | 15 | ;; |
diff --git a/lisp/org/ox.el b/lisp/org/ox.el index 94cc5a22881..e9cc0ed8fc7 100644 --- a/lisp/org/ox.el +++ b/lisp/org/ox.el | |||
| @@ -264,13 +264,17 @@ See `org-export-inline-image-p' for more information about | |||
| 264 | rules.") | 264 | rules.") |
| 265 | 265 | ||
| 266 | (defconst org-export-ignored-local-variables | 266 | (defconst org-export-ignored-local-variables |
| 267 | '( org-font-lock-keywords org-element--cache-change-tic | 267 | '( org-font-lock-keywords |
| 268 | org-element--cache-change-tic org-element--cache-size | 268 | org-element--cache org-element--cache-size |
| 269 | org-element--headline-cache-size | 269 | org-element--headline-cache org-element--headline-cache-size |
| 270 | org-element--cache-sync-keys-value | 270 | org-element--cache-hash-left org-element--cache-hash-right |
| 271 | org-element--cache-change-warning org-element--headline-cache | 271 | org-element--cache-sync-requests org-element--cache-sync-timer |
| 272 | org-element--cache org-element--cache-sync-keys | 272 | org-element--cache-sync-keys-value org-element--cache-change-tic |
| 273 | org-element--cache-sync-requests org-element--cache-sync-timer) | 273 | org-element--cache-last-buffer-size |
| 274 | org-element--cache-diagnostics-ring | ||
| 275 | org-element--cache-diagnostics-ring-size | ||
| 276 | org-element--cache-gapless | ||
| 277 | org-element--cache-change-warning) | ||
| 274 | "List of variables not copied through upon buffer duplication. | 278 | "List of variables not copied through upon buffer duplication. |
| 275 | Export process takes place on a copy of the original buffer. | 279 | Export process takes place on a copy of the original buffer. |
| 276 | When this copy is created, all Org related local variables not in | 280 | When this copy is created, all Org related local variables not in |
| @@ -6691,6 +6695,11 @@ or FILE." | |||
| 6691 | ',ext-plist))) | 6695 | ',ext-plist))) |
| 6692 | (with-temp-buffer | 6696 | (with-temp-buffer |
| 6693 | (insert output) | 6697 | (insert output) |
| 6698 | ;; Ensure final newline. This is what was done | ||
| 6699 | ;; historically, when we used `write-file'. | ||
| 6700 | ;; Note that adding a newline is only safe for | ||
| 6701 | ;; non-binary data. | ||
| 6702 | (unless (bolp) (insert "\n")) | ||
| 6694 | (let ((coding-system-for-write ',encoding)) | 6703 | (let ((coding-system-for-write ',encoding)) |
| 6695 | (write-region (point-min) (point-max) ,file))) | 6704 | (write-region (point-min) (point-max) ,file))) |
| 6696 | (or (ignore-errors (funcall ',post-process ,file)) ,file))) | 6705 | (or (ignore-errors (funcall ',post-process ,file)) ,file))) |
| @@ -6698,6 +6707,11 @@ or FILE." | |||
| 6698 | backend subtreep visible-only body-only ext-plist))) | 6707 | backend subtreep visible-only body-only ext-plist))) |
| 6699 | (with-temp-buffer | 6708 | (with-temp-buffer |
| 6700 | (insert output) | 6709 | (insert output) |
| 6710 | ;; Ensure final newline. This is what was done | ||
| 6711 | ;; historically, when we used `write-file'. | ||
| 6712 | ;; Note that adding a newline is only safe for | ||
| 6713 | ;; non-binary data. | ||
| 6714 | (unless (bolp) (insert "\n")) | ||
| 6701 | (let ((coding-system-for-write encoding)) | 6715 | (let ((coding-system-for-write encoding)) |
| 6702 | (write-region (point-min) (point-max) file))) | 6716 | (write-region (point-min) (point-max) file))) |
| 6703 | (when (and (org-export--copy-to-kill-ring-p) (org-string-nw-p output)) | 6717 | (when (and (org-export--copy-to-kill-ring-p) (org-string-nw-p output)) |