[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 7e649050c7 05/14: ox: Pass through unparsed #+inclu
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 7e649050c7 05/14: ox: Pass through unparsed #+include content |
Date: |
Sun, 22 Jan 2023 10:58:10 -0500 (EST) |
branch: externals/org
commit 7e649050c7ad653952b96f86cb172f3b32dc3cc2
Author: TEC <git@tecosaur.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
ox: Pass through unparsed #+include content
* lisp/ox.el (org-export-parse-include-value): Adjust the block matches
not to match keywords (i.e. ":\S-+"), and both block and env to consume
their matches in value. Now value only contains the unmatched content,
which is given in as the results plist as :unmatched.
---
lisp/ox.el | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/lisp/ox.el b/lisp/ox.el
index b6240cb1fc..3ff7799b40 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -3404,9 +3404,15 @@ not have `buffer-file-name' assigned."
(setq value (replace-match "" nil nil value)))
(get-text-property (point)
:org-include-induced-level))))
- (args (and (eq env 'literal) (match-string 1 value)))
- (block (and (string-match "\\<\\(\\S-+\\)\\>" value)
- (match-string 1 value))))
+ (args (and (eq env 'literal)
+ (prog1 (match-string 1 value)
+ (setq value (replace-match "" nil nil value 1)))))
+ (block (and (or (string-match "\"\\(\\S-+\\)\"" value)
+ (string-match "\\<\\(\\S-+\\)\\>" value))
+ (or (= (match-beginning 0) 0)
+ (not (= ?: (aref value (1- (match-beginning 0))))))
+ (prog1 (match-string 1 value)
+ (setq value (replace-match "" nil nil value))))))
(list :file file
:coding-system coding-system
:location location
@@ -3415,7 +3421,8 @@ not have `buffer-file-name' assigned."
:env env
:minlevel minlevel
:args args
- :block block)))
+ :block block
+ :unmatched (org-babel-parse-header-arguments value t))))
(cl-defun org-export--blindly-expand-include (parameters &key includer-file
file-prefix footnotes already-included)
"Unconditionally include reference defined by PARAMETERS in the buffer.
- [elpa] externals/org updated (b34bdc8719 -> f0dfbf0c39), ELPA Syncer, 2023/01/22
- [elpa] externals/org ddca762329 01/14: org-element--cache-verify-element: Format all the elements in warning, ELPA Syncer, 2023/01/22
- [elpa] externals/org 0af74d33a7 03/14: org-manual: Fix typos in print_bibliography kwd, ELPA Syncer, 2023/01/22
- [elpa] externals/org ffd832d5d6 06/14: org-manual: Update #+include block parsing, ELPA Syncer, 2023/01/22
- [elpa] externals/org e9c0696f79 08/14: org-persist: Inhibit fsync when writing cachefiles, ELPA Syncer, 2023/01/22
- [elpa] externals/org 4b546e04af 02/14: org-element--cache-submit-request: Ensure correct cache synchronization, ELPA Syncer, 2023/01/22
- [elpa] externals/org 7e649050c7 05/14: ox: Pass through unparsed #+include content,
ELPA Syncer <=
- [elpa] externals/org c8f88589cb 09/14: org-persist: Set utf-8 coding when reading/writing, ELPA Syncer, 2023/01/22
- [elpa] externals/org b29f772416 10/14: org-macs: Split org-compile-file into two funs, ELPA Syncer, 2023/01/22
- [elpa] externals/org f0dfbf0c39 14/14: ox-latex: Erase compile buffer at the start, ELPA Syncer, 2023/01/22
- [elpa] externals/org 5cde90e3c8 04/14: ox: Refactor org-export-expand-include-keyword, ELPA Syncer, 2023/01/22
- [elpa] externals/org 506989bed5 07/14: ox: Improve #+include parsing docstring, ELPA Syncer, 2023/01/22
- [elpa] externals/org b84018633e 13/14: ox-latex: Split org-latex-compile into two funs, ELPA Syncer, 2023/01/22
- [elpa] externals/org d0c87c762a 11/14: ox-latex: Do not hardcode fallback compiler, ELPA Syncer, 2023/01/22
- [elpa] externals/org 18d2f871c2 12/14: org: Split org-format-latex into two functions, ELPA Syncer, 2023/01/22