Nafiz Islam writes:
>> I tried to run make test with your patch, and it is failing:
>
> On my side it passes on main branch at commit
> 6c862699a6db3f6b76391c05380d92d9f1b3838f with patch.
> passed 444/1207 test-org-capture/entry (0.099791 sec)
> ...
> passed 447/1207
I tried to run make test with your patch, and it is failing:
On my side it passes on main branch at commit
6c862699a6db3f6b76391c05380d92d9f1b3838f with patch.
passed 444/1207 test-org-capture/entry (0.099791 sec)
...
passed 447/1207 test-org-capture/org-capture-expand-olp
Ihor Radchenko writes:
> Nafiz Islam writes:
>
>> Craig Topham has cleared me to contribute to Emacs.
>
> Bastien, may you please check the FSF records?
Yes, things are okay. Thanks Nafiz!
--
Bastien Guerry
Nafiz Islam writes:
> Craig Topham has cleared me to contribute to Emacs.
Bastien, may you please check the FSF records?
> > All you need to create a new symbol in local context is (let ((my-symbol
> > value)) ...).
>
> I don't think that will work because of lexical binding. For example:
>
Craig Topham has cleared me to contribute to Emacs. I have attached the
latest version of my patch.
> All you need to create a new symbol in local context is (let ((my-symbol
> value)) ...).
I don't think that will work because of lexical binding. For example:
(should
(equal
"* A\n*
Nafiz Islam writes:
> It's mainly because the tests I have written creates symbols and then
> later unbounds them. But, if the test fails then the symbols might not
> get unbound.
All you need to create a new symbol in local context is (let ((my-symbol
value)) ...).
--
Ihor Radchenko //
Would it be of org-mode's interest if I update
`org-test-with-temp-text-in-file' to include a parameter which is a list
of symbols to unbound after the test body is executed? Or maybe another
macro called `org-test-with-temp-text-in-file-and-symbols'?
It's mainly because the tests I have
> the idea was to pass the FILE and extra OLP arguments to the custom
function provided by the user
I have misunderstood what you suggested. But, I wanted to maintain
consistency with how the `file+headline' handles function as a target
where the lambda takes no parameter and is expected to
Sorry. I forgot to actually attach the patch.
On Sun, May 19, 2024 at 7:34 PM Nafiz Islam
wrote:
> > would you consider doing the paperwork?
>
> Yes. I sent an email to ass...@gnu.org with the form.
>
> I've also updated the docstring for `org-capture-templates', filtered out
> incorrect
> would you consider doing the paperwork?
Yes. I sent an email to ass...@gnu.org with the form.
I've also updated the docstring for `org-capture-templates', filtered out
incorrect target, and updated `org-capture-expand-olp' to take file
argument.
Additionally, I added a few test cases to
Nafiz Islam writes:
>> I've also updated the docstring for `org-capture-templates', filtered out
>> incorrect target, and updated `org-capture-expand-olp' to take file
>> argument.
I do not think that it does what you expect.
AFAIU, the idea was to pass the FILE and extra OLP arguments to the
Nafiz Islam writes:
> This patch adds the option to provide function and symbol for headline and
> olp for org-capture-templates.
Thanks for the patch.
A few comments.
Firstly, your total contribution to Org mode with this patch will exceed
the maximum allowed number of LOC changes we can
Oh dear, I shouldn't have used `atomic-chrome' to format the message in
Gmail. So here's a revised version.
Dear All,
This patch adds the option to provide function and symbol for headline and
olp for org-capture-templates.
By that, I mean you can set the org-capture-templates in the following
Dear All, This patch adds the option to provide function and symbol for
headline and olp for org-capture-templates. By that, I mean you can set the
org-capture-templates in the following manner: (org-capture-templates
`(("t" "Todo" entry (file+headline ,file (lambda () "A")) "** H1 %?")))
14 matches
Mail list logo