Re: Image inlining patch

2025-03-29 Thread Pedro Andres Aranda Gutierrez
Thanks! Will try out as soon as I have time to. /PA On Sat, 29 Mar 2025 at 15:44, Ihor Radchenko wrote: > Pedro Andres Aranda Gutierrez writes: > > > after giving ox-html a second (and a third read), there are too many > > dependencies to make a clean move a simple task. > > It will take me m

Re: [BUG] (Feature request) Allow org-cite-insert to completing-read-just-once [9.7.11]

2025-03-29 Thread Daan Ro
Thank you. On Sun, 30 Mar 2025, 00:59 Ihor Radchenko, wrote: > Daan Ro writes: > > >> Maybe we should use 'separator property in the proposed values? > > > > Added, I was just afraid that bit is more unstable than the variable > > name. > > Applied, onto main, with minor amendments to the commi

Re: [BUG] C-c C-c doesn't update checkbox after making ready-only file read-write [9.7.11 (release_9.7.11 @ /usr/new/share/emacs/31.0.50/lisp/org/)]

2025-03-29 Thread Mike Kupfer
Ihor Radchenko wrote: > However, I cannot reproduce on the latest bugfix and on the latest > main. Try to upgrade Org mode and let me know if you keep seeing the > problem. Thanks, Ihor. I will do that and reply, but it may be a couple weeks before I get to it. cheers, mike

Re: Best way to represent a directory tree in Org-mode

2025-03-29 Thread Sébastien Gendre
I like the `tree` command in a bloc, as I can regenerate it at every directory modification. But in the export, all the special chars disappears. It only keep the files and directories names. It must be a problem with LaTeX, as the special chars are present in the .tex file generated by Org-mode

Re: Org-mode table not in tables TOC

2025-03-29 Thread Sébastien Gendre
H, I misunderstand it: I was certain that, in the table TOC, the table name used was get from the section title where the table is. And ALT_TITLE was to set another title for the table. Thank you very much. Ihor Radchenko writes: > Sébastien Gendre writes: >> Hello, >> >> I have created

Re: Announcing org-publish-rss.el

2025-03-29 Thread Ihor Radchenko
Thomas Ingram writes: > I've been working on a small package that makes it easier to setup RSS > feeds for org-publish projects. My package, org-publish-rss.el is a > small RSS generator that uses your `org-publish-project-alist' settings > to generate the feed. This removes the need to create

Re: [BUG] (Feature request) Allow org-cite-insert to completing-read-just-once [9.7.11]

2025-03-29 Thread Daan Ro
I defined org-cite-basic--crm-indicate-prompt, equivalent to "[list separated by ;;] %(prompt)" by default. Daanturo On Mar 29 2025, at 9:46 pm, Ihor Radchenko wrote: > Daan Ro writes: > > > Wait, Emacs 31 has added `crm-prompt' for CRM indication: > > > > https://yhetil.org/emacs/874j16hriz...

Re: Org-mode table not in tables TOC

2025-03-29 Thread Ihor Radchenko
Sébastien Gendre writes: > Hello, > > I have created a table like this: > > #+name: rpm-pks-installed > #+ALT_TITLE: Paquets RPM installés sur Fedora pour la démonstration locale You need captioned table. #+CAPTION: Paquets RPM installés sur Fedora pour la démonstration locale ALT_TILE make no

Re: ox-hugo publishing problems

2025-03-29 Thread Ihor Radchenko
"Michael P. Soulier" writes: > I am experiencing this bug > > https://github.com/kaushalmodi/ox-hugo/issues/740 > > But rebuilding has not solved the problem. > > Help appreciated. > > Using org 9.8-pre If you are usig the git version of Org, you can try testing with "make repro" command. But

Re: Font size for export of example bloc

2025-03-29 Thread Ihor Radchenko
Sébastien Gendre writes: > In an org-mode document, I have some example blocs. But their text are > to long for my LaTeX/PDF export. > > Is it possible to reduce the size of the font for just some example > blocs ? You may wrap them into appropriate environment. Maybe also add #+latex: \tiny or

Re: [O] Use properties in clocktable header?

2025-03-29 Thread Ihor Radchenko
Ken Mankoff writes: > I'd like to compute Org clock-tables for a time range, and rather than > hard-coding :tstart 2025-01-01 :tend 2025-01-31, I'd like to specify these in > the section PROPERTY drawer. This lets me access these in a {{{macro}}} and > use them elsewhere on an invoice. Is this

Re: Question about getting properties of org entry

2025-03-29 Thread Ihor Radchenko
Doerthous writes: > For getting properties of an org entry by ID, I currently (org 9.7) use > (org-entry-get (org-id-find ID t) PROP), but `org-id-find' seems too > slow. So I wonder this there any recommended ways to do this job? > > or, maybe we can cache also the marker returned by `org-id-fi

