Re: Some hacks on top of org-publish

2025-02-22 Thread Nikolaos Chatzikonstantinou
On Mon, Dec 30, 2024 at 1:12 PM Ihor Radchenko wrote: > > Nikolaos Chatzikonstantinou writes: > > > ... I got inspired by Worg's website > > which does not do any backend hacking as far as I can tell, but > > instead puts some javascript to collapse the table of contents. > > WORG does not use JS

Re: [FR] yank media: allow customization of absolute path a filter for type candidates

2025-02-22 Thread Visuwesh
[சனி பிப்ரவரி 22, 2025] Ihor Radchenko wrote: >>> Visuwesh writes: > 1. do a variable for selecting absolute path: to be able to have a file > link that works with absolute path; and the reason is that being > relative, this, does not combine good when you move your latex export >>

Re: [patch] ox-man: footer-middle and header-middle options

2025-02-22 Thread Grégoire Scano
Hello, Thank you for your answer! On 2/15/25 23:48, Ihor Radchenko wrote: > While you are on it, may you also update the commentary in ox-man.el? > Commentary is currently the only source of the information about man > export and it does not say much about the export options. > >> + (format

[BUG] The org-indent-drawer function does not work for drawers in plain lists since commit af300bd5b

2025-02-22 Thread Vins Xiro
Hi, all, I have a lot of plain lists arranged as follows: 1. Foo :HIDDEN: :END: 2. Bar ... org-lint issues such warnings: 9 nil Bullet counter "2. " is not the same with item position 1. Consider adding manual [@2] counter. So the drawers should be indented. Well, there is org-inden

[Feature Request] Adding custom indices for Texinfo export (and maybe unaffiliated dual-value keywords?)

2025-02-22 Thread General discussions about Org-mode.
Hello, Texinfo allows one to create new named indices using `@defindex NAME`, which can then be used via `@NAMEindex`. I have been experimenting with different ways of supporting this. I have learned how to add an option `TEXINFO_ADDITIONAL_INDEXES` that can be used to create multiple uses of

Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?

2025-02-22 Thread Tor-björn Claesson
Thanks again, I'll be back :-) Cheers, Torbjörn Den lör 22 feb. 2025 16.18Ihor Radchenko skrev: > Tor-björn Claesson writes: > > >> 1. I am looking at C-- C-u prefix, and I am not sure if it is ideal > >>What I think might be better is: > >>- make a short C-- ('- argument) the switch >

Re: Language support for C# in org-babel

2025-02-22 Thread poverobuosodonati
First of all, thank you very much for the detailed review, this is awesome! I have adapted some bits and pieces and tried to elaborate on the open points in the following. Looks like some of the new header arguments can only be "yes"/"no". If so, you should reflect this fact in this variable.

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-22 Thread Pedro Andres Aranda Gutierrez
To be honest, that part was a bit cryptic for me. I couldn’t/can’t understand why organizers-export-get-alt-title’ will return something when nothing is set in the org document. Maybe a TODO for the next slot of coding? Best, /PA > El 22 feb 2025, a las 9:32, Ihor Radchenko escribió: > > [ I

Re: [PATCH] lisp/org-collector.el: Add support for TBLFM

2025-02-22 Thread Ihor Radchenko
Slava Barinov writes: > Okay, in that case we can just merge two loops into one and filter out the > #+TBLFM line. This version works for me. > + (when (and (string-match-p "^#" (substring-no-properties line)) > + (not (string-match-p "^#\\+TBLFM:" > (substring-no-properti

Re: [PATCH] lisp/org-collector.el: Add support for TBLFM

2025-02-22 Thread Slava Barinov
Hello, Okay, in that case we can just merge two loops into one and filter out the #+TBLFM line. This version works for me. Best Regards, Slava Barinov Ihor Radchenko writes: > Slava Barinov writes: > >> Yes, the block is cleaned but the #+TBLFM line is included into >> `content-lines' >> so

Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?

2025-02-22 Thread martin rudalics
> Martin, may you install your part of the patch for Emacs? > Once done, I will go ahead and commit my part of the change to the > development version of Org. I'll do that as soon as I've fixed my commit disorder. martin

Re: PATCH: ox-latex table of contents patch consolidated (was: [BUG] Latex exporter should consider export settings [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)])

