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

2024-01-09 Thread Jack Kamm
Ihor Radchenko writes: > See the attached tentative patch. Thanks! > --- > etc/ORG-NEWS | 11 +++ > lisp/ob-R.el | 20 ++-- > lisp/ob-julia.el | 16 +--- > 3 files changed, 26 insertions(+), 21 deletions(-) Not sure if you are doing this in a

Re: [fr] org-copy-subtree or so with no header

2024-01-09 Thread Samuel Wales
hi ihor, more below. On 1/9/24, Ihor Radchenko wrote: > Samuel Wales writes: > >> i set c speed command to copy subtree. i'd like to set C to copy >> subtree without top header. idk how to expand subtree temporarily. >> >> i thought it MIGHT be a useful fr. > > May you illustrate your

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-09 Thread Stefan Monnier
> Eli told me in the past that Org mode should not remap keys. > See the discussion branch starting at > https://yhetil.org/emacs-devel/8735gfs3is.fsf@localhost/ Then I'll let Eli take care of this :-) Stefan

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-09 Thread Ihor Radchenko
Stefan Monnier writes: >> Although, I am still interested to pursue feature request to allow >> customizing `kill-whole-line' and `kill-line' by major modes. > > [ I'm sorry I didn't pay very much attention to this part. > Naively, I'd suggest you use `remap` bindings for that, but I'm sure >

Re: Org LaTeX Beamer export and the order of loading packages and theme (XeLaTeX and fonts)

2024-01-09 Thread Lennart C. Karssen
Dear Igor, Thanks for your reply. On 09-01-2024 22:15, Ihor Radchenko wrote: "Lennart C. Karssen" writes: 1) Is there a way to tell Org to export the #+BEAMER_THEME lines before anything else? Yes. You can customize "beamer" class in `org-latex-classes' or define a custom (for example,

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-09 Thread Ihor Radchenko
Stefan Monnier writes: >> It would be nice if this advice were added to the relevant docstrings. > > Not sure exactly which advice you're referring to (the text you quoted > above is misleading: it would encourage the naive reader to just do the > work in `after-change-functions` since it's

Re: #5 [[bbb:OrgMeetup]] on Wed, Jan 17, 19:00 UTC+3

2024-01-09 Thread Ihor Radchenko
William Denton writes: >> Another OrgMeetup will be scheduled on the third Wednesday of January, >> in two weeks. >> ... >> URL: https://bbb.emacsverse.org/b/iho-h7r-qg8-led >> Time & Date: <2024-01-17 Wed 19:00-21:00 @+03,Europe/Istanbul> > > Thanks for organizing another one, Ihor. So I make

Re: Org LaTeX Beamer export and the order of loading packages and theme (XeLaTeX and fonts)

2024-01-09 Thread Ihor Radchenko
"Lennart C. Karssen" writes: > 1) Is there a way to tell Org to export the #+BEAMER_THEME lines before > anything else? Yes. You can customize "beamer" class in `org-latex-classes' or define a custom (for example, "my-beamer") class and add #+LATEX_CLASS: my-beamer to the Org file. This will

Re: #5 [[bbb:OrgMeetup]] on Wed, Jan 17, 19:00 UTC+3

2024-01-09 Thread William Denton
On Tuesday, January 2nd, 2024 at 06:31, Ihor Radchenko wrote: > Another OrgMeetup will be scheduled on the third Wednesday of January, > in two weeks. > ... > URL: https://bbb.emacsverse.org/b/iho-h7r-qg8-led > Time & Date: <2024-01-17 Wed 19:00-21:00 @+03,Europe/Istanbul> Thanks for

Re: [fr] org-copy-subtree or so with no header

2024-01-09 Thread Ihor Radchenko
Samuel Wales writes: > i set c speed command to copy subtree. i'd like to set C to copy > subtree without top header. idk how to expand subtree temporarily. > > i thought it MIGHT be a useful fr. May you illustrate your request with an example? -- Ihor Radchenko // yantar92, Org mode