Re: Bug: Abrupt window-start changes with hidden emphasis markers and display-line-numbers-mode enabled

2025-03-29 Thread Ihor Radchenko
Ihor Radchenko writes: > James Cherti writes: > >> There is an issue in Org mode where `window-start` changes abruptly when >> emphasis markers are hidden (`org-hide-emphasis-markers` is set to `t`). >> This occurs when navigating through long lines that wrap across multiple >> screen lines d

Re: [BUG] Agenda sortation generally ignores time-of-day [9.7.25 (9.7.25-bdf9f94 @ /home/charlest/.emacs.d/elpa/org-9.7.25/)]

2025-03-29 Thread Ihor Radchenko
Charles Tam writes: > With the exception of the use of `time-(up|down)` in the `agenda` agenda > view, it seems to > me that agenda views such as `todo` do not consistently sort headlines > scheduled to the same > day at different times. Instead, headlines so scheduled are listed in the > order t

Re: [BUG] C-c C-c doesn't update checkbox after making ready-only file read-write [9.7.11 (release_9.7.11 @ /usr/new/share/emacs/31.0.50/lisp/org/)]

2025-03-29 Thread Ihor Radchenko
Mike Kupfer writes: > From "emacs -Q": > > Save the attached file, make it ready-only, visit the file, move point > to the start of the line with the first checkbox, type C-C C-c. I get a > message "Cannot update this checkbox". That's fine, the file and buffer > are read-only. > ... > > I firs

Re: [BUG] (Feature request) Allow org-cite-insert to completing-read-just-once [9.7.11]

2025-03-29 Thread Ihor Radchenko
Daan Ro writes: >> Maybe we should use 'separator property in the proposed values? > > Added, I was just afraid that bit is more unstable than the variable > name. Applied, onto main, with minor amendments to the commit message and changing (when (<= (length dyn-sep) (length (match-string 0)))

Re: [BUG?] `org-babel-tangle-comment-links' doesn't respect `org-babel-tangle-use-relative-file-links' [9.7.16 (9.7.16-ba9734 @ ~/.config/emacs/elpa/org-9.7.26/)]

