Update to Org 9.5.1-11-g96d91b
This commit is contained in:
parent
a937f536b3
commit
b8b2dd17c5
7 changed files with 43 additions and 26 deletions
|
@ -10811,6 +10811,18 @@ To turn off fontification for marked up text, you can set
|
||||||
~org-fontify-emphasized-text~ to ~nil~. To narrow down the list of
|
~org-fontify-emphasized-text~ to ~nil~. To narrow down the list of
|
||||||
available markup syntax, you can customize ~org-emphasis-alist~.
|
available markup syntax, you can customize ~org-emphasis-alist~.
|
||||||
|
|
||||||
|
Sometimes, when marked text also contains the marker character itself,
|
||||||
|
the result may be unsettling. For example,
|
||||||
|
|
||||||
|
#+begin_example
|
||||||
|
/One may expect this whole sentence to be italicized, but the
|
||||||
|
following ~user/?variable~ contains =/= character, which effectively
|
||||||
|
stops emphasis there./
|
||||||
|
#+end_example
|
||||||
|
|
||||||
|
You can use zero width space to help Org sorting out the ambiguity.
|
||||||
|
See [[*Escape Character]] for more details.
|
||||||
|
|
||||||
** Subscripts and Superscripts
|
** Subscripts and Superscripts
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:DESCRIPTION: Simple syntax for raising/lowering text.
|
:DESCRIPTION: Simple syntax for raising/lowering text.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
% Reference Card for Org Mode
|
% Reference Card for Org Mode
|
||||||
\def\orgversionnumber{9.5}
|
\def\orgversionnumber{9.5.1}
|
||||||
\def\versionyear{2021} % latest update
|
\def\versionyear{2021} % latest update
|
||||||
\input emacsver.tex
|
\input emacsver.tex
|
||||||
|
|
||||||
|
|
|
@ -283,7 +283,8 @@ Label is in match group 1.")
|
||||||
;;; Internal functions
|
;;; Internal functions
|
||||||
(defun org-cite-csl--barf-without-citeproc ()
|
(defun org-cite-csl--barf-without-citeproc ()
|
||||||
"Raise an error if Citeproc library is not loaded."
|
"Raise an error if Citeproc library is not loaded."
|
||||||
(unless (featurep 'citeproc) "Citeproc library is not loaded"))
|
(unless (featurep 'citeproc)
|
||||||
|
(error "Citeproc library is not loaded")))
|
||||||
|
|
||||||
(defun org-cite-csl--note-style-p (info)
|
(defun org-cite-csl--note-style-p (info)
|
||||||
"Non-nil when bibliography style implies wrapping citations in footnotes.
|
"Non-nil when bibliography style implies wrapping citations in footnotes.
|
||||||
|
|
|
@ -1141,17 +1141,14 @@ and must return either a string, an object, or a secondary string."
|
||||||
|
|
||||||
|
|
||||||
;;; Internal interface with fontification (activate capability)
|
;;; Internal interface with fontification (activate capability)
|
||||||
(defun org-cite-fontify-default (datum)
|
(defun org-cite-fontify-default (cite)
|
||||||
"Fontify DATUM with `org-cite' and `org-cite-key' face.
|
"Fontify CITE with `org-cite' and `org-cite-key' faces.
|
||||||
DATUM is a citation object, or a citation reference. In any case, apply
|
CITE is a citation object. The function applies `org-cite' face
|
||||||
`org-cite' face on the whole citation, and `org-cite-key' face on each key."
|
on the whole citation, and `org-cite-key' face on each key."
|
||||||
(let* ((cite (if (eq 'citation-reference (org-element-type datum))
|
(let ((beg (org-element-property :begin cite))
|
||||||
(org-element-property :parent datum)
|
(end (org-with-point-at (org-element-property :end cite)
|
||||||
datum))
|
(skip-chars-backward " \t")
|
||||||
(beg (org-element-property :begin cite))
|
(point))))
|
||||||
(end (org-with-point-at (org-element-property :end cite)
|
|
||||||
(skip-chars-backward " \t")
|
|
||||||
(point))))
|
|
||||||
(add-text-properties beg end '(font-lock-multiline t))
|
(add-text-properties beg end '(font-lock-multiline t))
|
||||||
(add-face-text-property beg end 'org-cite)
|
(add-face-text-property beg end 'org-cite)
|
||||||
(dolist (reference (org-cite-get-references cite))
|
(dolist (reference (org-cite-get-references cite))
|
||||||
|
@ -1163,16 +1160,20 @@ DATUM is a citation object, or a citation reference. In any case, apply
|
||||||
"Activate citations from up to LIMIT buffer position.
|
"Activate citations from up to LIMIT buffer position.
|
||||||
Each citation encountered is activated using the appropriate function
|
Each citation encountered is activated using the appropriate function
|
||||||
from the processor set in `org-cite-activate-processor'."
|
from the processor set in `org-cite-activate-processor'."
|
||||||
(let ((name org-cite-activate-processor))
|
(let* ((name org-cite-activate-processor)
|
||||||
(let ((activate
|
(activate
|
||||||
(or (and name
|
(or (and name
|
||||||
(org-cite-processor-has-capability-p name 'activate)
|
(org-cite-processor-has-capability-p name 'activate)
|
||||||
(org-cite-processor-activate (org-cite--get-processor name)))
|
(org-cite-processor-activate (org-cite--get-processor name)))
|
||||||
#'org-cite-fontify-default)))
|
#'org-cite-fontify-default)))
|
||||||
(while (re-search-forward org-element-citation-prefix-re limit t)
|
(when (re-search-forward org-element-citation-prefix-re limit t)
|
||||||
(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 (save-excursion (funcall activate cite))))))))
|
(when cite
|
||||||
|
(funcall activate cite)
|
||||||
|
;; Move after cite object and make sure to return
|
||||||
|
;; a non-nil value.
|
||||||
|
(goto-char (org-element-property :end cite)))))))
|
||||||
|
|
||||||
|
|
||||||
;;; Internal interface with Org Export library (export capability)
|
;;; Internal interface with Org Export library (export capability)
|
||||||
|
|
|
@ -4436,7 +4436,7 @@ Optional argument NEW may specify text to replace the current field content."
|
||||||
(col (org-table-current-column)))
|
(col (org-table-current-column)))
|
||||||
(when (> col 0)
|
(when (> col 0)
|
||||||
(skip-chars-backward "^|")
|
(skip-chars-backward "^|")
|
||||||
(if (not (looking-at " *\\([^|\n]*?\\) *\\(|\\|$\\)"))
|
(if (not (looking-at " *\\(?:\\([^|\n]*?\\) *\\(|\\)\\|\\([^|\n]+?\\) *\\($\\)\\)"))
|
||||||
(setq org-table-may-need-update t)
|
(setq org-table-may-need-update t)
|
||||||
(let* ((align (nth (1- col) org-table-last-alignment))
|
(let* ((align (nth (1- col) org-table-last-alignment))
|
||||||
(width (nth (1- col) org-table-last-column-widths))
|
(width (nth (1- col) org-table-last-column-widths))
|
||||||
|
|
|
@ -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.5"))
|
(let ((org-release "9.5.1"))
|
||||||
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.5-72-gc5d6656"))
|
(let ((org-git-version "release_9.5.1-11-g96d91b"))
|
||||||
org-git-version))
|
org-git-version))
|
||||||
|
|
||||||
(provide 'org-version)
|
(provide 'org-version)
|
||||||
|
|
|
@ -1048,6 +1048,7 @@ BACKEND is a structure with `org-export-backend' type."
|
||||||
(unless (org-export-backend-p backend)
|
(unless (org-export-backend-p backend)
|
||||||
(error "Unknown \"%s\" back-end: Aborting export" backend)))
|
(error "Unknown \"%s\" back-end: Aborting export" backend)))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
(defun org-export-derived-backend-p (backend &rest backends)
|
(defun org-export-derived-backend-p (backend &rest backends)
|
||||||
"Non-nil if BACKEND is derived from one of BACKENDS.
|
"Non-nil if BACKEND is derived from one of BACKENDS.
|
||||||
BACKEND is an export back-end, as returned by, e.g.,
|
BACKEND is an export back-end, as returned by, e.g.,
|
||||||
|
@ -1858,6 +1859,7 @@ INFO is a plist containing export directives."
|
||||||
(let ((transcoder (cdr (assq type (plist-get info :translate-alist)))))
|
(let ((transcoder (cdr (assq type (plist-get info :translate-alist)))))
|
||||||
(and (functionp transcoder) transcoder)))))
|
(and (functionp transcoder) transcoder)))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
(defun org-export-data (data info)
|
(defun org-export-data (data info)
|
||||||
"Convert DATA into current back-end format.
|
"Convert DATA into current back-end format.
|
||||||
|
|
||||||
|
@ -4586,6 +4588,7 @@ objects of the same type."
|
||||||
;; `org-export-raw-string' builds a pseudo-object out of a string
|
;; `org-export-raw-string' builds a pseudo-object out of a string
|
||||||
;; that any export back-end returns as-is.
|
;; that any export back-end returns as-is.
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
(defun org-export-raw-string (s)
|
(defun org-export-raw-string (s)
|
||||||
"Return a raw object containing string S.
|
"Return a raw object containing string S.
|
||||||
A raw string is exported as-is, with no additional processing
|
A raw string is exported as-is, with no additional processing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue