diff options
| author | Kyle Meyer | 2023-04-16 21:13:08 -0400 |
|---|---|---|
| committer | Kyle Meyer | 2023-04-16 21:13:08 -0400 |
| commit | 596b780ab71d6495f866de35c234fe65a8a7914a (patch) | |
| tree | 3066133822793218ed83771f0632c5791ff17cb6 | |
| parent | a0b04a2247908e4d7d1d9f66886d3c1f21866084 (diff) | |
| download | emacs-596b780ab71d6495f866de35c234fe65a8a7914a.tar.gz emacs-596b780ab71d6495f866de35c234fe65a8a7914a.zip | |
Update to Org 9.6.4-2-g0f6ae7
| -rw-r--r-- | doc/misc/org.org | 5 | ||||
| -rw-r--r-- | etc/refcards/orgcard.tex | 2 | ||||
| -rw-r--r-- | lisp/org/ob-tangle.el | 10 | ||||
| -rw-r--r-- | lisp/org/org-agenda.el | 3 | ||||
| -rw-r--r-- | lisp/org/org-element.el | 2 | ||||
| -rw-r--r-- | lisp/org/org-macs.el | 6 | ||||
| -rw-r--r-- | lisp/org/org-table.el | 6 | ||||
| -rw-r--r-- | lisp/org/org-version.el | 4 | ||||
| -rw-r--r-- | lisp/org/org.el | 5 | ||||
| -rw-r--r-- | lisp/org/ox-latex.el | 2 | ||||
| -rw-r--r-- | lisp/org/ox-odt.el | 10 |
11 files changed, 32 insertions, 23 deletions
diff --git a/doc/misc/org.org b/doc/misc/org.org index 7ff0933de75..ae3fae0623e 100644 --- a/doc/misc/org.org +++ b/doc/misc/org.org | |||
| @@ -5958,8 +5958,9 @@ the agenda (see [[*Weekly/daily agenda]]). We distinguish: | |||
| 5958 | #+findex: org-block | 5958 | #+findex: org-block |
| 5959 | 5959 | ||
| 5960 | For more complex date specifications, Org mode supports using the | 5960 | For more complex date specifications, Org mode supports using the |
| 5961 | special expression diary entries implemented in the Emacs Calendar | 5961 | special expression diary entries implemented in the |
| 5962 | package[fn:20]. For example, with optional time: | 5962 | [[info:emacs#Special Diary Entries][Emacs Calendar package]][fn:20]. |
| 5963 | For example, with optional time: | ||
| 5963 | 5964 | ||
| 5964 | #+begin_example | 5965 | #+begin_example |
| 5965 | ,* 22:00-23:00 The nerd meeting on every 2nd Thursday of the month | 5966 | ,* 22:00-23:00 The nerd meeting on every 2nd Thursday of the month |
diff --git a/etc/refcards/orgcard.tex b/etc/refcards/orgcard.tex index f8894d9dc1c..c5d112dba72 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.3} | 2 | \def\orgversionnumber{9.6.4} |
| 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-tangle.el b/lisp/org/ob-tangle.el index 27443fc2e81..980d4a12054 100644 --- a/lisp/org/ob-tangle.el +++ b/lisp/org/ob-tangle.el | |||
| @@ -158,9 +158,9 @@ result. The default value is `org-remove-indentation'." | |||
| 158 | :version "24.1" | 158 | :version "24.1" |
| 159 | :type 'function) | 159 | :type 'function) |
| 160 | 160 | ||
| 161 | (defcustom org-babel-tangle-default-file-mode #o544 | 161 | (defcustom org-babel-tangle-default-file-mode #o644 |
| 162 | "The default mode used for tangled files, as an integer. | 162 | "The default mode used for tangled files, as an integer. |
| 163 | The default value 356 correspands to the octal #o544, which is | 163 | The default value 420 correspands to the octal #o644, which is |
| 164 | read-write permissions for the user, read-only for everyone else." | 164 | read-write permissions for the user, read-only for everyone else." |
| 165 | :group 'org-babel-tangle | 165 | :group 'org-babel-tangle |
| 166 | :package-version '(Org . "9.6") | 166 | :package-version '(Org . "9.6") |
| @@ -361,9 +361,9 @@ Did you give the decimal value %1$d by mistake?" mode))) | |||
| 361 | ;; Match regexp taken from `file-modes-symbolic-to-number'. | 361 | ;; Match regexp taken from `file-modes-symbolic-to-number'. |
| 362 | (file-modes-symbolic-to-number mode org-babel-tangle-default-file-mode)) | 362 | (file-modes-symbolic-to-number mode org-babel-tangle-default-file-mode)) |
| 363 | ((string-match-p "^[r-][w-][xs-][r-][w-][xs-][r-][w-][x-]$" mode) | 363 | ((string-match-p "^[r-][w-][xs-][r-][w-][xs-][r-][w-][x-]$" mode) |
| 364 | (file-modes-symbolic-to-number (concat "u=" (substring mode 0 3) | 364 | (file-modes-symbolic-to-number (concat "u=" (delete ?- (substring mode 0 3)) |
| 365 | ",g=" (substring mode 3 6) | 365 | ",g=" (delete ?- (substring mode 3 6)) |
| 366 | ",o=" (substring mode 6 9)) | 366 | ",o=" (delete ?- (substring mode 6 9))) |
| 367 | 0)) | 367 | 0)) |
| 368 | (t (error "File mode %S not recognized as a valid format. See `org-babel-interpret-file-mode'." mode)))) | 368 | (t (error "File mode %S not recognized as a valid format. See `org-babel-interpret-file-mode'." mode)))) |
| 369 | 369 | ||
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 2ec2f4c00bc..d3e61643190 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -7724,8 +7724,7 @@ The optional argument TYPE tells the agenda type." | |||
| 7724 | (unless (string= org-agenda-todo-keyword-format "") | 7724 | (unless (string= org-agenda-todo-keyword-format "") |
| 7725 | ;; Remove `display' property as the icon could leak | 7725 | ;; Remove `display' property as the icon could leak |
| 7726 | ;; on the white space. | 7726 | ;; on the white space. |
| 7727 | (org-add-props " " (org-plist-delete (text-properties-at 0 x) | 7727 | (apply #'propertize " " (org-plist-delete (text-properties-at 0 x) 'display))) |
| 7728 | 'display))) | ||
| 7729 | (substring x (match-end 3))))))) | 7728 | (substring x (match-end 3))))))) |
| 7730 | x))) | 7729 | x))) |
| 7731 | 7730 | ||
diff --git a/lisp/org/org-element.el b/lisp/org/org-element.el index 51729b3f33d..517d45b0224 100644 --- a/lisp/org/org-element.el +++ b/lisp/org/org-element.el | |||
| @@ -5329,7 +5329,7 @@ seconds.") | |||
| 5329 | "Duration, as a time value, of the pause between synchronizations. | 5329 | "Duration, as a time value, of the pause between synchronizations. |
| 5330 | See `org-element-cache-sync-duration' for more information.") | 5330 | See `org-element-cache-sync-duration' for more information.") |
| 5331 | 5331 | ||
| 5332 | (defvar org-element--cache-self-verify t | 5332 | (defvar org-element--cache-self-verify nil |
| 5333 | "Activate extra consistency checks for the cache. | 5333 | "Activate extra consistency checks for the cache. |
| 5334 | 5334 | ||
| 5335 | This may cause serious performance degradation depending on the value | 5335 | This may cause serious performance degradation depending on the value |
diff --git a/lisp/org/org-macs.el b/lisp/org/org-macs.el index 8d7b0b034f8..aef05bc6ee6 100644 --- a/lisp/org/org-macs.el +++ b/lisp/org/org-macs.el | |||
| @@ -36,6 +36,10 @@ | |||
| 36 | 36 | ||
| 37 | ;;; Org version verification. | 37 | ;;; Org version verification. |
| 38 | 38 | ||
| 39 | (defconst org--built-in-p nil | ||
| 40 | "When non-nil, assume that Org is a part of Emacs source. | ||
| 41 | For internal use only. See Emacs bug #62762. | ||
| 42 | This variable is only supposed to be changed by Emacs build scripts.") | ||
| 39 | (defmacro org-assert-version () | 43 | (defmacro org-assert-version () |
| 40 | "Assert compile time and runtime version match." | 44 | "Assert compile time and runtime version match." |
| 41 | ;; We intentionally use a more permissive `org-release' instead of | 45 | ;; We intentionally use a more permissive `org-release' instead of |
| @@ -45,7 +49,7 @@ | |||
| 45 | ;; `org-assert-version' calls would fail using strict | 49 | ;; `org-assert-version' calls would fail using strict |
| 46 | ;; `org-git-version' check because the generated Org version strings | 50 | ;; `org-git-version' check because the generated Org version strings |
| 47 | ;; will not match. | 51 | ;; will not match. |
| 48 | `(unless (equal (org-release) ,(org-release)) | 52 | `(unless (or org--built-in-p (equal (org-release) ,(org-release))) |
| 49 | (warn "Org version mismatch. Org loading aborted. | 53 | (warn "Org version mismatch. Org loading aborted. |
| 50 | This warning usually appears when a built-in Org version is loaded | 54 | This warning usually appears when a built-in Org version is loaded |
| 51 | prior to the more recent Org version. | 55 | prior to the more recent Org version. |
diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el index 5116b1127f7..83bad3f3a64 100644 --- a/lisp/org/org-table.el +++ b/lisp/org/org-table.el | |||
| @@ -5414,12 +5414,10 @@ overwritten, and the table is not marked as requiring realignment." | |||
| 5414 | (self-insert-command N)) | 5414 | (self-insert-command N)) |
| 5415 | (setq org-table-may-need-update t) | 5415 | (setq org-table-may-need-update t) |
| 5416 | (let* (orgtbl-mode | 5416 | (let* (orgtbl-mode |
| 5417 | a | ||
| 5418 | (cmd (or (key-binding | 5417 | (cmd (or (key-binding |
| 5419 | (or (and (listp function-key-map) | 5418 | (or (and (listp function-key-map) |
| 5420 | (setq a (assoc last-input-event function-key-map)) | 5419 | (cdr (assoc last-command-event function-key-map))) |
| 5421 | (cdr a)) | 5420 | (vector last-command-event))) |
| 5422 | (vector last-input-event))) | ||
| 5423 | 'self-insert-command))) | 5421 | 'self-insert-command))) |
| 5424 | (call-interactively cmd) | 5422 | (call-interactively cmd) |
| 5425 | (if (and org-self-insert-cluster-for-undo | 5423 | (if (and org-self-insert-cluster-for-undo |
diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el index 43fdcb82832..15e4a50877a 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.3")) | 8 | (let ((org-release "9.6.4")) |
| 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.3-2-gf2949d")) | 14 | (let ((org-git-version "release_9.6.4-2-g0f6ae7")) |
| 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 be9d0e32dd0..f7c2b6d16d1 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.3 | 12 | ;; Version: 9.6.4 |
| 13 | 13 | ||
| 14 | ;; This file is part of GNU Emacs. | 14 | ;; This file is part of GNU Emacs. |
| 15 | ;; | 15 | ;; |
| @@ -9143,7 +9143,8 @@ nil or a string to be used for the todo mark." ) | |||
| 9143 | (replace-match "0" t nil nil 1))))) | 9143 | (replace-match "0" t nil nil 1))))) |
| 9144 | 9144 | ||
| 9145 | (defvar org-state) | 9145 | (defvar org-state) |
| 9146 | (defvar org-blocked-by-checkboxes) | 9146 | ;; FIXME: We should refactor this and similar dynamically scoped blocker flags. |
| 9147 | (defvar org-blocked-by-checkboxes nil) ; dynamically scoped | ||
| 9147 | (defun org-todo (&optional arg) | 9148 | (defun org-todo (&optional arg) |
| 9148 | "Change the TODO state of an item. | 9149 | "Change the TODO state of an item. |
| 9149 | 9150 | ||
diff --git a/lisp/org/ox-latex.el b/lisp/org/ox-latex.el index 50a0950aa04..26f8742bec8 100644 --- a/lisp/org/ox-latex.el +++ b/lisp/org/ox-latex.el | |||
| @@ -1822,7 +1822,7 @@ INFO is a plist used as a communication channel. See | |||
| 1822 | (replace-regexp-in-string | 1822 | (replace-regexp-in-string |
| 1823 | "--\\|[\\{}$%&_#~^]" | 1823 | "--\\|[\\{}$%&_#~^]" |
| 1824 | (lambda (m) | 1824 | (lambda (m) |
| 1825 | (cond ((equal m "--") "-{}-") | 1825 | (cond ((equal m "--") "-{}-{}") |
| 1826 | ((equal m "\\") "\\textbackslash{}") | 1826 | ((equal m "\\") "\\textbackslash{}") |
| 1827 | ((equal m "~") "\\textasciitilde{}") | 1827 | ((equal m "~") "\\textasciitilde{}") |
| 1828 | ((equal m "^") "\\textasciicircum{}") | 1828 | ((equal m "^") "\\textasciicircum{}") |
diff --git a/lisp/org/ox-odt.el b/lisp/org/ox-odt.el index cf217c9e781..03c909f78ed 100644 --- a/lisp/org/ox-odt.el +++ b/lisp/org/ox-odt.el | |||
| @@ -2923,17 +2923,23 @@ contextual information." | |||
| 2923 | ;; not be desired in scripts that do not separate words with | 2923 | ;; not be desired in scripts that do not separate words with |
| 2924 | ;; spaces (for example, Han script). `fill-region' is able to | 2924 | ;; spaces (for example, Han script). `fill-region' is able to |
| 2925 | ;; handle such situations. | 2925 | ;; handle such situations. |
| 2926 | ;; FIXME: The unnecessary spaced may still remain when a newline | 2926 | ;; FIXME: The unnecessary spacing may still remain when a newline |
| 2927 | ;; is at a boundary between Org objects (e.g. italics markup | 2927 | ;; is at a boundary between Org objects (e.g. italics markup |
| 2928 | ;; followed by newline). | 2928 | ;; followed by newline). |
| 2929 | (setq output | 2929 | (setq output |
| 2930 | (with-temp-buffer | 2930 | (with-temp-buffer |
| 2931 | (insert output) | ||
| 2932 | (save-match-data | 2931 | (save-match-data |
| 2933 | (let ((leading (and (string-match (rx bos (1+ blank)) output) | 2932 | (let ((leading (and (string-match (rx bos (1+ blank)) output) |
| 2934 | (match-string 0 output))) | 2933 | (match-string 0 output))) |
| 2935 | (trailing (and (string-match (rx (1+ blank) eos) output) | 2934 | (trailing (and (string-match (rx (1+ blank) eos) output) |
| 2936 | (match-string 0 output)))) | 2935 | (match-string 0 output)))) |
| 2936 | (insert | ||
| 2937 | (substring | ||
| 2938 | output | ||
| 2939 | (length leading) | ||
| 2940 | (pcase (length trailing) | ||
| 2941 | (0 nil) | ||
| 2942 | (n (- n))))) | ||
| 2937 | ;; Unfill, retaining leading/trailing space. | 2943 | ;; Unfill, retaining leading/trailing space. |
| 2938 | (let ((fill-column most-positive-fixnum)) | 2944 | (let ((fill-column most-positive-fixnum)) |
| 2939 | (fill-region (point-min) (point-max))) | 2945 | (fill-region (point-min) (point-max))) |