2025-02-22 Thread Ihor Radchenko
[ I am re-adding Org mailing list to CC to keep the discussion public ] >>> -(unless (equal full-text-no-footnote full-text) >>> - (setq opt-title full-text-no-footnote)) >>> +(when (and (not (string= full-text-no-footnote full-text)) ;; >>> when we have footn

Re: Common Lisp weird Babel's results.

2025-02-22 Thread Ihor Radchenko
Héctor Galbis Sanchis writes: >> #+RESULTS: >> [[file:"plot.png"]] >> >>So, it is no so simple. > > I see. I've been looking at ob-emacs-lisp.el since elisp and common lisp > are very similar. So, checking if `scalar` or `verbatim` are used should be > sufficient. If some is being used then ret

Re: org-contacts-anniversaries keeps asking for link-storing function

2025-02-22 Thread Ihor Radchenko
> I will need to think about the best way to fix this problem. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e6fae2e34d My solution is not ideal, but should work I think. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at

Re: [PATCH] lisp/org-collector.el: Add support for TBLFM

2025-02-22 Thread Ihor Radchenko
Slava Barinov writes: > Yes, the block is cleaned but the #+TBLFM line is included into > `content-lines' > so it's duplicated unless removed manually. > > The solution with `save-excursion' looks more reliable but we can use just > `looking-back' in the end of block to check if the last line is

Re: [FR] yank media: allow customization of absolute path a filter for type candidates

2025-02-22 Thread Ihor Radchenko
Visuwesh writes: >> That's one option - we can ask Emacs devs to provide a customization for >> `yank-media' to auto-select specific type once it is available. > ... > I am leaning towards doing it in the Emacs side since it would get rid > of similar annoyance(s) in other yank-media handlers, no

Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?

2025-02-22 Thread Ihor Radchenko
Sébastien Gendre writes: > Ok, I tested it with success. > > I apply the patch on top of the following commits: > - Emacs: 4ece0e2e46b > - Org-mode: ff33d9ec2 > > And I have followed your instruction. Thanks! Martin, may you install your part of the patch for Emacs? Once done, I will go ahead a

Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark?

2025-02-22 Thread Ihor Radchenko
Tor-björn Claesson writes: >> 1. I am looking at C-- C-u prefix, and I am not sure if it is ideal >>What I think might be better is: >>- make a short C-- ('- argument) the switch >>- make the switch customizable (if users do not like C--) >> > > I tried simply changing the switch from

Re: [PATCH] lisp/org-collector.el: Add support for TBLFM

2025-02-22 Thread Slava Barinov
Hello, Yes, the block is cleaned but the #+TBLFM line is included into `content-lines' so it's duplicated unless removed manually. The solution with `save-excursion' looks more reliable but we can use just `looking-back' in the end of block to check if the last line is a #+TBLFM. Not sure if #+TB

Re: [PATCH] lisp/org-collector.el: Add support for TBLFM

2025-02-22 Thread Ihor Radchenko
Slava Barinov writes: > Okay, in that case bounded re-search-forward up to the next paragraph should > work. Hmm. I am wondering why you need that re-search-forward at all. AFAIK, dblock write function is called with dynamic block body emptied: #+BEGIN: ... #+END: There should be no TBLFM pre

Re: [PATCH] Fix org-do-latex-and-related at buffer start

2025-02-22 Thread Ihor Radchenko
Ihor Radchenko writes: >> A minimal example to reproduce: >> 1. Open a scratch buffer >> 2. Insert text \(\Omega\) >> 3. Turn on org-mode > > I tried to follow the example, but I am unable to reproduce the problem. > May you please provide more detailed steps to reproduce and share the > informat