2025-03-29 Thread Ihor Radchenko
João Pedro de Amorim Paula writes: > I realized the function `org-babel-tangle-comment-links' won't return the > relative file path regardless of the value of > `org-babel-tangle-use-relative-file-links', is this the intended behaviour > or a bug? Here's the source code for `org-babel-tangle-comm

Re: [BUG] org-goto does not show local context around visible headlines [9.7.11 (release_9.7.11 @ /usr/share/emacs/30.1/lisp/org/)]

2025-03-29 Thread Ihor Radchenko
Trevor Murphy writes: > Hey, folks. Like the subject line says, I'm noticing unexpected > behavior when I go to a headline that's visible but doesn't show as > much context as requested by org-fold-show-context-detail. > > Seems to be the case that org-goto only tries to unfold if point lands >

Re: [PATCH] The function `org-link-preview-region` should detect whether already has overlay.

2025-03-29 Thread Ihor Radchenko
Karthik Chikmagalur writes: >>> When headline cycle expanding on STATE is `subtree` in function >>> `org-cycle-display-link-previews`, assume I have org-mode content like >>> bellowing: >>> ... >>> The first two links will be previewed twice. (I use package >>> "org-link-beautify.el" which displa

Re: [BUG] (Feature request) Allow org-cite-insert to completing-read-just-once [9.7.11]

2025-03-29 Thread Daan Ro
> Maybe we should use 'separator property in the proposed values? Added, I was just afraid that bit is more unstable than the variable name. > We can instead just check for (boundp 'crm-prompt) Admittedly specifying Emacs version out loud is not beautiful, but I thought what if in the future the

Re: [PATCH] Improved mode line clock truncation behavior

2025-03-29 Thread Ihor Radchenko
"Rohit Patnaik" writes: > Currently =org-clock-string-limit= truncates rather crudely. It just does a > =substring=, which results in the closing parenthesis of the clock string > getting cut off. The attached patch seeks to improve this truncation behavior > by trimming the headline such that th

Re: [BUG] (Feature request) Allow org-cite-insert to completing-read-just-once [9.7.11]

2025-03-29 Thread Ihor Radchenko
Daan Ro writes: > I defined org-cite-basic--crm-indicate-prompt, equivalent to > "[list separated by ;;] %(prompt)" by default. Thanks! > + :type > + '(choice > +(const :tag "Use \";;\" as the separator." "[ \t]*;;[ \t]*") > +(const > + :tag > + "Dynamically compute \";\"+ with

Re: Optional weekday in Org mode timestamps

2025-03-29 Thread Ihor Radchenko
Jens Schmidt writes: > Bump ... Your email is #24 in the #B-priority todo list :) -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at

Re: [BUG] 30.1; regression to 29.4 org-mode wrong-type-argument number-or-marker-p nil [9.7.11 (release_9.7.11 @ /usr/share/emacs/30.1/lisp/org/)]

2025-03-29 Thread Ihor Radchenko
Ihor Radchenko writes: > Evgeniy Dushistov via "General discussions about Org-mode." > writes: > >> If I run "emacs -Q" and then eval such config: >> ... >> ``` >> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) >> org-src-font-lock-fontify-block(#("gdb" 0 3 (fontifi

Re: [BUG] (Feature request) Allow org-cite-insert to completing-read-just-once [9.7.11]

2025-03-29 Thread Ihor Radchenko
Daan Ro writes: > Wait, Emacs 31 has added `crm-prompt' for CRM indication: > > https://yhetil.org/emacs/874j16hriz@daniel-mendler.de/T/#m2b8290e24cd133171e143f93720384dab7b112ee > https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=a8a4c3a091bc6ebab40db3b33f4d15bb1040dbcb > Since having b

Re: Image inlining patch

2025-03-29 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > after giving ox-html a second (and a third read), there are too many > dependencies to make a clean move a simple task. > It will take me more time than I have right now. So why not fixing the bug > now and doing the factoring out later? See the attached p

Re: Optional weekday in Org mode timestamps

2025-03-29 Thread Jens Schmidt
Bump ... On 2025-03-21 22:42, Jens Schmidt wrote: > [Moving to emacs-orgmode - I hope it is OK to keep tomás on CC.] > > Hi Ihor, > > the following statement of yours on emacs-devel caught my eye: > > On 2025-03-03 19:31, Ihor Radchenko wrote: > >> FYI, weekday is optional. It also adapts to

Re: Generating the filename from name and file-ext for blocks with side-effects

2025-03-29 Thread Aitenate
On 25/03/2025 19:31, Ihor Radchenko wrote: > Rudolf Adamkovič writes: > >> Ihor Radchenko writes: >> >>> May I know if you are still interested to work on the patch? >> >> I was hoping someone else (TM) would implement it once we figure out >> what we want. :) That said, I can put it on my to-do

Re: Link preview generation with new link preview property

2025-03-29 Thread Ihor Radchenko
Karthik Chikmagalur writes: >> I am looking at this and wonder why not simply change the whole >> org-link-preview file to have (ov image-data-or-path &optional link align >> width) >> arguments. Then, we can make `org-link-preview-image-data' internal and >> only expose `org-link-preview-file'

Re: org-persist-write:index takes minutes to run

2025-03-29 Thread Ihor Radchenko
Karthik Chikmagalur writes: >>> 1. When running `save-buffers-kill-emacs', the time is down from several >>> minutes to about 10 seconds -- still undesirably long but not egregious. >>> This is the profile org-persist-delay-kill-emacs.eld. >> >> Ok. What about write time distribution now? > > Sor

Re: [PATCH] Add xdv support for latex preview

2025-03-29 Thread Ihor Radchenko
Billy Lei writes: > I've updated it to use (1.7 . 1.5) size adjust option. The > :package-version tag and ORG-NEWS are also updated. Thanks! Applied, onto main, after small changes to the commit message and the NEWS entry. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f30f6dc4

org-indent-line on the first line of src blocks when org-edit-src-content-indentation is non-zero (was: [BUG] Unintuitive indentation behavior when editing org-src blocks)

2025-03-29 Thread Ihor Radchenko
l...@phdk.org writes: > On the content indent, my confusion arose due to the fact that nothing > in the chain of descriptions related to it gave any indication that > the customization on code indentation should impact it. > 1. `org-src-tab-acts-natively' itself doesn't mention it. > 2. The descri

`org-indent-line' docstring is inaccurate for org-src-tab-acts-natively = nil (was: [BUG] Unintuitive indentation behavior when editing org-src blocks)

2025-03-29 Thread Ihor Radchenko
l...@phdk.org writes: > 2. At first I just wanted to report that tabbing with > `org-src-tab-acts-natively' at nil didn't follow > `org-edit-src-content-indentation', but looking into it I realize > there's a nuance to it. I think there is one "actual" bug and two > ambiguities in intention/desi

Re: [BUG] Unintuitive indentation behavior when editing org-src blocks

2025-03-29 Thread Ihor Radchenko
l...@phdk.org writes: > Thanks for the comments, I've attached the updated patch. > >> 1. Use `insert' rather than `insert-char' that is for interactive use. >> 2. Use more readable ?\t notation > > I realized that just inserting the spaces actually did mess up things > in some edge-cases so I cha

`org-indent-line' indents the end tag of some blocks but doesn't do so with src blocks (was: [BUG] Unintuitive indentation behavior when editing org-src blocks)

2025-03-29 Thread Ihor Radchenko
l...@phdk.org writes: > 1. `org-indent-line' indents the end tag of some blocks to match the > begin tag, but doesn't do so with src blocks, among others. > > MRE: With the pointer before =#+end_src=  in the following, do `M-x > org-indent-line' >   #+begin_src fundamental >     foo > #+end_src >

Re: [BUG] Org mode file opening in fundamental mode [9.7.26 (9.7.26-??-07e380f76 @ /home/juno/.config/emacs/.local/straight/build-30.1/org/)]

2025-03-29 Thread Ihor Radchenko
devuser writes: > I have emacs installed. I then installed Doom Emacs from the github > site. All was working well - i.e. I could open a .org file and Org mode > would be set and the org file would display/render correctly. > > Then I must have done something wrong like change something or do an

[BUG] Org mode file opening in fundamental mode [9.7.26 (9.7.26-??-07e380f76 @ /home/juno/.config/emacs/.local/straight/build-30.1/org/)]

2025-03-29 Thread devuser
Sorry if this is a noob issue but I am not an emacs expert. Distro: Mobian Phosh I have emacs installed. I then installed Doom Emacs from the github site. All was working well - i.e. I could open a .org file and Org mode would be set and the org file would display/render correctly. Then I must h

Re: [BUG] (Feature request) Allow org-cite-insert to completing-read-just-once [9.7.11]

2025-03-29 Thread Daan Ro
Wait, Emacs 31 has added `crm-prompt' for CRM indication: https://yhetil.org/emacs/874j16hriz@daniel-mendler.de/T/#m2b8290e24cd133171e143f93720384dab7b112ee https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=a8a4c3a091bc6ebab40db3b33f4d15bb1040dbcb Since having both only leads to unessenti