Merge branch 'master' of orgmode.org:org-mode
This commit is contained in:
commit
7e155ecfbc
|
@ -2773,18 +2773,18 @@ CONTENTS is nil."
|
||||||
'((subscript . sub/superscript) (superscript . sub/superscript)
|
'((subscript . sub/superscript) (superscript . sub/superscript)
|
||||||
(bold . text-markup) (code . text-markup) (italic . text-markup)
|
(bold . text-markup) (code . text-markup) (italic . text-markup)
|
||||||
(strike-through . text-markup) (underline . text-markup)
|
(strike-through . text-markup) (underline . text-markup)
|
||||||
(verbatim . text-markup) (verbatim . text-markup)
|
(verbatim . text-markup) (entity . latex-or-entity)
|
||||||
(entity . latex-or-entity) (latex-fragment . latex-or-entity))
|
(latex-fragment . latex-or-entity))
|
||||||
"Alist of translations between object type and successor name.
|
"Alist of translations between object type and successor name.
|
||||||
|
|
||||||
Sharing the same successor comes handy when, for example, the
|
Sharing the same successor comes handy when, for example, the
|
||||||
regexp matching one object can also match the other object.")
|
regexp matching one object can also match the other object.")
|
||||||
|
|
||||||
(defconst org-element-all-objects
|
(defconst org-element-all-objects
|
||||||
'(emphasis entity export-snippet footnote-reference inline-babel-call
|
'(bold code entity export-snippet footnote-reference inline-babel-call
|
||||||
inline-src-block line-break latex-fragment link macro radio-target
|
inline-src-block italic line-break latex-fragment link macro
|
||||||
statistics-cookie subscript superscript table-cell target
|
radio-target statistics-cookie strike-through subscript superscript
|
||||||
time-stamp verbatim)
|
table-cell target time-stamp underline verbatim)
|
||||||
"Complete list of object types.")
|
"Complete list of object types.")
|
||||||
|
|
||||||
(defconst org-element-recursive-objects
|
(defconst org-element-recursive-objects
|
||||||
|
@ -3020,7 +3020,7 @@ it is quicker than its counterpart, albeit more restrictive."
|
||||||
(let ((type (upcase (match-string 1))))
|
(let ((type (upcase (match-string 1))))
|
||||||
(if (save-excursion
|
(if (save-excursion
|
||||||
(re-search-forward
|
(re-search-forward
|
||||||
(format "[ \t]*#\\+END_%s\\(?: \\|$\\)" type) nil t))
|
(format "^[ \t]*#\\+END_%s\\(?: \\|$\\)" type) nil t))
|
||||||
(funcall
|
(funcall
|
||||||
(intern
|
(intern
|
||||||
(format
|
(format
|
||||||
|
@ -3030,9 +3030,9 @@ it is quicker than its counterpart, albeit more restrictive."
|
||||||
;; Inlinetask.
|
;; Inlinetask.
|
||||||
((org-at-heading-p) (org-element-inlinetask-parser raw-secondary-p))
|
((org-at-heading-p) (org-element-inlinetask-parser raw-secondary-p))
|
||||||
;; LaTeX Environment or Paragraph if incomplete.
|
;; LaTeX Environment or Paragraph if incomplete.
|
||||||
((looking-at "^[ \t]*\\\\begin{")
|
((looking-at "[ \t]*\\\\begin{")
|
||||||
(if (save-excursion
|
(if (save-excursion
|
||||||
(re-search-forward "^[ \t]*\\\\end{[^}]*}[ \t]*" nil t))
|
(re-search-forward "[ \t]*\\\\end{[^}]*}[ \t]*" nil t))
|
||||||
(org-element-latex-environment-parser)
|
(org-element-latex-environment-parser)
|
||||||
(org-element-paragraph-parser)))
|
(org-element-paragraph-parser)))
|
||||||
;; Property Drawer.
|
;; Property Drawer.
|
||||||
|
@ -3046,7 +3046,7 @@ it is quicker than its counterpart, albeit more restrictive."
|
||||||
(cond
|
(cond
|
||||||
((not (save-excursion
|
((not (save-excursion
|
||||||
(re-search-forward
|
(re-search-forward
|
||||||
(format "[ \t]*#\\+END_%s\\(?: \\|$\\)" type) nil t)))
|
(format "^[ \t]*#\\+END_%s\\(?: \\|$\\)" type) nil t)))
|
||||||
(org-element-paragraph-parser))
|
(org-element-paragraph-parser))
|
||||||
((string= type "CENTER") (org-element-center-block-parser))
|
((string= type "CENTER") (org-element-center-block-parser))
|
||||||
((string= type "QUOTE") (org-element-quote-block-parser))
|
((string= type "QUOTE") (org-element-quote-block-parser))
|
||||||
|
|
|
@ -128,7 +128,7 @@ Return interpreted string."
|
||||||
(should (org-element-property :preserve-indent element))))
|
(should (org-element-property :preserve-indent element))))
|
||||||
;; 2. "-n -r -k" combination should number lines, retain labels but
|
;; 2. "-n -r -k" combination should number lines, retain labels but
|
||||||
;; not use them in coderefs.
|
;; not use them in coderefs.
|
||||||
(org-test-with-temp-text "#+BEGIN_EXAMPLE -n -r -k\nText.\N#+END_EXAMPLE"
|
(org-test-with-temp-text "#+BEGIN_EXAMPLE -n -r -k\nText.\n#+END_EXAMPLE"
|
||||||
(let ((element (org-element-current-element)))
|
(let ((element (org-element-current-element)))
|
||||||
(should (and (org-element-property :number-lines element)
|
(should (and (org-element-property :number-lines element)
|
||||||
(org-element-property :retain-labels element)
|
(org-element-property :retain-labels element)
|
||||||
|
|
Loading…
Reference in New Issue