[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ANN] lisp/ob-tangle-sync.el
From: |
Mehmet Tekman |
Subject: |
Re: [ANN] lisp/ob-tangle-sync.el |
Date: |
Wed, 10 May 2023 18:20:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Ihor Radchenko <yantar92@posteo.net> writes:
> It will be great if you could do it.
> I have other things to work on.
Of course! I'm just a little unfamiliar on how one coordinates active
collaboration via mailing list :-)
Anyways - I did it, and it took less time than I thought
> We should modify it. For example like the following:
>
> 1. We will assume that :any can only occur one time in the exclusive
> groups. (Otherwise, there is no single definite way to parse header
> arguments)
> 2. Merge function will treat :any specially - when parameter does not
> match any of the argument values from all the groups combined, it is
> considered as :any and replace the previous corresponding values in
> its exclusive group, if any;
> In other words, we will need a special match for :any - "anything not
> equal to other values in all the groups combined".
I've modified the `merge' function within `org-babel-merge-params' so
that the main logic now accumulates a list of potential candidates that
could be the :any keyword, and selects the last added candidate as the
match.
The first two patches are very minor, simply adding
tangle-exclusive-groups using the existing code templates. The last
patch is the merge function rewrite.
It all seems to be passing tests, though I would like to add my toy.org
file to the org testing framework at some point.
Best,
Mehmet
0001-lisp-ob-core.el-org-babel-common-header-args-w-value.patch
Description: Added new tangle exclusion group for tangle sync action
0002-lisp-ob-core.el-org-babel-merge-params-Tangle-header.patch
Description: Implemented initial tangle header merge framework from existing code template
0003-lisp-ob-core.el-org-babel-merge-params-Major-rewrite.patch
Description: Major rewrite of the merge function to handle :any keywords
- Re: [ANN] lisp/ob-tangle-sync.el, (continued)
- Re: [ANN] lisp/ob-tangle-sync.el, Ihor Radchenko, 2023/05/03
- Re: [ANN] lisp/ob-tangle-sync.el, Mehmet Tekman, 2023/05/03
- Re: [ANN] lisp/ob-tangle-sync.el, Mehmet Tekman, 2023/05/03
- Re: [ANN] lisp/ob-tangle-sync.el, Ihor Radchenko, 2023/05/03
- Message not available
- Message not available
- Message not available
- Re: [ANN] lisp/ob-tangle-sync.el, Mehmet Tekman, 2023/05/09
- Re: [ANN] lisp/ob-tangle-sync.el, Ihor Radchenko, 2023/05/10
- Re: [ANN] lisp/ob-tangle-sync.el, mtekman89, 2023/05/10
- Re: [ANN] lisp/ob-tangle-sync.el, Ihor Radchenko, 2023/05/10
- Re: [ANN] lisp/ob-tangle-sync.el,
Mehmet Tekman <=
- Re: [ANN] lisp/ob-tangle-sync.el, Ihor Radchenko, 2023/05/12
- Re: [ANN] lisp/ob-tangle-sync.el, Mehmet Tekman, 2023/05/16
- Re: [ANN] lisp/ob-tangle-sync.el, Ihor Radchenko, 2023/05/16
- Re: [ANN] lisp/ob-tangle-sync.el, Mehmet Tekman, 2023/05/17
- Re: [ANN] lisp/ob-tangle-sync.el, Ihor Radchenko, 2023/05/18
- Re: [ANN] lisp/ob-tangle-sync.el, Mehmet Tekman, 2023/05/19