Re: How to get the contents of an Org subtree?

2023-07-24 Thread Ihor Radchenko
Marcin Borkowski writes: > I want to get the contents ("text") of a subtree. Without the heading, > without the drawers - just the text. org-agenda-get-some-entry-text -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org

How to get the contents of an Org subtree?

2023-07-24 Thread Marcin Borkowski
Hi all, I want to get the contents ("text") of a subtree. Without the heading, without the drawers - just the text. For example, for this: --8<---cut here---start->8--- ** Title :PROPERTIES: :CUSTOM_ID: whatever :END: This is the text. --8<---cut

Re: Subscript entity in the name of files or some advise for alternatives

2023-07-24 Thread Ypo
Thanks, Jens Why did you try that variable instead of "org-pretty-entities-include-sub-superscripts"? El 24/07/2023 a las 22:33, Jens Schmidt escribió: On 2023-07-24  21:12, Ypo wrote: I wanted it, because I usually use (_) to divide words when naming my_files, and that looks ugly in

Re: Subscript entity in the name of files or some advise for alternatives

2023-07-24 Thread Jens Schmidt
On 2023-07-24 21:12, Ypo wrote: I wanted it, because I usually use (_) to divide words when naming my_files, and that looks ugly in Orgmode. I had that problem myself recently. Do `org-use-sub-superscripts' and its companion `org-export-with-sub-superscripts' help in your case? See also

Re: Bug: org-anniversary dates not exported to iCalendar [9.4.6 (9.4.6-3-g37f69b-elpaplus @ /home/marcus/.emacs.d/elpa/org-plus-contrib-20210531/)]

2023-07-24 Thread Marcus Zibrowius
> Please provide mode details about what you tried. OK, I will try. I start emacs with emacs -Q -l emacs_init/minimal-org.el Here, minimal-org.el has the following contents: ;; Activate debugging. (setq debug-on-error t debug-on-signal nil debug-on-quit nil

Re: [BUG] Issues in ol-gnus when storing links in nnvirtual and nnselect articles [9.7-pre (release_9.6.7-570-gd6f3ae.dirty @ /home/jschmidt/work/org-mode/lisp/)]

2023-07-24 Thread Jens Schmidt
Uh, I had technical issues and did not get all mails as I expected. Cobbling things together in one big reply now, with references and quotes hopelessly broken ... hope you can sort it out. Anyway, thanks to Eric for chiming in. > Ideally, it would be nice to have tests, though I have no clue

Subscript entity in the name of files or some advise for alternatives

2023-07-24 Thread Ypo
Hi I tried to don't get the subscripts (_) affected by org-pretty-entities. I wanted it, because I usually use (_) to divide words when naming my_files, and that looks ugly in Orgmode. I have tried redefining the constant org-match-substring-regexp, but I think that broke several other

Re: [PATCH] lisp/org-table.el: Allow named columns on lhs

2023-07-24 Thread Max Nikulin
On 19/07/2023 09:36, Gavin Downard wrote: This patch does prioritize named columns over named fields, which can break compatibility in tables with a named column and named field with the same name. I have tried the patch. The formula for the named column "$three=" does not work. | ! | one |

Re: [BUG] Issues in ol-gnus when storing links in nnvirtual and nnselect articles [9.7-pre (release_9.6.7-570-gd6f3ae.dirty @ /home/jschmidt/work/org-mode/lisp/)]

2023-07-24 Thread Max Nikulin
On 23/07/2023 21:13, Jens Schmidt wrote: Gnus can have a global Message-ID cache, but it's not on by default (at least not in Emacs 28, haven't checked others).  And anyway, it's a potentially incomplete *cache*, and not an *index*. Thank you for clarification. Certainly just Message-ID is not

ox-publish index allows alternative formats?

2023-07-24 Thread Britt Anderson
Question: Could ~:makeindex~ (in the ~org-publish-project-alist~) be expanded to accept a user provided function for formatting the output differently? Background: I am using org for a static website (brittanderson.github.io). I wanted to make a list of blog posts subdivided by topic and I

[PATCH v3] ob-tangle.el: Blocks overwrite each other when grouping before tangling

