Re: [PATCH] Set Python shell in Org edit buffer

2023-12-29 Thread Liu Hui
Jack Kamm 于2023年12月30日周六 06:20写道: > > Liu Hui writes: > > > But it is indeed possible that two sessions are inconsistent, if users > > intend to have different org-babel-python-command and > > python-shell-interpreter, which are used by > > `org-babel-python-initiate-session' and `run-python', re

Suggestion to add hook to be run when org-indent completes a buffer's initialization

2023-12-29 Thread dark . key8799
The org-modern-indent package relies on org-indent having finished preparing a buffer to add its own customizations. Currently it relies on a timer mechanism to watch org-indent-agentized-buffers and execute once a buffer has been prepped by org-indent. That leads to some downstream issues in p

Re: [PATCH] Set Python shell in Org edit buffer

2023-12-29 Thread Jack Kamm
Liu Hui writes: > But it is indeed possible that two sessions are inconsistent, if users > intend to have different org-babel-python-command and > python-shell-interpreter, which are used by > `org-babel-python-initiate-session' and `run-python', respectively. I have just proposed this patch, wh

[PATCH] Change default ob-python session command to match run-python

2023-12-29 Thread Jack Kamm
The attached patch changes the default behavior of ob-python sessions, to respect python-shell-interpreter(-args) when starting an interactive session. It also allows separate customization of the default Python command for nonsessions and sessions. This mainly benefits IPython users. IPython is

[BUG] M-x org-lint gives spurious warning when file contains a link with percent-encoded url [9.6.13 ( @ /home/user/.emacs.d/elpa/org-9.6.13/)]

2023-12-29 Thread Suhail Singh
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Adding functionality to org-latex-classes

2023-12-29 Thread Pedro Andres Aranda Gutierrez
Hi, I was just wondering whether it would be possible to add further functionality to org-latex-classes and would like to start a discussion ;-) My use case is the following: The document class is tightly coupled with ~org-latex-subtitle-format~ and ~org-latex-subtitle-separate~. Koma-script c

Re: [PATCH] Set Python shell in Org edit buffer

2023-12-29 Thread Jack Kamm
Ihor Radchenko writes: > As long as it remains undocumented, we can break this in future (maybe > years from now, but still...). Fair enough, I've had to fix this feature from time to time due to breakage in the past. I just pushed d0d838b02 which should hopefully prevent future breakage: http

Re: [BUG] ox-odt.el overrides auto-mode-alist defaults [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]

2023-12-29 Thread Ihor Radchenko
Ihor Radchenko writes: > I am not applying the patches yet just in case if some users are relying > on the removed behaviour. If anyone reading this does use this undocumented > feature, please reply, and we will discuss how to retain it. Applied, onto main. https://git.savannah.gnu.org/cgit/ema

Re: Should org-link-parser add type "file" when link has no "file:" prefix?

2023-12-29 Thread Ihor Radchenko
Joseph Turner writes: > I expect the following to return "[[/foobar]]": > > (with-temp-buffer > (delay-mode-hooks (org-mode)) > (insert "[[/foobar]]") > (goto-char (point-min)) > (let ((link (org-element-link-parser))) > (org-element-link-interpreter link nil))) > > Instead, it return