Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2023-05-12 Thread stardiviner
I have a large `org-tag-alist` value that contains about ~7000 tags. When I press [C-c C-q] `org-set-tags-command`. Emacs suspends a long time. Here are the profiler reports in the attachments. I hope this can be improved the performance. [stardiviner] GPG key ID: 47C32433

Re: BUG: org-cycle does not unfold some subtrees

2023-05-12 Thread Thomas Dye
Apologies. This message sent from my phone. Yes, I use swiper. My folding problems went away when I set org-fold-core-style to ‘overlay. Limited testing. Tom > On May 13, 2023, at 6:14 AM, Ihor Radchenko wrote: > > William Denton writes: > >> No and no, but now that I'm thinking about

Re: BUG: org-cycle does not unfold some subtrees

2023-05-12 Thread Ihor Radchenko
William Denton writes: > No and no, but now that I'm thinking about searching, I remember I use Swiper > (and Ivy and Counsel).¹ C-s runs =swiper=, which is =isearch-forward= "with > an overview," as it > describes itself. > > If we've narrowed it down to searching, could it be connected to

Re: BUG: org-cycle does not unfold some subtrees

2023-05-12 Thread William Denton
On 12 May 2023, Ihor Radchenko wrote: What is the value of `isearch-mode-end-hook' in your Org buffers? (anzu--reset-mode-line org-fold-core--clear-isearch-overlays t) Local in buffer conforguration.org; global value is nil I checked in a few buffers, and it always says it's local in that

Re: [FR] relative buffer-local path to bib for org-cite biblatex

2023-05-12 Thread Ihor Radchenko
Panayotis Manganaris writes: > Hello, I just noticed that adding a local bibliography for use by the > biblatex cite processor gets exported to latex as an absolute path. > > `#+bibliography: main.bib`  exports to > `\addbibresource{/home/me/etc/main.bib}` > > I would like a setting to allow

[FR] relative buffer-local path to bib for org-cite biblatex

2023-05-12 Thread Panayotis Manganaris
Hello, I just noticed that adding a local bibliography for use by the biblatex cite processor gets exported to latex as an absolute path. `#+bibliography: main.bib`  exports to `\addbibresource{/home/me/etc/main.bib}` I would like a setting to allow this to be a relative path if possible. I

Re: [RFC/PATCH] naming src/bin files in ob-C.el

2023-05-12 Thread Leo Butler
On Fri, May 12 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>> Comments? >> ... >> Replying to myself: it makes more sense to introduce a special-purpose >> header argument for this special purpose, than to use :file with a >> different meaning. Revised patch attached. > > IMHO, it will

Re: [RFC/PATCH] naming src/bin files in ob-C.el

2023-05-12 Thread Ihor Radchenko
Leo Butler writes: >> Comments? > ... > Replying to myself: it makes more sense to introduce a special-purpose > header argument for this special purpose, than to use :file with a > different meaning. Revised patch attached. IMHO, it will be more consistent with other backends to use :results

Re: [PATCH] org-capture.el: Allow `(here)' as a template target

2023-05-12 Thread Ihor Radchenko
Tim Visher writes: > I think this should likely involve an update to the manual but I don't want > to bother doing that unless the basic approach is approved. LGTM. We might also fix on the other side, not demanding (`car-safe') the target to be a list. -- Ihor Radchenko // yantar92, Org

Re: [RFC/PATCH] naming src/bin files in ob-C.el

2023-05-12 Thread Leo Butler
On Fri, May 12 2023, Leo Butler wrote: > Hello, > > I am using ob-C.el to work with a c++ library (capd::dynsys). The > current behaviour creates a temporary src and bin file in > `org-babel-temporary-directory'. There is currently no option to have > these files named and put somewhere else. >

[PATCH] org-capture.el: Allow `(here)' as a template target

2023-05-12 Thread Tim Visher
Hi Everyone, I think this should likely involve an update to the manual but I don't want to bother doing that unless the basic approach is approved. - >From eccc3f8f805c38b1de55fc8ad60c67a87e2feea4 Mon Sep 17 00:00:00 2001 From: Tim Visher Date: Fri, 12 May 2023 11:32:21 -0400 Subject:

[RFC/PATCH] naming src/bin files in ob-C.el

2023-05-12 Thread Leo Butler
Hello, I am using ob-C.el to work with a c++ library (capd::dynsys). The current behaviour creates a temporary src and bin file in `org-babel-temporary-directory'. There is currently no option to have these files named and put somewhere else. This behaviour is not quite right, in my opinion. I

Re: Can `org-capture` templates be made to result in a sub-heading of the current heading?

2023-05-12 Thread Tim Visher
On Fri, May 12, 2023 at 8:05 AM Ihor Radchenko wrote: > Tim Visher writes: > > Can `org-capture` templates be made to result in a sub-heading of the > > current heading? > > Just use target `here' (as symbol). > Thanks for the suggestion, Ihor. Do you have an example of this actually working?

Re: CVE-2023-28617 (was Re: [PATCH] Fix ob-latex.el command injection vulnerability.)

2023-05-12 Thread Ihor Radchenko
Max Nikulin writes: >> But this patch literally fixed the problem. What else should we do? > > Do you really think that it was the last unsafe shell command in the Org > code? No, but I prefer concrete examples. The CVE you linked to refers to an already fixed bug. >

Re: org code and error catching

2023-05-12 Thread Ihor Radchenko
Michael Heerdegen writes: > I had a hard time to debug some problem with the expansion of some > capture template because org catched the error even when I had set > `debug-on-error'. Would it be possible to make some functions, > e.g. `org-eval' in my case (probably some more?), use >

[PATCH] doc/org-manual.org: Document `org-latex-src-block-backend'

2023-05-12 Thread Ihor Radchenko
Attaching tentative manual patch that explains about `org-latex-src-block-backend'. There was no explanation about different ways to export colored source blocks in the past. Please try to read and let me know if anything is confusing. >From fb77ae66d4d9c01a350140481bcb0f030a45fb69 Mon Sep 17

Re: [ANN] lisp/ob-tangle-sync.el

2023-05-12 Thread Ihor Radchenko
Mehmet Tekman 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 :-) Usually, we leave working on the patches to one person - whoever is the most interested

Re: [PATCH] org-babel-load-languages: load unbound scheme-mode

2023-05-12 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > I think that I have seen Emacs complaining about unbound scheme-mode > when playing with ob-scheme, but I cannot reproduce it. Canceled.

Re: BUG: org-cycle does not unfold some subtrees

2023-05-12 Thread Ihor Radchenko
William Denton writes: >> What is the value of `isearch-mode-end-hook' in your Org buffers? > > (anzu--reset-mode-line org-fold-core--clear-isearch-overlays t) > Local in buffer conforguration.org; global value is nil > > I checked in a few buffers, and it always says it's local in that buffer,

Re: Can `org-capture` templates be made to result in a sub-heading of the current heading?

2023-05-12 Thread Ihor Radchenko
Tim Visher writes: > Can `org-capture` templates be made to result in a sub-heading of the > current heading? Just use target `here' (as symbol). -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at

Re: BUG: (org-insert-subheading) fails when on true begin of line (first star) of heading

2023-05-12 Thread Michael Dauer
I understand that it's behavior is derived from org-insert-heading. But IMO that does not make sense for this function, advice all that it is taking the current indentation level as basis to devote the new heading as child of the previous heading. It e.g. created a "orphan" grand child instead of