2023-07-24 Thread Evgenii Klimov
Hi Here are the new tests that demonstrate the bug in block grouping during block collection, along with the patch to address the issue, taking your previous remarks into account. I split it into two patches so you can apply the tests first to see the bug. And probably tests should be

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

2023-07-24 Thread Rick Lupton
Hi, Here is a small new feature for org-id that I have been using and finding useful. The patch adds the option to look for ancestors of the current headline that have an ID defined and use that together with a link search string to link to specific headlines, without needing every single

Re: [PATCH v2] Re: [PATCH] add a function to only refresh inline images under current headline instead of global buffer

2023-07-24 Thread Ihor Radchenko
"Christopher M. Miles" writes: >> Unlike `org-latex-preview', here we need to (1) respect active region; >> (2) keep the backward compatibility for INCLUDE-LINKED. >> >> For (1), for example, it would make sense to respect region when prefix >> argument is C-u and clear images only there. For

Re: Bug: org-anniversary dates not exported to iCalendar [9.4.6 (9.4.6-3-g37f69b-elpaplus @ /home/marcus/.emacs.d/elpa/org-plus-contrib-20210531/)]

2023-07-24 Thread Ihor Radchenko
Marcus Zibrowius writes: >> * Test 1 >> %%(org-anniversary 2022 07 23) Test1 >> * Test 2 >> %%(org-anniversary 2022 07 25) Test2 %d > > Unfortunately, that still does not work, even with > icalendar-export-sexp-enumeration-days set to 400. Please provide mode details

Re: Bug: org-anniversary dates not exported to iCalendar [9.4.6 (9.4.6-3-g37f69b-elpaplus @ /home/marcus/.emacs.d/elpa/org-plus-contrib-20210531/)]

2023-07-24 Thread Marcus Zibrowius
> Sure. Because anniversaries count from 1 year, not from 0. > Try > > * Test 1 > %%(org-anniversary 2022 07 23) Test1 > * Test 2 > %%(org-anniversary 2022 07 25) Test2 %d Unfortunately, that still does not work, even with icalendar-export-sexp-enumeration-days set to

Re: table formula for the second last row

2023-07-24 Thread Ihor Radchenko
Luca Ferrari writes: > #+TBLFM: @>$3=vsum(@3..@-1) > #+TBLFM: @>$3=round( vsum(@3..@-2)/60 ) > > but both overwrite the last row of the third column, while I would > like the former to be on the second last row. @>>$3 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org

Re: [PATCH] lisp/org-table.el: Allow named columns on lhs

2023-07-24 Thread Ihor Radchenko
Gavin Downard writes: > Ihor Radchenko writes: >> Do we have any tests covering this part of the code? > > Not that I know of. I can add a test case for this specific instance, > but I'm not sure if I should add more comprehensive tests in this patch. > What do you think? I'd prefer to see

table formula for the second last row

2023-07-24 Thread Luca Ferrari
Hi all, I've a table that is keep growing, and in the end I've added the following to formulas: #+TBLFM: @>$3=vsum(@3..@-1) #+TBLFM: @>$3=round( vsum(@3..@-2)/60 ) but both overwrite the last row of the third column, while I would like the former to be on the second last row. Apparently I'm not

Re: [BUG] Issues in ol-gnus when storing links in nnvirtual and nnselect articles [9.7-pre (release_9.6.7-570-gd6f3ae.dirty @ /home/jschmidt/work/org-mode/lisp/)]

2023-07-24 Thread Ihor Radchenko
Eric Abrahamsen writes: > Ugh, this whole thing is a mess. I think the first question is: should > this function "fix" the state of Gnus before it makes a link? Should it > attempt to re-open the Summary buffer if it's been closed? Should it > switch current articles if the open article buffer

Re: Bug: org-anniversary dates not exported to iCalendar [9.4.6 (9.4.6-3-g37f69b-elpaplus @ /home/marcus/.emacs.d/elpa/org-plus-contrib-20210531/)]

2023-07-24 Thread Ihor Radchenko
Marcus Zibrowius writes: >> You can increase `icalendar-export-sexp-enumeration-days' to get the >> anniversary occurrences exported up to that number of days ahead. > > The variable `icalendar-export-sexp-enumeration-days` is indeed set to 14. > However, even entries of the form > > *