Update to Org 9.6.4-9-g8eb209
This commit is contained in:
parent
98c6cfcbe4
commit
d80f959bed
7 changed files with 31 additions and 16 deletions
|
@ -36,7 +36,7 @@
|
||||||
(require 'ob)
|
(require 'ob)
|
||||||
|
|
||||||
(declare-function orgtbl-to-tsv "org-table" (table params))
|
(declare-function orgtbl-to-tsv "org-table" (table params))
|
||||||
(declare-function R "ext:essd-r" (&optional start-args))
|
(declare-function run-ess-r "ext:ess-r-mode" (&optional start-args))
|
||||||
(declare-function inferior-ess-send-input "ext:ess-inf" ())
|
(declare-function inferior-ess-send-input "ext:ess-inf" ())
|
||||||
(declare-function ess-make-buffer-current "ext:ess-inf" ())
|
(declare-function ess-make-buffer-current "ext:ess-inf" ())
|
||||||
(declare-function ess-eval-buffer "ext:ess-inf" (vis))
|
(declare-function ess-eval-buffer "ext:ess-inf" (vis))
|
||||||
|
@ -276,7 +276,8 @@ This function is called by `org-babel-execute-src-block'."
|
||||||
(when (get-buffer session)
|
(when (get-buffer session)
|
||||||
;; Session buffer exists, but with dead process
|
;; Session buffer exists, but with dead process
|
||||||
(set-buffer session))
|
(set-buffer session))
|
||||||
(require 'ess) (R)
|
(require 'ess-r-mode)
|
||||||
|
(set-buffer (run-ess-r))
|
||||||
(let ((R-proc (get-process (or ess-local-process-name
|
(let ((R-proc (get-process (or ess-local-process-name
|
||||||
ess-current-process-name))))
|
ess-current-process-name))))
|
||||||
(while (process-get R-proc 'callbacks)
|
(while (process-get R-proc 'callbacks)
|
||||||
|
|
|
@ -69,7 +69,10 @@
|
||||||
:safe #'stringp)
|
:safe #'stringp)
|
||||||
|
|
||||||
(defvar org-babel-js-function-wrapper
|
(defvar org-babel-js-function-wrapper
|
||||||
"require('process').stdout.write(require('util').inspect(function(){%s}()));"
|
;; Note that newline after %s - it makes sure that closing
|
||||||
|
;; parenthesis are not shadowed if the last line of the body is a
|
||||||
|
;; line comment.
|
||||||
|
"require('process').stdout.write(require('util').inspect(function(){%s\n}()));"
|
||||||
"Javascript code to print value of body.")
|
"Javascript code to print value of body.")
|
||||||
|
|
||||||
(defun org-babel-execute:js (body params)
|
(defun org-babel-execute:js (body params)
|
||||||
|
|
|
@ -1232,7 +1232,9 @@ from the processor set in `org-cite-activate-processor'."
|
||||||
(let ((cite (org-with-point-at (match-beginning 0)
|
(let ((cite (org-with-point-at (match-beginning 0)
|
||||||
(org-element-citation-parser))))
|
(org-element-citation-parser))))
|
||||||
(when cite
|
(when cite
|
||||||
(funcall activate cite)
|
;; Do not alter match data as font-lock expects us to set it
|
||||||
|
;; appropriately.
|
||||||
|
(save-match-data (funcall activate cite))
|
||||||
;; Move after cite object and make sure to return
|
;; Move after cite object and make sure to return
|
||||||
;; a non-nil value.
|
;; a non-nil value.
|
||||||
(goto-char (org-element-property :end cite)))))))
|
(goto-char (org-element-property :end cite)))))))
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
;;; Org version verification.
|
;;; Org version verification.
|
||||||
|
|
||||||
(defconst org--built-in-p nil
|
(defvar org--inhibit-version-check nil
|
||||||
"When non-nil, assume that Org is a part of Emacs source.
|
"When non-nil, assume that Org is a part of Emacs source.
|
||||||
For internal use only. See Emacs bug #62762.
|
For internal use only. See Emacs bug #62762.
|
||||||
This variable is only supposed to be changed by Emacs build scripts.")
|
This 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.")
|
||||||
;; `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 (or org--built-in-p (equal (org-release) ,(org-release)))
|
`(unless (or org--inhibit-version-check (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.
|
||||||
|
|
|
@ -11,7 +11,7 @@ Inserted by installing Org mode or when a release is made."
|
||||||
(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.4-2-g0f6ae7"))
|
(let ((org-git-version "release_9.6.4-9-g8eb209"))
|
||||||
org-git-version))
|
org-git-version))
|
||||||
|
|
||||||
(provide 'org-version)
|
(provide 'org-version)
|
||||||
|
|
|
@ -3483,12 +3483,16 @@ Make sure that you only list packages here which:
|
||||||
:group 'org-export-latex
|
:group 'org-export-latex
|
||||||
:set 'org-set-packages-alist
|
:set 'org-set-packages-alist
|
||||||
:get 'org-get-packages-alist
|
:get 'org-get-packages-alist
|
||||||
:type '(repeat
|
:type
|
||||||
|
'(repeat
|
||||||
(choice
|
(choice
|
||||||
(list :tag "options/package pair"
|
(list :tag "options/package pair"
|
||||||
(string :tag "options")
|
(string :tag "options")
|
||||||
(string :tag "package")
|
(string :tag "package")
|
||||||
(boolean :tag "Snippet"))
|
(boolean :tag "snippet")
|
||||||
|
(choice
|
||||||
|
(const :tag "All compilers include this package" nil)
|
||||||
|
(repeat :tag "Only include from these compilers" string)))
|
||||||
(string :tag "A line of LaTeX"))))
|
(string :tag "A line of LaTeX"))))
|
||||||
|
|
||||||
(defgroup org-appearance nil
|
(defgroup org-appearance nil
|
||||||
|
@ -8440,7 +8444,10 @@ a link."
|
||||||
(dolist (link (if (stringp links) (list links) links))
|
(dolist (link (if (stringp links) (list links) links))
|
||||||
(search-forward link nil links-end)
|
(search-forward link nil links-end)
|
||||||
(goto-char (match-beginning 0))
|
(goto-char (match-beginning 0))
|
||||||
(org-open-at-point arg)))))))
|
;; When opening file link, current buffer may be
|
||||||
|
;; altered.
|
||||||
|
(save-current-buffer
|
||||||
|
(org-open-at-point arg))))))))
|
||||||
;; On a footnote reference or at definition's label.
|
;; On a footnote reference or at definition's label.
|
||||||
((or (eq type 'footnote-reference)
|
((or (eq type 'footnote-reference)
|
||||||
(and (eq type 'footnote-definition)
|
(and (eq type 'footnote-definition)
|
||||||
|
|
|
@ -1820,9 +1820,11 @@ INFO is a plist used as a communication channel. See
|
||||||
"Protect special chars, then wrap TEXT in \"\\texttt{}\"."
|
"Protect special chars, then wrap TEXT in \"\\texttt{}\"."
|
||||||
(format "\\texttt{%s}"
|
(format "\\texttt{%s}"
|
||||||
(replace-regexp-in-string
|
(replace-regexp-in-string
|
||||||
"--\\|[\\{}$%&_#~^]"
|
"--\\|<<\\|>>\\|[\\{}$%&_#~^]"
|
||||||
(lambda (m)
|
(lambda (m)
|
||||||
(cond ((equal m "--") "-{}-{}")
|
(cond ((equal m "--") "-{}-{}")
|
||||||
|
((equal m "<<") "<{}<{}")
|
||||||
|
((equal m ">>") ">{}>{}")
|
||||||
((equal m "\\") "\\textbackslash{}")
|
((equal m "\\") "\\textbackslash{}")
|
||||||
((equal m "~") "\\textasciitilde{}")
|
((equal m "~") "\\textasciitilde{}")
|
||||||
((equal m "^") "\\textasciicircum{}")
|
((equal m "^") "\\textasciicircum{}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue