Re: [BUG] Got error opening existing org file in emacs 30.1 [9.7.11 (release_9.7.11 @ /usr/share/emacs/30.1/lisp/org/)]

2025-03-15 Thread Steinar Bang
> Ihor Radchenko : > This is not the first time we are getting editorconfig clashing with Org > settings. > May you try the attached patch? > It should override editorconfig settings. I did a fresh clone of org-mode, built with "make autoloads", and added the following to .emacs: (let ((git-o

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

2025-03-15 Thread Lei Zhe
Thanks Ihor, Phil I updated the patch to address your comments. >> You are dropping this logic completely in the patch. Without this part >> :tangle no may not work. I restored the logic in the new patch. >> With this change, ONLY-THIS-BLOCK = nil is ignored. This will cause problems. I intende

Re: [FR] org-read-date-style

2025-03-15 Thread Ihor Radchenko
Zoey Hewll writes: > * Motivation > The prevailing date format where I live is D/M/Y, often abbreviated to > D/M. While I prefer Y-M-D as a persistent storage format, I naturally > default to D/M and prefer it for data entry. Especially when entering > recent dates (with =org-read-date-prefer-

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

2025-03-15 Thread Ihor Radchenko
Lei Zhe writes: >>> With this change, ONLY-THIS-BLOCK = nil is ignored. This will cause >>> problems. > I intended to remove the ONLY-THIS-BLOCK part since it will no longer > be used in the official code. It is still used by `org-babel-tangle' itself. > ... However, after searching on GitHub,

Re: Language support for C# in org-babel

2025-03-15 Thread Ihor Radchenko
poverobuosodonati writes: >> To me, it looks like this is going into the territory of compiled >> sources being the result of evaluation, as we discussed in >> https://list.orgmode.org/orgmode/1819406926.505980.1701990611...@fidget.co-bxl/ >> But that's a totally new behavior we may want to discu

Re: [PATCH] Re: Q: Documentation question on beamer and org

2025-03-15 Thread Ihor Radchenko
David Masterson writes: > Ok. Patch attached that hopefully Ihor will pick up. Applied. https://git.sr.ht/~bzg/worg/commit/226265af -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at

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

2025-03-15 Thread Ihor Radchenko
Okamsn via "General discussions about Org-mode." writes: > 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. Looks like a reasonable addition. CCing the new ox-t

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

2025-03-15 Thread Daan Ro
My apology for the late reply. > An alternative could be using `completing-read-multiple' where you can > enter, for example, comma-separated list of citations or a single > citation as you prefer. This is an improvement over ther current input loop, I think. > > In Latex, \cite is also more comm

Re: Repeater in a time-range?

2025-03-15 Thread Ihor Radchenko
David Masterson writes: > 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. I recommend using SCHEDULE + DEADLIN

change to headline text overlay behaviour of org-clock-display

2025-03-15 Thread libreville
Hello everyone, currently, if I clock some time and then do org-clock-display, the headline text changes face to ‘default’. If I’m not mistaken, this wasn’t the usual behavior until recently (my update to Emacs 30, perhaps?). The face at that location is org-level-1, which, if I remember rightly,

Re: Hope to improve the `org-set-property` performance

2025-03-15 Thread Ihor Radchenko
stardiviner writes: > The `org-set-property` [C-c C-x p] command is very slow on a big Org-mode > buffer. > I checked out the source code of `org-set-property`. The main slow is on > `org-buffer-property-keys`. I think it can use the new org-mode cache > mechanism. Instead of re-parse the whole o

Re: org upgrade warnings from a simple package-upgrade

2025-03-15 Thread Ship Mints
On Sat, Mar 15, 2025 at 1:32 PM Ihor Radchenko wrote: > Ship Mints writes: > > > I ran package-upgrade cherry picking org in an Emacs session that was > > running for a week or so. I restarted it after package-upgrade and got > the > > warnings below. > > > > I ran package-reinstall to force it

Re: [FR] [ox-html] export timestamps and durations via HTML5 element

2025-03-15 Thread Ihor Radchenko
Ihor Radchenko writes: > Lukas Epple writes: > ... >> If we are using HTML5 () to export, we are entitled to >> use the element [1] [2] which allows attaching a machine readable >> date, time, datetime or duration to text. Consequently, I propose that >> we change the rendering to something

Re: inconsistency for the affiliated keyword of a dynamic block

2025-03-15 Thread Ihor Radchenko
pinmacs writes: > There is a special case that might need a clarification in the orgmode > implementation and/or the org-syntax [0] > > The affiliated keyword, when it's before a dynamic block [1] it does not > work. > > Example: > > #+NAME: test > #+BEGIN: something-that-generates-a-table > |

Re: deltachat inbox bot

2025-03-15 Thread Ihor Radchenko
Thibaut Meyer via "General discussions about Org-mode." writes: > I would like to share a program I made recently. It’s a bot for the > Deltachat instant messenger (https://delta.chat/) that interacts with an > org-mode file. > > I wrote about it on my blog here: > https://thibaut.dev/blog/deltac

[Patch] Support png overlay background transparency in a transparent frame

2025-03-15 Thread gynamics
Emacs has support frame background transparency since 29, add `:mask heuristic` to overlay property list to make its transparent part masked when displayed in a transparent frame. There is a related thread [[https://emacs-china.org/t/org-latex-preview-png/29167/12]] . This is my first time t

Re: [BUG] org babel uses sh-mode with zsh indentation when i specify bash or bash-ts [9.7.11 (release_9.7.11 @ /usr/local/share/emacs/31.0.50/lisp/org/)]

2025-03-15 Thread Ihor Radchenko
the_wurfkreuz via "General discussions about Org-mode." writes: > Reproduction: > 1. emacs -Q > 2. In the scratch buffer: M-x org-mode > 3. M-x treesit-install-language-grammar > Write "bash" and choose interactive installation, then all the default > options. > 3. Paste this code: > > #+begin_s

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

2025-03-15 Thread Daan Ro
I've just recalled a limitation of CRM while testing: the separator must not be part of the completion candidate strings. "," and ";" are common in the authors field, other punctuations may appear in article names, too. Perhaps that's reason CRM wasn't used by oc-basic.el in the first place? Daant

Re: [BUG] Got error opening existing org file in emacs 30.1 [9.7.11 (release_9.7.11 @ /usr/share/emacs/30.1/lisp/org/)]

2025-03-15 Thread Ihor Radchenko
Steinar Bang writes: >> May it be that you are using built-in version of edittorconfig? > ... > Library is file ~/.emacs.d/elpa/editorconfig-20250219.1528/editorconfig.elc Ok. So, whatever the problem is, it is not with Emacs itself. You may consider reporting about `editorconfig-exclude-regexps

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

2025-03-15 Thread Ihor Radchenko
Tor-björn Claesson writes: > It adds om.el, which contains the start of a simple menu system, and uses > this to define org-cite-basic-follow. > Most of the work is done in org-menu-define. Now a proper high-level review. > +(org-menu-define org-cite-basic-follow > + "Follow cit

Re: Warning/Error message seen on an org file...

2025-03-15 Thread Ihor Radchenko
Ihor Radchenko writes: > "Rivoallon, Frederic" writes: > >> The org version is 9.6. > > Ok. This is not the latest release. > May you upgrade and let me know if you still see the warning? No update for over a month. I thus cannot proceeed and will assume that the warning will be gone after the

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

2025-03-15 Thread Ihor Radchenko
Daan Ro writes: >> > In Latex, \cite is also more commonly used and more asked/documented >> > compared to \cites. I think org-cite's decision to make inserting >> > citation(s) multiple by default an odd choice. > >> May you elaborate? Are you talking about auctex? > \cites is just rarely used I

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

2025-03-15 Thread Ihor Radchenko
Daan Ro writes: >> How does \cites have anything to do with interactive selection of >> multiple citations at once? > > An analogy, especially when exporting. Single selection of a citation > -> \cite, multiple selections -> \cites. This is a strange analogy. It is extremely common to cite multi

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

2025-03-15 Thread Daan Ro
> How does \cites have anything to do with interactive selection of > multiple citations at once? An analogy, especially when exporting. Single selection of a citation -> \cite, multiple selections -> \cites. > That's what I am leaning to - modifying oc-basic.el rather than oc.el > itself. Thank

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

2025-03-15 Thread Ihor Radchenko
Daan Ro writes: > I've just recalled a limitation of CRM while testing: the separator must > not be part of the completion candidate strings. "," and ";" are common > in the authors field, other punctuations may appear in article names, > too. Perhaps that's reason CRM wasn't used by oc-basic.el

Re: [BUG] org-log-reschedule does not respect LOGGING property as advertised

2025-03-15 Thread Ihor Radchenko
Aaron Zeng writes: > org-log-reschedule's docstring says that the org-schedule and > org-agenda-schedule commands respect the LOGGING property for a > subtree, but the behavior I observe seems to indicate the LOGGING > property has in fact no effect. > > ## Reproduction steps > ... Confirmed. No

Re: [BUG] org-persist--refresh-gc-lock now showing up after update to 30.1 [9.7.24 (9.7.24-7fa7a5 @ /Users/cchoi/.config/emacs/elpa/org-9.7.24/)]

2025-03-15 Thread Ihor Radchenko
Charles Choi writes: > After updating to Emacs 30.1, I now see the error message in *Messages* > > Error running timer ‘org-persist--refresh-gc-lock’: (wrong-type-argument > listp \...) > > > So far running Org seems nominal, but thought I'd report this error > message anyways. Sounds like a dup

[BUG] Unable to use Completions buffer with org-goto-interface set to outline-path-completion [9.7.25 (9.7.25-bdf9f94 @ /home/martin/emacs-work/elpa/org-9.7.25/)]

2025-03-15 Thread Martin Marshall
Hello, I'm noticing a problem with the `org-goto` command when used with `org-goto-interface` set to `outline-path-completion`. I use the standard "*Completions*" buffer for completion, so I would like to leave the setting of `org-outline-path-complete-in-steps` at its default (t). But I've found

Re: [BUG] Got error opening existing org file in emacs 30.1 [9.7.11 (release_9.7.11 @ /usr/share/emacs/30.1/lisp/org/)]

2025-03-15 Thread Ihor Radchenko
Steinar Bang writes: > ...the patch > didn't make a difference. So, we need to investigate further. > I have also tried to exclude org mode files from editorconfig by adding > ".org" to editorconfig-exclude-regexps, but that didn't help, either: > > (when (locate-library "editorconfig") > (ed

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

2025-03-15 Thread Daan Ro
> We can use something like ;; as a separator or even compute it > dynamically depending on the actual completion candidates (; if no > candidates contain ;, ;;, ;;;, etc) How does this look? I haven't known a function to reliably query all completion candidates from a completion table of regardle

Fix org-export-dispatch variable: Missing colons (patch included in attachments)

2025-03-15 Thread Max J. Herrmann
Dear org-mode maintainers, Being a casual org-user I am hereby submitting a small diff that fixes some missing colons in the variable org-export-dispatch​, as described in https://orgmode.org/worg/org-contribute.html#first-patch. I have noticed missing colons in exported files when using the org

export org to latex, but do not include matlab code only the result

2025-03-15 Thread Uwe Brauer
Hi I using GNU emacs 29.4 and org 9.7.14. I swore one of the following code snippets using matlab with results were exported to LaTeX, but only the results not the matlab code snippets. Not any more always the code and the result and the code is exported. Any idea how to solve this Thanks

Re: [PATCH]: make ox-latex obey global export title/author settings

2025-03-15 Thread Ihor Radchenko
"Pedro A. Aranda" writes: > Second patch attached as promised... Canceled. Alternative patch has been applied. See https://list.orgmode.org/87zfivm8qt.fsf@localhost/T/#t -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org develop

Re: Q: Documentation question on beamer and org

2025-03-15 Thread Ihor Radchenko
David Masterson writes: > + What is the difference between TOC and the "Outline" slide? Are they > meant to be the same thing? Yes. > + Why is my "Outline" slide blank? Shouldn't it be picking up all the > "H:1" headings? What am I missing? Frames are usually not placed in TOC. Groups o

Re: [BUG] Org-contacts doesn't jump to items in the second file specified in org-contacts-files [9.7.11 (release_9.7.11 @ /usr/share/emacs/30.1/lisp/org/)]

2025-03-15 Thread Ihor Radchenko
Garid Zorigoo writes: > The org-contacts maintainer has fixed this issue in the update 20250309.1659 > - For commit check: > https://repo.or.cz/org-contacts.git/commitdiff/b06a59736800865b8a7e8d6d45774169cb31528a > > And please close this subject as this is resolved. Canceled. -- Ihor Radchenk

Re: Org manual: Confused about parentheses in "filename=(buffer-file-name)" in code block header

2025-03-15 Thread Ihor Radchenko
alain.coch...@unistra.fr writes: > Leo Butler writes on Fri 7 Mar 2025 15:59: > > On Fri, Mar 07 2025, alain.coch...@unistra.fr wrote: > > > > > #+BEGIN_SRC sh :var filename=(buffer-file-name) :exports both > > >wc -w $filename > > > #+END_SRC > > > > (buffer-file-name)

Re: org upgrade warnings from a simple package-upgrade

2025-03-15 Thread Ihor Radchenko
Ship Mints writes: > I ran package-upgrade cherry picking org in an Emacs session that was > running for a week or so. I restarted it after package-upgrade and got the > warnings below. > > I ran package-reinstall to force it all to be recompiled and I restarted > Emacs with no warnings. I have a

bug#48676: Arbitrary code execution in Org export macros

2025-03-15 Thread Ihor Radchenko
Stefan Kangas writes: >> #+macro: hello (eval (shell-command-to-string "touch /tmp/HELLO")) >> Hello. {{{hello}}} >> >> Then: >> M-x org-export-dispatch >> t A >> >> -> now /tmp/HELLO exist, with no prompting. >> >> This seems contrary to normal Emacs practice for risky local variables, >> and to

Re: Select a region and yank a URL to create a link

2025-03-15 Thread Ihor Radchenko
Ryan Prior via "General discussions about Org-mode." writes: > Lately I've noticed more applications supporting a method of creating a link > by pasting a URL. The flow works like this: > 1. write some text > 2. select the text you want to linkify > 3. paste a URL to turn the selected text into

Re: org upgrade warnings from a simple package-upgrade

2025-03-15 Thread Ihor Radchenko
Ship Mints writes: > Do you have a feeling for which macro(s) are the most prominent ones that > cause incompatibilities from release to release? Always different. Any macro defined in a different file that is changed after upgrade may cause issues that are hard to debug. There is some hope tho

Re: export org to latex, but do not include matlab code only the result

2025-03-15 Thread General discussions about Org-mode.
>>> "UB" == Uwe Brauer writes: > Hi > I using GNU emacs 29.4 and org 9.7.14. > I swore one of the following code snippets using matlab with results > were exported to LaTeX, but only the results not the matlab code > snippets. > Not any more always the code and the result and the code is expo

Re: [BUG] org-gnus-follow-link tries to select dead frame [9.8-pre (release_9.7.15-163-g3ff21c.dirty @ /home/bidar/.local/etc/emacs/lib/org/lisp/)]

2025-03-15 Thread Björn Bidar
Björn Bidar writes: > Ihor Radchenko writes: > >> Björn Bidar writes: >> May it be that `org-link-frame-setup' is configured by the user to use current frame, but the user manually used gnus-other-frame and closed the frame? In my mind, your patch then introduced unexpected behav

Re: [BUG] Got error opening existing org file in emacs 30.1 [9.7.11 (release_9.7.11 @ /usr/share/emacs/30.1/lisp/org/)]

2025-03-15 Thread Steinar Bang
> Ihor Radchenko : > Ok. So, whatever the problem is, it is not with Emacs itself. > You may consider reporting about `editorconfig-exclude-regexps' to > editorconfig upstream. Will do! > As for Org mode, may you try another version of the patch (attached)? No change in behaviour with the p

Re: One big file or multiple small ones

2025-03-15 Thread General discussions about Org-mode.
Such a nice explanation. It definitely speaks of experience. This resonates with me to some extent, surely I can feel down the line if I continue I might pile up without managing it properly. Categorizing is beneficial, I should utilize that more. > If you don't apply the system well enough or u

Re: Q: Documentation question on beamer and org

2025-03-15 Thread Ihor Radchenko
Sébastien Gendre writes: > To have these commands in the Org export dispatcher, a user first need > to enable "org-beamer-mode". No. One needs to load ox-beamer library. org-beamer-mode just happens to autoload it. This is described at the very beginning of "Exporting" section: Org only lo