aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Meyer2023-04-24 19:47:12 -0400
committerKyle Meyer2023-04-24 19:47:12 -0400
commitd80f959beded280ed61623ec36ea2a9ac07cc747 (patch)
tree5b0a0fcc434d6d5a0204fefb932fc7c7859e4042
parent98c6cfcbe4a07191f73e3bb94ff1f047551533e6 (diff)
downloademacs-d80f959beded280ed61623ec36ea2a9ac07cc747.tar.gz
emacs-d80f959beded280ed61623ec36ea2a9ac07cc747.zip
Update to Org 9.6.4-9-g8eb209
-rw-r--r--lisp/org/ob-R.el5
-rw-r--r--lisp/org/ob-js.el5
-rw-r--r--lisp/org/oc.el4
-rw-r--r--lisp/org/org-macs.el4
-rw-r--r--lisp/org/org-version.el2
-rw-r--r--lisp/org/org.el23
-rw-r--r--lisp/org/ox-latex.el4
7 files changed, 31 insertions, 16 deletions
diff --git a/lisp/org/ob-R.el b/lisp/org/ob-R.el
index 4ee091118e4..f2cc069aa5e 100644
--- a/lisp/org/ob-R.el
+++ b/lisp/org/ob-R.el
@@ -36,7 +36,7 @@
36(require 'ob) 36(require 'ob)
37 37
38(declare-function orgtbl-to-tsv "org-table" (table params)) 38(declare-function orgtbl-to-tsv "org-table" (table params))
39(declare-function R "ext:essd-r" (&optional start-args)) 39(declare-function run-ess-r "ext:ess-r-mode" (&optional start-args))
40(declare-function inferior-ess-send-input "ext:ess-inf" ()) 40(declare-function inferior-ess-send-input "ext:ess-inf" ())
41(declare-function ess-make-buffer-current "ext:ess-inf" ()) 41(declare-function ess-make-buffer-current "ext:ess-inf" ())
42(declare-function ess-eval-buffer "ext:ess-inf" (vis)) 42(declare-function ess-eval-buffer "ext:ess-inf" (vis))
@@ -276,7 +276,8 @@ This function is called by `org-babel-execute-src-block'."
276 (when (get-buffer session) 276 (when (get-buffer session)
277 ;; Session buffer exists, but with dead process 277 ;; Session buffer exists, but with dead process
278 (set-buffer session)) 278 (set-buffer session))
279 (require 'ess) (R) 279 (require 'ess-r-mode)
280 (set-buffer (run-ess-r))
280 (let ((R-proc (get-process (or ess-local-process-name 281 (let ((R-proc (get-process (or ess-local-process-name
281 ess-current-process-name)))) 282 ess-current-process-name))))
282 (while (process-get R-proc 'callbacks) 283 (while (process-get R-proc 'callbacks)
diff --git a/lisp/org/ob-js.el b/lisp/org/ob-js.el
index 910c1168667..de7ea91317f 100644
--- a/lisp/org/ob-js.el
+++ b/lisp/org/ob-js.el
@@ -69,7 +69,10 @@
69 :safe #'stringp) 69 :safe #'stringp)
70 70
71(defvar org-babel-js-function-wrapper 71(defvar org-babel-js-function-wrapper
72 "require('process').stdout.write(require('util').inspect(function(){%s}()));" 72 ;; Note that newline after %s - it makes sure that closing
73 ;; parenthesis are not shadowed if the last line of the body is a
74 ;; line comment.
75 "require('process').stdout.write(require('util').inspect(function(){%s\n}()));"
73 "Javascript code to print value of body.") 76 "Javascript code to print value of body.")
74 77
75(defun org-babel-execute:js (body params) 78(defun org-babel-execute:js (body params)
diff --git a/lisp/org/oc.el b/lisp/org/oc.el
index 260a4d3e1a7..8a7b662098a 100644
--- a/lisp/org/oc.el
+++ b/lisp/org/oc.el
@@ -1232,7 +1232,9 @@ from the processor set in `org-cite-activate-processor'."
1232 (let ((cite (org-with-point-at (match-beginning 0) 1232 (let ((cite (org-with-point-at (match-beginning 0)
1233 (org-element-citation-parser)))) 1233 (org-element-citation-parser))))
1234 (when cite 1234 (when cite
1235 (funcall activate cite) 1235 ;; Do not alter match data as font-lock expects us to set it
1236 ;; appropriately.
1237 (save-match-data (funcall activate cite))
1236 ;; Move after cite object and make sure to return 1238 ;; Move after cite object and make sure to return
1237 ;; a non-nil value. 1239 ;; a non-nil value.
1238 (goto-char (org-element-property :end cite))))))) 1240 (goto-char (org-element-property :end cite)))))))
diff --git a/lisp/org/org-macs.el b/lisp/org/org-macs.el
index aef05bc6ee6..b8e026553b3 100644
--- a/lisp/org/org-macs.el
+++ b/lisp/org/org-macs.el
@@ -36,7 +36,7 @@
36 36
37;;; Org version verification. 37;;; Org version verification.
38 38
39(defconst org--built-in-p nil 39(defvar org--inhibit-version-check nil
40 "When non-nil, assume that Org is a part of Emacs source. 40 "When non-nil, assume that Org is a part of Emacs source.
41For internal use only. See Emacs bug #62762. 41For internal use only. See Emacs bug #62762.
42This variable is only supposed to be changed by Emacs build scripts.") 42This variable is only supposed to be changed by Emacs build scripts.")
@@ -49,7 +49,7 @@ This variable is only supposed to be changed by Emacs build scripts.")
49 ;; `org-assert-version' calls would fail using strict 49 ;; `org-assert-version' calls would fail using strict
50 ;; `org-git-version' check because the generated Org version strings 50 ;; `org-git-version' check because the generated Org version strings
51 ;; will not match. 51 ;; will not match.
52 `(unless (or org--built-in-p (equal (org-release) ,(org-release))) 52 `(unless (or org--inhibit-version-check (equal (org-release) ,(org-release)))
53 (warn "Org version mismatch. Org loading aborted. 53 (warn "Org version mismatch. Org loading aborted.
54This warning usually appears when a built-in Org version is loaded 54This warning usually appears when a built-in Org version is loaded
55prior to the more recent Org version. 55prior to the more recent Org version.
diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el
index 15e4a50877a..b82e915ecd1 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.4-2-g0f6ae7")) 14 (let ((org-git-version "release_9.6.4-9-g8eb209"))
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 f7c2b6d16d1..61862b3d63b 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -3483,13 +3483,17 @@ Make sure that you only list packages here which:
3483 :group 'org-export-latex 3483 :group 'org-export-latex
3484 :set 'org-set-packages-alist 3484 :set 'org-set-packages-alist
3485 :get 'org-get-packages-alist 3485 :get 'org-get-packages-alist
3486 :type '(repeat 3486 :type
3487 (choice 3487 '(repeat
3488 (list :tag "options/package pair" 3488 (choice
3489 (string :tag "options") 3489 (list :tag "options/package pair"
3490 (string :tag "package") 3490 (string :tag "options")
3491 (boolean :tag "Snippet")) 3491 (string :tag "package")
3492 (string :tag "A line of LaTeX")))) 3492 (boolean :tag "snippet")
3493 (choice
3494 (const :tag "All compilers include this package" nil)
3495 (repeat :tag "Only include from these compilers" string)))
3496 (string :tag "A line of LaTeX"))))
3493 3497
3494(defgroup org-appearance nil 3498(defgroup org-appearance nil
3495 "Settings for Org mode appearance." 3499 "Settings for Org mode appearance."
@@ -8440,7 +8444,10 @@ a link."
8440 (dolist (link (if (stringp links) (list links) links)) 8444 (dolist (link (if (stringp links) (list links) links))
8441 (search-forward link nil links-end) 8445 (search-forward link nil links-end)
8442 (goto-char (match-beginning 0)) 8446 (goto-char (match-beginning 0))
8443 (org-open-at-point arg))))))) 8447 ;; When opening file link, current buffer may be
8448 ;; altered.
8449 (save-current-buffer
8450 (org-open-at-point arg))))))))
8444 ;; On a footnote reference or at definition's label. 8451 ;; On a footnote reference or at definition's label.
8445 ((or (eq type 'footnote-reference) 8452 ((or (eq type 'footnote-reference)
8446 (and (eq type 'footnote-definition) 8453 (and (eq type 'footnote-definition)
diff --git a/lisp/org/ox-latex.el b/lisp/org/ox-latex.el
index 26f8742bec8..768bf402b70 100644
--- a/lisp/org/ox-latex.el
+++ b/lisp/org/ox-latex.el
@@ -1820,9 +1820,11 @@ INFO is a plist used as a communication channel. See
1820 "Protect special chars, then wrap TEXT in \"\\texttt{}\"." 1820 "Protect special chars, then wrap TEXT in \"\\texttt{}\"."
1821 (format "\\texttt{%s}" 1821 (format "\\texttt{%s}"
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 "<<") "<{}<{}")
1827 ((equal m ">>") ">{}>{}")
1826 ((equal m "\\") "\\textbackslash{}") 1828 ((equal m "\\") "\\textbackslash{}")
1827 ((equal m "~") "\\textasciitilde{}") 1829 ((equal m "~") "\\textasciitilde{}")
1828 ((equal m "^") "\\textasciicircum{}") 1830 ((equal m "^") "\\textasciicircum{}")