[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] org-babel-demarcate-block: duplicate switches too
From: |
gerard . vermeulen |
Subject: |
Re: [PATCH] org-babel-demarcate-block: duplicate switches too |
Date: |
Mon, 01 Jan 2024 12:52:45 +0000 |
On 31.12.2023 15:28, Ihor Radchenko wrote:
gerard.vermeulen@posteo.net writes:
The purpose of this patch is to duplicate switches when
org-babel-demarcate-block
duplicates headers (meaning point in the source block when
demarcating).
Thanks for the patch!
Would you mind also adding a test for `org-babel-demarcate-block' in
testing/lisp/test-ob.el?
I have attached a new patch with a test named
`test-ob/demarcate-block-split'.
Besides testing the duplication of switches and some header arguments,
it also
shows that multi-line header arguments are not duplicated.
Whether this is a bug or a feature in `org-babel-demarcate-block' may be
a
point of discussion. I have no real opinion.
The code of the 4 (should ...) forms in the test below the line
;; unduplicated multi-line header arguments:
feels a bit clumsy. Does Org have a function to extract the value that a
particular
var-name has from the association list returned by
`org-babel-get-src-block-info'?
Regards -- Gerard
Regards
0001-org-babel-demarcate-block-duplicate-switches-too.patch
Description: Binary data
- Re: [PATCH] org-babel-demarcate-block: duplicate switches too,
gerard . vermeulen <=
- Re: [PATCH] org-babel-demarcate-block: duplicate switches too, Ihor Radchenko, 2024/01/02
- Re: [PATCH] org-babel-demarcate-block: split using org-element instead of regexp, gerard . vermeulen, 2024/01/02
- Re: [PATCH] org-babel-demarcate-block: split using org-element instead of regexp, Ihor Radchenko, 2024/01/03
- Re: [PATCH] org-babel-demarcate-block: split using org-element instead of regexp, gerard . vermeulen, 2024/01/04
- Re: [PATCH] org-babel-demarcate-block: split using org-element instead of regexp, Ihor Radchenko, 2024/01/04
- Re: [PATCH] org-babel-demarcate-block: split using element API, gerard . vermeulen, 2024/01/07
- Re: [PATCH] org-babel-demarcate-block: split using element API, Ihor Radchenko, 2024/01/08
- Re: [PATCH] org-babel-demarcate-block: split using element API, gerard . vermeulen, 2024/01/08
- Re: [PATCH] org-babel-demarcate-block: split using element API, gerard . vermeulen, 2024/01/09
- Re: [PATCH] org-babel-demarcate-block: split using element API, gerard . vermeulen, 2024/01/09