Re: Testing issues for Ada/SPARK support in Babel

2024-05-13 Thread Ihor Radchenko
Ihor Radchenko writes: > Francesc Rocher writes: > >> I'm starting from scratch the set of tests for Ada/SPARK support in Babel. >> I've prepared a file with the first example: > ... It has been a while since the last update in this thread. May I know if you need any help to progress on your wo

Re: [POLL] Dealing with +1m/y repeaters when jumping to impossible date (should 05-31 +1m be 07-01 or 06-30?) (was: Leap-year bug with todo-cycle)

2024-05-13 Thread Ihor Radchenko
Ihor Radchenko writes: >> I have a TODO-entry which looks like this: >> >> SCHEDULED: <2024-02-29 Thu ++1y> >> >> When I cycle the TODO-entry with c-c c-t it becomes >> >> SCHEDULED: <2025-03-01 Sat ++1y> > > This is expected. When we try to add 1 year to 2024-02-29, it is > 2025-02-29. However,

Re: [Worg] Keep table of contents visible in wide viewports?

2024-05-13 Thread Ihor Radchenko
Adam Porter writes: > Looking at Worg now, it occurred to me that, when my browser window is > maximized, there's plenty of room for the table of contents to remain > visible alongside the content. But it's hidden automatically, and > remains hidden until the user interacts with it, which see

Re: [PATCH] Add support for shortdoc link type

2024-05-13 Thread Max Nikulin
On 11/05/2024 23:58, Bruno Cardoso wrote: On 2024-05-10, 18:09 +0700, Max Nikulin wrote: I haven't yet. Will be glad to. I hope, next patch revision will be the final one, so it can be notification that the procedure is completed. (Re

Re: nested blocks in org

2024-05-13 Thread Ihor Radchenko
Ihor Radchenko writes: > mahmood sheikh writes: > >> with the given minimal example: >> ``` >> #+begin_parent >> #+begin_child >> #+end_child >> #+end_parent >> ``` >> the code >> ```lisp >> (org-block-map (lambda () (message "elem: %s" (org-element-at-point >> ``` >> goes through only the p

Re: [POLL] Should we enable or disable automatic tag alignment by default everywhere

2024-05-13 Thread Ihor Radchenko
Ihor Radchenko writes: > In the attached patch, I am changing all the commands in Org mode, > including "self-insert" and "delete-backwards" to respect this option. Given positive responses, I have applied the patch onto main. Applied, patch. Closed, poll. https://git.savannah.gnu.org/cgit/emacs

Re: [PATCH] Fix regex for determining image width from attribute

2024-05-13 Thread Ihor Radchenko
Max Nikulin writes: > I ma afraid, the code is a bit fragile. Consider > > #+attr_html: :alt Image width test > #+attr_beamer: :width \linewidth > #+attr_latex: :width +.5\textwidth > #+attr_md: :width 75% > [[file:babelfish.png]] > > - It is really confusing that #+attr_html casts shadow on #+at

Re: [PATCH] Fix regex for determining image width from attribute

2024-05-13 Thread Ihor Radchenko
Max Nikulin writes: >>> I think, it is better to avoid "is ignored" here. >> >> May you convert your suggestion into a patch? > > See the attachment. > From 7bc9d909867bf2f99a77d5d1554cd41e4fc664ae Mon Sep 17 00:00:00 2001 > From: Max Nikulin > Date: Thu, 9 May 2024 17:32:54 +0700 > Subject: [P

Re: [PATCH] Add support for shortdoc link type

2024-05-13 Thread Bruno Cardoso
On 2024-05-13, 18:14 +0700, Max Nikulin wrote: > Sorry, but did you manually edit the patch? I didn't. I generated it again and applied without errors. > If you wish to use `user-error' as in earlier revisions then you may use > > (error (user-error "Unknown shortdoc group or malforme

[PATCH] Ability to specify :html-head as a function

2024-05-13 Thread Nathan Nichols
Hello org-mode users, Here's a patch that adds the ability to specify :html-head as a function. I think this is a logical change because: 1. It provides a wider range of options for how to use :html-head (before :html-head could only be a string, now it can also be a function.) 2. It is consisten

Re: [PATCH] Ability to specify :html-head as a function

2024-05-13 Thread Ihor Radchenko
Nathan Nichols writes: > Here's a patch that adds the ability to specify :html-head as a function. I > think this is a logical change because: > > 1. It provides a wider range of options for how to use :html-head (before > :html-head could only be a string, now it can also be a function.) > 2. I

Re: Testing issues for Ada/SPARK support in Babel

2024-05-13 Thread Francesc Rocher
Hi Ihor, The patch is almost finished: refactored support for Ada and SPARK, tests and documentation of custom variables. The only pending thing is to write the changes in the NEWS files and other minor changes. If you don't mind, I attach here the patch in its current state for reviewing purpose

org-table-row face

2024-05-13 Thread Colin Baxter
I read in ORG-NEWS --8<---cut here---start->8--- Now, new ~org-table-row~ face is used on the whole table row lines, including indentation and the final newline. This face, by default, inherits from ~org-table~ face. If the new behavior is not desired, ~org-t

Re: org-table-row face

2024-05-13 Thread Ihor Radchenko
Colin Baxter writes: > I read in ORG-NEWS > > --8<---cut here---start->8--- > Now, new ~org-table-row~ face is used on the whole table row lines, > including indentation and the final newline. This face, by default, > inherits from ~org-table~ face. > > If the

Re: org-table-row face

2024-05-13 Thread Colin Baxter
> Ihor Radchenko writes: > Colin Baxter writes: >> I read in ORG-NEWS >> >> --8<---cut here---start->8--- >> Now, new ~org-table-row~ face is used on the whole table row >> lines, including indentation and the final newline. This f

[PATCH] function and symbol for headline and olp for org-capture-templates

2024-05-13 Thread Nafiz Islam
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 %?"))) (org-capt

Re: [PATCH] function and symbol for headline and olp for org-capture-templates

2024-05-13 Thread Nafiz Islam
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 m

Using a latex auxdir

2024-05-13 Thread Rustom Mody
HI folks! Long time!! I wanted to keep all my latex generated files inside auxdir. So I changed org-latex-pdf-process thus: (setq org-latex-pdf-process '("latexmk -f -pdf -%latex -interaction=nonstopmode -auxdir=%oauxdir %f" "mv %F %oauxdir" )) But this confuses org and I dont get C-c C-

Re: Using a latex auxdir

2024-05-13 Thread Rustom Mody
On Tue, May 14, 2024 at 8:54 AM Rustom Mody wrote: > But this confuses org and I dont get C-c C-e l p generating from the old > org file. > I thought the mv which moves the generated tex file into the auxdir is > confusing org. > But removing it does not help. > > Sorry I mistyped. I meant But th