[BUG] org-fast-tag-selection-include-todo is documented in the manual, but its docstring says that it is undocumented [9.7-pre (release_9.6.15-1039-gc00217 @ /home/yantar92/.emacs.d/straight/build/org

2024-01-09 Thread Ihor Radchenko
Hi, According to the docstring, `org-fast-tag-selection-include-todo': Non-nil means fast tags selection interface will also offer TODO states. This is an undocumented feature, you should not rely on it. Yet, in the manual, we have [fn:15] Check also the variable

Re: [PATCH v2] Fix background color of latex previews

2024-01-09 Thread Roshan Shariff
Hi Timothy, On Mon, 8 Jan 2024 at 03:24, Timothy wrote: > Thanks for this info and the patch! I've had a look at both, and I'm hopeful > that https://git.tecosaur.net/tec/org-mode/commit/3b3d48d3bf0 might solve the > problem? Do let me know what your think  Thanks for your prompt bugfix! I

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

2024-01-09 Thread Ihor Radchenko
Jack Kamm writes: >> IMHO, it might be enough to adjust org-babel-R-associate-session as the >> following >... > Otherwise, this looks good to me. See the attached tentative patch. >From f6fd65f8e80b6efa0a5db084a9c9f94d46e67515 Mon Sep 17 00:00:00 2001 Message-ID: From: Ihor Radchenko Date:

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-09 Thread Stefan Monnier
>> That's why I said "rule of thumb": there can be tradeoffs. >> In practice 99% of Emacs commands modify only a single contiguous chunk >> of text, so the tradeoff comes into play fairly rarely. > It would be nice if this advice were added to the relevant docstrings. Not sure exactly which

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-09 Thread Stefan Monnier
>>> But in addition to that, I suspect that Org should probably not modify >>> visibility directly from the modification hooks. Instead, its >>> modification hook function should just stash the info somewhere and then >>> update the visibility later on, such as in a `post-command-hook`, timer,

Re: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-09 Thread Ihor Radchenko
Sebastian Miele writes: > In an emacs -Q, create an Org buffer with the following contents: > > --8<---cut here---start->8--- > * AB > ** C > --8<---cut here---end--->8--- > > Fold the subtree under the heading AB, so that

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-09 Thread Ihor Radchenko
Ihor Radchenko writes: > Stefan Monnier writes: > >> But in addition to that, I suspect that Org should probably not modify >> visibility directly from the modification hooks. Instead, its >> modification hook function should just stash the info somewhere and then >> update the visibility

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-09 Thread Ihor Radchenko
Stefan Monnier writes: > That's why I said "rule of thumb": there can be tradeoffs. > In practice 99% of Emacs commands modify only a single contiguous chunk > of text, so the tradeoff comes into play fairly rarely. It would be nice if this advice were added to the relevant docstrings. --

Re: [PATCH] org-babel-demarcate-block: split using element API

2024-01-09 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > Attached you'll find a new patch fixing the three wrong lines in the > previous > and now the ERT test checks also for `user-error's. Thanks! >> 2. Your patch does not create space between the src blocks, unlike what >>we have on main. >>I think

[PATCH v6] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2024-01-09 Thread Ihor Radchenko
I have incorporated my suggestions into an updated patch. Note that I dropped the condition that new customization only works for org-use-fast-tag-selection = 'auto. Please let me know if anything you wanted to see in this patch is missing. >From 79fee381dc5ecbaed5bfe3ba66b11bb2a02aa97f Mon Sep

Org LaTeX Beamer export and the order of loading packages and theme (XeLaTeX and fonts)

2024-01-09 Thread Lennart C. Karssen
Dear list, I have been happily using the LaTeX Beamer export for several years. Recently, I had to update one of the themes I use for the slides and ran into a problem related to the order in which the theme and the LaTeX packages are exported to the .tex file. I use XeLaTeX to compile my

Re: [PATCH] org-babel-demarcate-block: split using element API

2024-01-09 Thread gerard . vermeulen
On 09.01.2024 08:49, gerard.vermeu...@posteo.net wrote: [...] Anyhow, I have removed the comment and I have replaced check below it with + (set-mark (point)) ;; To simplify the next (unless ...): + (unless (and (>= (point) body-beg) (<= (mark) body-end)) +