diff options
author | Kyle Meyer <kyle@kyleam.com> | 2023-04-16 21:13:08 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2023-04-16 21:13:08 -0400 |
commit | 596b780ab71d6495f866de35c234fe65a8a7914a (patch) | |
tree | 3066133822793218ed83771f0632c5791ff17cb6 | |
parent | a0b04a2247908e4d7d1d9f66886d3c1f21866084 (diff) | |
download | emacs-596b780ab71d6495f866de35c234fe65a8a7914a.tar.gz |
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: #+findex: org-block For more complex date specifications, Org mode supports using the - special expression diary entries implemented in the Emacs Calendar - package[fn:20]. For example, with optional time: + special expression diary entries implemented in the + [[info:emacs#Special Diary Entries][Emacs Calendar package]][fn:20]. + For example, with optional time: #+begin_example ,* 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 @@ % Reference Card for Org Mode -\def\orgversionnumber{9.6.3} +\def\orgversionnumber{9.6.4} \def\versionyear{2023} % latest update \input emacsver.tex 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'." :version "24.1" :type 'function) -(defcustom org-babel-tangle-default-file-mode #o544 +(defcustom org-babel-tangle-default-file-mode #o644 "The default mode used for tangled files, as an integer. -The default value 356 correspands to the octal #o544, which is +The default value 420 correspands to the octal #o644, which is read-write permissions for the user, read-only for everyone else." :group 'org-babel-tangle :package-version '(Org . "9.6") @@ -361,9 +361,9 @@ Did you give the decimal value %1$d by mistake?" mode))) ;; Match regexp taken from `file-modes-symbolic-to-number'. (file-modes-symbolic-to-number mode org-babel-tangle-default-file-mode)) ((string-match-p "^[r-][w-][xs-][r-][w-][xs-][r-][w-][x-]$" mode) - (file-modes-symbolic-to-number (concat "u=" (substring mode 0 3) - ",g=" (substring mode 3 6) - ",o=" (substring mode 6 9)) + (file-modes-symbolic-to-number (concat "u=" (delete ?- (substring mode 0 3)) + ",g=" (delete ?- (substring mode 3 6)) + ",o=" (delete ?- (substring mode 6 9))) 0)) (t (error "File mode %S not recognized as a valid format. See `org-babel-interpret-file-mode'." mode)))) 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." (unless (string= org-agenda-todo-keyword-format "") ;; Remove `display' property as the icon could leak ;; on the white space. - (org-add-props " " (org-plist-delete (text-properties-at 0 x) - 'display))) + (apply #'propertize " " (org-plist-delete (text-properties-at 0 x) 'display))) (substring x (match-end 3))))))) x))) 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.") "Duration, as a time value, of the pause between synchronizations. See `org-element-cache-sync-duration' for more information.") -(defvar org-element--cache-self-verify t +(defvar org-element--cache-self-verify nil "Activate extra consistency checks for the cache. 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 @@ ;;; Org version verification. +(defconst org--built-in-p nil + "When non-nil, assume that Org is a part of Emacs source. +For internal use only. See Emacs bug #62762. +This variable is only supposed to be changed by Emacs build scripts.") (defmacro org-assert-version () "Assert compile time and runtime version match." ;; We intentionally use a more permissive `org-release' instead of @@ -45,7 +49,7 @@ ;; `org-assert-version' calls would fail using strict ;; `org-git-version' check because the generated Org version strings ;; will not match. - `(unless (equal (org-release) ,(org-release)) + `(unless (or org--built-in-p (equal (org-release) ,(org-release))) (warn "Org version mismatch. Org loading aborted. This warning usually appears when a built-in Org version is loaded 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." (self-insert-command N)) (setq org-table-may-need-update t) (let* (orgtbl-mode - a (cmd (or (key-binding (or (and (listp function-key-map) - (setq a (assoc last-input-event function-key-map)) - (cdr a)) - (vector last-input-event))) + (cdr (assoc last-command-event function-key-map))) + (vector last-command-event))) 'self-insert-command))) (call-interactively cmd) (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 @@ (defun org-release () "The release version of Org. Inserted by installing Org mode or when a release is made." - (let ((org-release "9.6.3")) + (let ((org-release "9.6.4")) org-release)) ;;;###autoload (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.6.3-2-gf2949d")) + (let ((org-git-version "release_9.6.4-2-g0f6ae7")) org-git-version)) (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 @@ ;; URL: https://orgmode.org ;; Package-Requires: ((emacs "26.1")) -;; Version: 9.6.3 +;; Version: 9.6.4 ;; This file is part of GNU Emacs. ;; @@ -9143,7 +9143,8 @@ nil or a string to be used for the todo mark." ) (replace-match "0" t nil nil 1))))) (defvar org-state) -(defvar org-blocked-by-checkboxes) +;; FIXME: We should refactor this and similar dynamically scoped blocker flags. +(defvar org-blocked-by-checkboxes nil) ; dynamically scoped (defun org-todo (&optional arg) "Change the TODO state of an item. 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 (replace-regexp-in-string "--\\|[\\{}$%&_#~^]" (lambda (m) - (cond ((equal m "--") "-{}-") + (cond ((equal m "--") "-{}-{}") ((equal m "\\") "\\textbackslash{}") ((equal m "~") "\\textasciitilde{}") ((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." ;; not be desired in scripts that do not separate words with ;; spaces (for example, Han script). `fill-region' is able to ;; handle such situations. - ;; FIXME: The unnecessary spaced may still remain when a newline + ;; FIXME: The unnecessary spacing may still remain when a newline ;; is at a boundary between Org objects (e.g. italics markup ;; followed by newline). (setq output (with-temp-buffer - (insert output) (save-match-data (let ((leading (and (string-match (rx bos (1+ blank)) output) (match-string 0 output))) (trailing (and (string-match (rx (1+ blank) eos) output) (match-string 0 output)))) + (insert + (substring + output + (length leading) + (pcase (length trailing) + (0 nil) + (n (- n))))) ;; Unfill, retaining leading/trailing space. (let ((fill-column most-positive-fixnum)) (fill-region (point-min) (point-max))) |