Update to Org 9.6.4-2-g0f6ae7
This commit is contained in:
parent
a0b04a2247
commit
596b780ab7
11 changed files with 32 additions and 23 deletions
|
@ -5958,8 +5958,9 @@ the agenda (see [[*Weekly/daily agenda]]). We distinguish:
|
||||||
#+findex: org-block
|
#+findex: org-block
|
||||||
|
|
||||||
For more complex date specifications, Org mode supports using the
|
For more complex date specifications, Org mode supports using the
|
||||||
special expression diary entries implemented in the Emacs Calendar
|
special expression diary entries implemented in the
|
||||||
package[fn:20]. For example, with optional time:
|
[[info:emacs#Special Diary Entries][Emacs Calendar package]][fn:20].
|
||||||
|
For example, with optional time:
|
||||||
|
|
||||||
#+begin_example
|
#+begin_example
|
||||||
,* 22:00-23:00 The nerd meeting on every 2nd Thursday of the month
|
,* 22:00-23:00 The nerd meeting on every 2nd Thursday of the month
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
% Reference Card for Org Mode
|
% Reference Card for Org Mode
|
||||||
\def\orgversionnumber{9.6.3}
|
\def\orgversionnumber{9.6.4}
|
||||||
\def\versionyear{2023} % latest update
|
\def\versionyear{2023} % latest update
|
||||||
\input emacsver.tex
|
\input emacsver.tex
|
||||||
|
|
||||||
|
|
|
@ -158,9 +158,9 @@ result. The default value is `org-remove-indentation'."
|
||||||
:version "24.1"
|
:version "24.1"
|
||||||
:type 'function)
|
: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 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."
|
read-write permissions for the user, read-only for everyone else."
|
||||||
:group 'org-babel-tangle
|
:group 'org-babel-tangle
|
||||||
:package-version '(Org . "9.6")
|
: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'.
|
;; Match regexp taken from `file-modes-symbolic-to-number'.
|
||||||
(file-modes-symbolic-to-number mode org-babel-tangle-default-file-mode))
|
(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)
|
((string-match-p "^[r-][w-][xs-][r-][w-][xs-][r-][w-][x-]$" mode)
|
||||||
(file-modes-symbolic-to-number (concat "u=" (substring mode 0 3)
|
(file-modes-symbolic-to-number (concat "u=" (delete ?- (substring mode 0 3))
|
||||||
",g=" (substring mode 3 6)
|
",g=" (delete ?- (substring mode 3 6))
|
||||||
",o=" (substring mode 6 9))
|
",o=" (delete ?- (substring mode 6 9)))
|
||||||
0))
|
0))
|
||||||
(t (error "File mode %S not recognized as a valid format. See `org-babel-interpret-file-mode'." mode))))
|
(t (error "File mode %S not recognized as a valid format. See `org-babel-interpret-file-mode'." mode))))
|
||||||
|
|
||||||
|
|
|
@ -7724,8 +7724,7 @@ The optional argument TYPE tells the agenda type."
|
||||||
(unless (string= org-agenda-todo-keyword-format "")
|
(unless (string= org-agenda-todo-keyword-format "")
|
||||||
;; Remove `display' property as the icon could leak
|
;; Remove `display' property as the icon could leak
|
||||||
;; on the white space.
|
;; on the white space.
|
||||||
(org-add-props " " (org-plist-delete (text-properties-at 0 x)
|
(apply #'propertize " " (org-plist-delete (text-properties-at 0 x) 'display)))
|
||||||
'display)))
|
|
||||||
(substring x (match-end 3)))))))
|
(substring x (match-end 3)))))))
|
||||||
x)))
|
x)))
|
||||||
|
|
||||||
|
|
|
@ -5329,7 +5329,7 @@ seconds.")
|
||||||
"Duration, as a time value, of the pause between synchronizations.
|
"Duration, as a time value, of the pause between synchronizations.
|
||||||
See `org-element-cache-sync-duration' for more information.")
|
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.
|
"Activate extra consistency checks for the cache.
|
||||||
|
|
||||||
This may cause serious performance degradation depending on the value
|
This may cause serious performance degradation depending on the value
|
||||||
|
|
|
@ -36,6 +36,10 @@
|
||||||
|
|
||||||
;;; Org version verification.
|
;;; 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 ()
|
(defmacro org-assert-version ()
|
||||||
"Assert compile time and runtime version match."
|
"Assert compile time and runtime version match."
|
||||||
;; We intentionally use a more permissive `org-release' instead of
|
;; We intentionally use a more permissive `org-release' instead of
|
||||||
|
@ -45,7 +49,7 @@
|
||||||
;; `org-assert-version' calls would fail using strict
|
;; `org-assert-version' calls would fail using strict
|
||||||
;; `org-git-version' check because the generated Org version strings
|
;; `org-git-version' check because the generated Org version strings
|
||||||
;; will not match.
|
;; 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.
|
(warn "Org version mismatch. Org loading aborted.
|
||||||
This warning usually appears when a built-in Org version is loaded
|
This warning usually appears when a built-in Org version is loaded
|
||||||
prior to the more recent Org version.
|
prior to the more recent Org version.
|
||||||
|
|
|
@ -5414,12 +5414,10 @@ overwritten, and the table is not marked as requiring realignment."
|
||||||
(self-insert-command N))
|
(self-insert-command N))
|
||||||
(setq org-table-may-need-update t)
|
(setq org-table-may-need-update t)
|
||||||
(let* (orgtbl-mode
|
(let* (orgtbl-mode
|
||||||
a
|
|
||||||
(cmd (or (key-binding
|
(cmd (or (key-binding
|
||||||
(or (and (listp function-key-map)
|
(or (and (listp function-key-map)
|
||||||
(setq a (assoc last-input-event function-key-map))
|
(cdr (assoc last-command-event function-key-map)))
|
||||||
(cdr a))
|
(vector last-command-event)))
|
||||||
(vector last-input-event)))
|
|
||||||
'self-insert-command)))
|
'self-insert-command)))
|
||||||
(call-interactively cmd)
|
(call-interactively cmd)
|
||||||
(if (and org-self-insert-cluster-for-undo
|
(if (and org-self-insert-cluster-for-undo
|
||||||
|
|
|
@ -5,13 +5,13 @@
|
||||||
(defun org-release ()
|
(defun org-release ()
|
||||||
"The release version of Org.
|
"The release version of Org.
|
||||||
Inserted by installing Org mode or when a release is made."
|
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))
|
org-release))
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun org-git-version ()
|
(defun org-git-version ()
|
||||||
"The Git version of Org mode.
|
"The Git version of Org mode.
|
||||||
Inserted by installing Org or when a release is made."
|
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))
|
org-git-version))
|
||||||
|
|
||||||
(provide 'org-version)
|
(provide 'org-version)
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
;; URL: https://orgmode.org
|
;; URL: https://orgmode.org
|
||||||
;; Package-Requires: ((emacs "26.1"))
|
;; Package-Requires: ((emacs "26.1"))
|
||||||
|
|
||||||
;; Version: 9.6.3
|
;; Version: 9.6.4
|
||||||
|
|
||||||
;; This file is part of GNU Emacs.
|
;; 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)))))
|
(replace-match "0" t nil nil 1)))))
|
||||||
|
|
||||||
(defvar org-state)
|
(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)
|
(defun org-todo (&optional arg)
|
||||||
"Change the TODO state of an item.
|
"Change the TODO state of an item.
|
||||||
|
|
||||||
|
|
|
@ -1822,7 +1822,7 @@ INFO is a plist used as a communication channel. See
|
||||||
(replace-regexp-in-string
|
(replace-regexp-in-string
|
||||||
"--\\|[\\{}$%&_#~^]"
|
"--\\|[\\{}$%&_#~^]"
|
||||||
(lambda (m)
|
(lambda (m)
|
||||||
(cond ((equal m "--") "-{}-")
|
(cond ((equal m "--") "-{}-{}")
|
||||||
((equal m "\\") "\\textbackslash{}")
|
((equal m "\\") "\\textbackslash{}")
|
||||||
((equal m "~") "\\textasciitilde{}")
|
((equal m "~") "\\textasciitilde{}")
|
||||||
((equal m "^") "\\textasciicircum{}")
|
((equal m "^") "\\textasciicircum{}")
|
||||||
|
|
|
@ -2923,17 +2923,23 @@ contextual information."
|
||||||
;; not be desired in scripts that do not separate words with
|
;; not be desired in scripts that do not separate words with
|
||||||
;; spaces (for example, Han script). `fill-region' is able to
|
;; spaces (for example, Han script). `fill-region' is able to
|
||||||
;; handle such situations.
|
;; 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
|
;; is at a boundary between Org objects (e.g. italics markup
|
||||||
;; followed by newline).
|
;; followed by newline).
|
||||||
(setq output
|
(setq output
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert output)
|
|
||||||
(save-match-data
|
(save-match-data
|
||||||
(let ((leading (and (string-match (rx bos (1+ blank)) output)
|
(let ((leading (and (string-match (rx bos (1+ blank)) output)
|
||||||
(match-string 0 output)))
|
(match-string 0 output)))
|
||||||
(trailing (and (string-match (rx (1+ blank) eos) output)
|
(trailing (and (string-match (rx (1+ blank) eos) output)
|
||||||
(match-string 0 output))))
|
(match-string 0 output))))
|
||||||
|
(insert
|
||||||
|
(substring
|
||||||
|
output
|
||||||
|
(length leading)
|
||||||
|
(pcase (length trailing)
|
||||||
|
(0 nil)
|
||||||
|
(n (- n)))))
|
||||||
;; Unfill, retaining leading/trailing space.
|
;; Unfill, retaining leading/trailing space.
|
||||||
(let ((fill-column most-positive-fixnum))
|
(let ((fill-column most-positive-fixnum))
|
||||||
(fill-region (point-min) (point-max)))
|
(fill-region (point-min) (point-max)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue