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

2025-02-23 Thread Ihor Radchenko
Grégoire Scano writes: > Your two suggestions have been added. > > I also fixed a problem when some options were omitted, tests are updated > accordingly. Thanks! The patch looks good, but unfortunately exceeds the maximum number of lines we can legally accept without copyright assignment. Woul

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

2025-02-23 Thread Ihor Radchenko
Visuwesh writes: >> Visuwesh, do you want to proceed with this part? > > Do we only want this for images, or for everything? Everything entails > images, all dropped files, dropped image files only, and XDND. Everything, I think. > This would warrant a NEWS entry too, right? Indeed. > +(defu

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-23 Thread Pedro Andres Aranda Gutierrez
Hi Ihor, I’m on the road and with no access to the development computer right now. Answers inline: > El 23 feb 2025, a las 10:24, Ihor Radchenko escribió: > > Pedro Andres Aranda Gutierrez writes: > >>> May you please explain this change? >> >> At one point, while debugging, it helped me as

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-23 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: >>;; section... we need the brackets >>(let* >> ;; Replace square brackets with parenthesis >> ;; since square brackets are not supported in >> ;; optional

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-23 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > We would forget unnumbered sections with alt_title… May you elaborate?

Re: Failure of asynchronous org exports and poly-org

2025-02-23 Thread Ihor Radchenko
Benjamin McMillan writes: > The org export backend is complicated compared to my debugging skills, but > I have been able to determin the following. > 1) The issue happens because of poly-org. > 2) It happens with -q and a minimal configuration (org + poly-org in init). > 3) It happens even expor

Re: [PATCH] Sanitize links in headings to avoid broken Texinfo menus

2025-02-23 Thread Ihor Radchenko
Rudolf Adamkovič writes: > This is a follow-up to my Git patch 4247798db, where I added support for > links in Org headings exported via Texinfo. I think it is 6443c83bd1 :) > I found that links in node-level constructs break Texinfo HTML menus: > the inner (user-specific) link works but the ou

Re: Language support for C# in org-babel

2025-02-23 Thread Ihor Radchenko
Stefan Nobis writes: > poverobuosodonati writes: > > [org-babel-csharp-target-framework] >> I am a bit undecided whether or not it would make sense to expose this >> as a header argument as I understand this to be rather "static" as in >> there might not be a desire to change this from code bloc

Re: [FR] org-babel-n-tangle

2025-02-23 Thread Lei Zhe
Hi Phil, Thank you for sharing the proposal and patch. It'll make the tangle system more flexible, and I would be glad to see it included in the next release. As it has been some time since your last response, I wanted to check in to see if you’re still planning to complete the patch. If not, I

Re: Language support for C# in org-babel

2025-02-23 Thread Stefan Nobis
Ihor Radchenko writes: > Stefan Nobis writes: >> poverobuosodonati writes: >> [org-babel-csharp-target-framework] >>> I am a bit undecided whether or not it would make sense to expose this >>> as a header argument as I understand this to be rather "static" as in >>> there might not be a desir

Re: Language support for C# in org-babel

2025-02-23 Thread Ihor Radchenko
poverobuosodonati writes: >> ob-csharp from org-contrib uses mcs here. I am wondering why you use >> something different. Is there any syntax difference? Something else? (I >> have no knowledge of C#) > > In fact, this was a deliberate decision. ... Further, it is > recommended by mono itself to

Re: Link preview generation with new link preview property

2025-02-23 Thread Ihor Radchenko
Björn Bidar writes: >>> The thing that confused me, but I think I wasn't aware of not getting it >>> yesterday was that org--create-inline-image creates the actual image >>> object. I was thinking that the image object would have been created in the >>> handler and then passed to the helper funct

Re: [PATCH] Improve the clock-out message

2025-02-23 Thread Ihor Radchenko
Kévin Le Gouguec writes: > Seconded, thanks for taking the time to tweak this! I sometime clock in > to some task that may require restarting Emacs (or the DE session, or > the computer); the message no longer gives me pause but it would be good > to spare future users. > > One question: should

Re: [PATCH] org-element.el; significant optimizations for org-element--interpret-affiliated-keywords

2025-02-23 Thread Ihor Radchenko
"Dwarshuis, Nathan J" writes: > patch updated and rebased on main Thanks! May you attach the patch as a separate attachment next time? I was not able to apply this email patch automatically. >> There is nothing stopping us from adding some affiliated keywords to >> standard properties in future

Re: [PATCH] Autoload org-link-set-parameters

2025-02-23 Thread Ihor Radchenko
Joseph Turner writes: > This change allows other packages to autoload their own link handlers. > See this mu4e issue: > > https://github.com/djcb/mu/pull/2798 > +;;;###autoload > (defun org-link-set-parameters (type &rest parameters) >"Set link TYPE properties to PARAMETERS. > PARAMETERS s

Re: [PATCH] Have org-string-width's temporary buffer be declared as such

2025-02-23 Thread Ihor Radchenko
Jules Tamagnan writes: > I hope this email finds you well. This is my first time contributing to > this mailing list attempting to contribute to org-mode, so hopefully I > do this correctly. Welcome! You do not have to do everything correctly beforehand and alone. We will tell you if something n

Re: Worg Patch: Adding refcard-org-beamer to Tutorials

2025-02-23 Thread Ihor Radchenko
David Masterson writes: > Found a nice reference card for using Beamer in Org on Github made by > Fabrice Niessen that I thought would be a good addition to Worg > Tutorials. He agreed. So patch attached. Thanks! Applied. https://git.sr.ht/~bzg/worg/commit/3ba22a8a -- Ihor Radchenko // yantar9

Re: [PATCH] ob-dot: Add `graphviz-dot' language alias

2025-02-23 Thread Ihor Radchenko
Rudolf Adamkovič writes: > I noticed that `dot' source blocks do not work out of the box: C-c C-c > works but C-c ' uses the Fundamental mode, even with the Graphviz MELPA > package installed. They work. Fundamental mode is usable, isn't it? In contrast, if you force using graphwiz-dot-mode from

Re: [BUG] Imenu, problem at first pass [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)]

2025-02-23 Thread Ihor Radchenko
Christoph writes: > Short description: When called first imenu does not correctly process an > org-mode file. With the file's buffer killed and reloaded or with any > other org-mode-file after the first take, imenu works correctly. > > How to reproduce: Start emacs -q and load an org-mode file

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

2025-02-23 Thread Ihor Radchenko
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 due to increased text scaling. >

Re: org-return after citation fails with 'no link found'

2025-02-23 Thread Ihor Radchenko
"Tyler Smith" writes: > Citation links appear to break the behaviour of org-return in some > circumstances. > > Minimum working example: > > emacs 31.0.50 > org 9.7.11 > > 1. Starting from emacs -Q > ... Fixed, on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1059e78c0

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-23 Thread Pedro Andres Aranda Gutierrez
> El 23 feb 2025, a las 12:54, Ihor Radchenko escribió: > > Pedro Andres Aranda Gutierrez writes: > >> We would forget unnumbered sections with alt_title… > > May you elaborate? Maybe I didn’t understand completely, so let’s go one step back. Why do we all need this (from a LaTeX point of

Re: Surprising behavior when org-table-get-remote-range returns a single value

2025-02-23 Thread Ihor Radchenko
Richard Sent writes: > When using org-table-get-remote-range to retrieve a field, I find that > my return value changes depending on if I'm accessing the field via a > row-column reference or a field-name reference. > > Here's an example: > ... > #+RESULTS: > : Type: string > : Value: 42 > > When

Re: [PATCH] Improve the clock-out message

2025-02-23 Thread Kévin Le Gouguec
Ihor Radchenko writes: > Kévin Le Gouguec writes: > >> Seconded, thanks for taking the time to tweak this! I sometime clock in >> to some task that may require restarting Emacs (or the DE session, or >> the computer); the message no longer gives me pause but it would be good >> to spare future

Re: Bug? Option :makeindex does not work with org-publish-use-timestamps-flag

2025-02-23 Thread Ihor Radchenko
Jens Lechtenboerger writes: > I publish with the default value for org-publish-use-timestamps-flag > (set to t) and I use ":makeindex t" to create a keyword index. > > Then, files that are skipped during export (as determined by > org-publish-needed-p) are not included in the index, which is > su

Re: [BUG] Org renders markup contained within LaTeX inline math delimiters [9.7.11 (release_9.7.11 @ /usr/share/emacs/31.0.50/lisp/org/)]

2025-02-23 Thread Ihor Radchenko
Arsen Arsenović writes: > Org Mode will consider markup starting from symbols that are inside > $$, \(\), and \[\]. Take, for instance, a file containing the > following: > > --8<---cut here---start->8--- > \(S \Rightarrow^{+} p\) and $p \Rightarrow^{+} q$ > >

Re: Link preview generation with new link preview property

2025-02-23 Thread Karthik Chikmagalur
> The new signature is (ov image-data-or-path &optional link align width) > So, LINK becomes optional in a sense that ALIGN+WIDTH may be provided instead. > > Should be 100% backwards-compatible. Is this the new signature for the API, i.e. previewers of all kinds? I don't follow how the preview f

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-23 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > Would \addcontentsline be possible? Yes, but we would add complexity > unnecessarily. See > https://tex.stackexchange.com/questions/101538/addcontentsline-lines-added-to-toc-not-numbered-and-lines-added-to-tot-not-sh > >

Re: [PATCH] Autoload org-link-set-parameters

2025-02-23 Thread Joseph Turner
Ihor Radchenko writes: > Joseph Turner writes: > >> This change allows other packages to autoload their own link handlers. >> See this mu4e issue: >> >> https://github.com/djcb/mu/pull/2798 > >> +;;;###autoload >> (defun org-link-set-parameters (type &rest parameters) >>"Set link TYPE prope

Re: org-return after citation fails with 'no link found'

2025-02-23 Thread Tyler Smith
Works perfectly, thanks Ihor! -- plantarum.ca On Sun, Feb 23, 2025, at 10:56 AM, Ihor Radchenko wrote: > "Tyler Smith" writes: > >> Citation links appear to break the behaviour of org-return in some >> circumstances. >> >> Minimum working example: >> >> emacs 31.0.50 >> org 9.7.11 >> >> 1. Sta

Re: Link preview generation with new link preview property

2025-02-23 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: Link preview generation with new link preview property

2025-02-23 Thread Ihor Radchenko
Karthik Chikmagalur writes: >> The new signature is (ov image-data-or-path &optional link align width) >> So, LINK becomes optional in a sense that ALIGN+WIDTH may be provided >> instead. >> >> Should be 100% backwards-compatible. > > Is this the new signature for the API, i.e. previewers of all

Re: org-toggle-timestamp-overlays fails to remove display property

2025-02-23 Thread Ihor Radchenko
Jason Hemann writes: > Sometime between 9.6.6 and 9.7.20, I’ve begun to encounter an issue where > org-toggle-timestamp-overlays will still add the display property, but then > fails to actually remove it. A quick investigation made me think it might > have something to do with the position is

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-02-23 Thread Ihor Radchenko
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 (fontified t)) 88 350) May you try Org 9.7

Re: Link preview generation with new link preview property

2025-02-23 Thread Ihor Radchenko
Karthik Chikmagalur writes: > I'm not sure about passing "align", as this should be read from the link > attributes. I'm assuming the "width" specified in the link attributes > will apply on top of the width argument to this function? Instead. The idea is to provide overriding alignment/width i

Re: [BUG] Warning: org-element-cache [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)]

2025-02-23 Thread Ihor Radchenko
Ting Boon Ghee writes: > Below warning prompted me to report this. > > ⛔ Warning (org-element-cache): ... thanks for reporting! > Emacs : GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.48, > cairo version 1.18.2) > of 2025-02-12, modified by Debian > Package: Org mode versi

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

2025-02-23 Thread Ihor Radchenko
Vins Xiro writes: > 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

Re: Noisy and unreliable (de-)tangling

2025-02-23 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Note that you can set it to `create-if-interactive'. I do not easily > see why modifying the buffer is something Org should not do, > especially if instructed. Oh, of course! Thank you Ihor, this worked perfectly. Rudy -- "Logic is a science of the necessary laws of

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

2025-02-23 Thread Grégoire Scano
Hello, On 2/23/25 17:32, Ihor Radchenko wrote: > Thanks! > The patch looks good, but unfortunately exceeds the maximum number of > lines we can legally accept without copyright assignment. > > Would you be interested to do the assignment? > See https://orgmode.org/worg/org-contribute.html#copyrig

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

2025-02-23 Thread Slava Barinov
Hello, Oh, right, I messed the scopes. Best Regards, Slava Barinov Ihor Radchenko writes: > 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

ob-haskell has stopped working

2025-02-23 Thread Lawrence Bottorff
I very well may be the only person using ob-haskell , but it has stopped working properly, maybe since an upgrade to haskell-mode-20250210.1927. So the symptoms are that I can run this code block in an org-mode file #+begin_src haskell

Re: [BUG] Incorrect LaTeX export when using images in a table to display them side-by-side. [9.7.5 (release_9.7.5 @ /home/dadinn/.emacs.d/straight/build/org/)]

2025-02-23 Thread Pedro Andres Aranda Gutierrez
Hi Ihor, I’m starting to look at this. Could you please confirm that the ToC patch is closed before or are there any further things to add to it? Best, /PA > El 23 feb 2025, a las 18:47, Ihor Radchenko escribió: > > Daniel Dinnyes writes: > >> I am trying to generate a LaTeX export with the

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-23 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > 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? This was introduced in a15a6

Re: Language support for C# in org-babel

2025-02-23 Thread Stefan Nobis
poverobuosodonati writes: [org-babel-csharp-target-framework] > I am a bit undecided whether or not it would make sense to expose this > as a header argument as I understand this to be rather "static" as in > there might not be a desire to change this from code block to code > block. What do you

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-23 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: >> May you please explain this change? > > At one point, while debugging, it helped me assuring need-alternative being a > boolean. Ignore if you don’t like it. >>> - ;; legacy behavior (á la LaTeX) >>> + ;; Treat th

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-23 Thread Pedro Andres Aranda Gutierrez
We would forget unnumbered sections with alt_title… Enviado desde mi iPhone > El 23 feb 2025, a las 11:13, Ihor Radchenko escribió: > > Pedro Andres Aranda Gutierrez writes: > >>> ;; section... we need the brackets >>> (let* >>>;; Replace sq

Re: Link preview generation with new link preview property

2025-02-23 Thread Karthik Chikmagalur
> 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' as the API function. Is this witho

Re: Link preview generation with new link preview property

2025-02-23 Thread Karthik Chikmagalur
> Hmm. Maybe we have a misunderstanding. I was talking about > `org-link-preview-file' signature. Yes, I misunderstood. > With the new signature, (org-link-preview-file ov path link) will be > still ok. The point is that other callers that want to use > `org-link-preview-file' independently may u

Re: [BUG] Incorrect LaTeX export when using images in a table to display them side-by-side. [9.7.5 (release_9.7.5 @ /home/dadinn/.emacs.d/straight/build/org/)]

2025-02-23 Thread Ihor Radchenko
Daniel Dinnyes writes: > I am trying to generate a LaTeX export with these two images displayed > side-by-side: > > ```org > | [[file:./chat1.png]] | [[file:./chat2.png]] | > ``` > > They display correctly inside the Emacs buffer. > > On the HTML export they display correctly side-by-side, but th

Repeater in a time-range?

2025-02-23 Thread David Masterson
Is it possible to specify a repeater in a time-range in Org? Something like: <2025-03-06 Thu 16:00 +1w>--<2025-03-27 Thu 16:00> Meaning: I have appointments on Thursdays at 4pm, but only for the month of March in 2025. -- David Masterson