Re: Replace org link with footnote

2023-11-10 Thread Max Nikulin
On 11/11/2023 03:23, Matt wrote: Here's a quick hack to replace an Org link with a footnote. [...] (if (org-in-regexp org-link-bracket-re 1) During the following discussion I thought on `org-export-filter-parse-tree-functions' as a means to transform links into footnotes for ox-ascii (it

Slowdown with large headings in view

2023-11-10 Thread Sebastian Wålinder
Hello! I have massive org-mode file with thousands of SRC blocks. As the file grew, I started to get very poor performance, but setting `org-fold-core--ignore-modifications` to `t` solved it. However, I still get very poor performance when a lot of folded headings are in view. It gets slower a

Replace org link with footnote

2023-11-10 Thread Matt
Here's a quick hack to replace an Org link with a footnote. Maybe a fun first commit for someone would be to update `org-footnote-new` to accept optional LABEL and DEFINITION arguments that allow a footnote to be created programmatically? (defun my-replace-link-with-footnote () "Replace an o

Re: [BUG] tmp [9.7-pre (release_9.6.10-881-g595a32 @ /home/ps/.emacs.d/org-mode-git/lisp/)]

2023-11-10 Thread Samuel Wales
not a real ans but maybe related history. iirc outline.el made the decision to consider an entry not to include its final newline. org derives from that and did not comprehensively change that. there have been bugs. On 11/10/23, Paul Stansell wrote: > Hello, > > When using Org Mode version 9.

[BUG] tmp [9.7-pre (release_9.6.10-881-g595a32 @ /home/ps/.emacs.d/org-mode-git/lisp/)]

2023-11-10 Thread Paul Stansell
Hello, When using Org Mode version 9.7-pre (release_9.6.10-881-g595a32) the following happens that doesn't happen when using Org Mode version 9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)]: When the cursor is at the end of a folded section, that is, immediately after the ellipses, and r

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Leo Butler
On Fri, Nov 10 2023, Max Nikulin wrote: > On 10/11/2023 10:19, Leo Butler wrote: >> On Thu, Nov 09 2023, Max Nikulin wrote: >> >>> diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el > [...] >>> should allow to set :java to >>> >>> flatpak-spawn --host toolbox run /usr/bin/ditaa >>> >>> withou

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Leo Butler
On Fri, Nov 10 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> While I was reviewing the documentation, ob-doc-ditaa.org, and the >> source, ob-ditaa.el, I realized that there is a simple way to run a >> script file instead of a jar file. The documentation patch includes such >> an example

Re: fancy TODO lists setup (emacs 29.1)

2023-11-10 Thread Martin Steffen
> I am unable to reproduce using both stable and main branches. >> PS: My org version is Org mode version 9.5.2 >> (release_9.5.2-286-gd01235) > This is not the latest version of Org. You can try to upgrade. Thanks a lot. Seems like updating the org-setting did the trick al

Re: Issue with org-persist and Tramp

2023-11-10 Thread Fabio Natali
On 2023-11-10, 11:13 +, Fabio Natali wrote: > Brilliant. I think the second branch should read `(not (file-remote-p > file))', i.e. `file' instead of `associated'? It seems to work with that > micro amendment. Hm, I stand corrected, I retested it end-to-end and no, it doesn't seem to work. I'

Re: Issue with org-persist and Tramp

2023-11-10 Thread Fabio Natali
On 2023-11-10, 09:26 +, Ihor Radchenko wrote: > What about the attached patch? Hi Ihor, Brilliant. I think the second branch should read `(not (file-remote-p file))', i.e. `file' instead of `associated'? It seems to work with that micro amendment. Anything else I should be testing or does t

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Max Nikulin
On 10/11/2023 10:19, Leo Butler wrote: On Thu, Nov 09 2023, Max Nikulin wrote: diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el [...] should allow to set :java to flatpak-spawn --host toolbox run /usr/bin/ditaa without abusing of org-ditaa-jar-path. Untested. Doesn't this abuse the `

Re: Colons in :var header arguments

2023-11-10 Thread Ihor Radchenko
Ihor Radchenko writes: > Stefano Ghirlanda writes: > >> I have run into an inconvenience in that colons in :var header >> arguments to source blocks are invariably interpreted as referring to >> another file. However, I use cleveref in LaTeX export (via org-ref) to >> automatically format refere

Re: [PATCH] Highlight ANSI sequences in the whole buffer (was [PATCH] ANSI color on example blocks and fixed width elements)

2023-11-10 Thread Ihor Radchenko
Nathaniel Nicandro writes: >> A few months have passed since the last activity in this thread. >> May I know if you are still interested in the idea? > > I apologize for being unresponsive all these months. Yes I'm still > interested in this idea, although I have not had time to work on it > rece

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Ihor Radchenko
Leo Butler writes: > While I was reviewing the documentation, ob-doc-ditaa.org, and the > source, ob-ditaa.el, I realized that there is a simple way to run a > script file instead of a jar file. The documentation patch includes such > an example. Org cannot support every possible feature. And ev

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Ihor Radchenko
Leo Butler writes: > [fn:1] (Aside: `org-plantuml-executable-args' should be `org-plantuml-args'; > Ihor missed it when he made the change in commit b5f0efc049). Now fixed. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5c82e1e1d -- Ihor Radchenko // yantar92, Org mode contrib

Re: [PATCH] org-id: allow using parent's existing id in links to headlines

2023-11-10 Thread Ihor Radchenko
"Rick Lupton" writes: > On Tue, 25 Jul 2023, at 8:43 AM, Ihor Radchenko wrote: >> Ideally, we should have all the necessary logic to store the link within >> `org-id-store-link' and then use `org-link-set-parameters' to configure >> id links. > > I agree this would be neater, but looking at how t

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

2023-11-10 Thread Mehmet Tekman
Ihor Radchenko writes: > Mehmet Tekman writes: > >> Okay, I will definitely need to refactor my patches then, but I'm >> quite happy with the state of my current patch branch, so it will >> be an additional patch instead of a brand new set of patches >> I think. > > It has been a while since the

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

2023-11-10 Thread Ihor Radchenko
Mehmet Tekman writes: > Okay, I will definitely need to refactor my patches then, but I'm > quite happy with the state of my current patch branch, so it will > be an additional patch instead of a brand new set of patches > I think. It has been a while since the most recent message in this thread

Re: fancy TODO lists setup (emacs 29.1)

2023-11-10 Thread Ihor Radchenko
Martin Steffen writes: > I have been using the todo functionality for quite a while. I also > adapted it to my needs, for instance using multiple keywords, not just > the simple cycle TODO -> DONE -> "nothing" additionally I use my > personal "coloring" and other adaptations. > > When I upgraded

Re: [BUG] org-resolve-clocks use of read-char-exclusive without telling EXWM to change the focus back to Emacs results in deadlock

2023-11-10 Thread Ihor Radchenko
SyedZuhair writes: > The deadlock happens if org-resolve-clocks is called automatically (for > resolving idle time) while focus is in a EXWM-mode buffer. The > result is that the focus is stuck with the EXWM-mode buffer away from > Emacs and the user can not tell EXWM to change the focus to the >

Re: Issue with org-persist and Tramp

2023-11-10 Thread Ihor Radchenko
Fabio Natali writes: > On 2023-11-09, 12:17 +, Ihor Radchenko wrote: >> May I know what >>(file-remote-p "/ssh::/home/user/test.org") >> (with appropriate ) returns on your side? > > Hi Ihor, > > Sure, no particular reason to obfuscate the remote address, it's > actually a LAN IP. The ab