Re: How to go to an Org headline programmatically?

2023-07-05 Thread Samuel Wales
i have e.g. (let (org-refile-target-verify-function) (org-refile '(4)) for interactive; ther emight be a place to put the header name or id. On 7/5/23, Marcin Borkowski wrote: > Hi all, > > I want to find an Org headline in Elisp. No need to make it visible, > for example - just move the point

How to go to an Org headline programmatically?

2023-07-05 Thread Marcin Borkowski
Hi all, I want to find an Org headline in Elisp. No need to make it visible, for example - just move the point to the heading with a given title (it may even be within `save-excursion', as in "go there, do something, go back"). `org-link-search' seems to do what I want, but it does a lot more -

Re: [PATCH] ob-python: support header argument `:results file graphics'

2023-07-05 Thread Jack Kamm
Liu Hui writes: > I don't think so. Some users may want to keep the figure between > blocks, and they can always clear the figure themselves when > necessary. I'd rather not have to call pyplot.gcf().clear() every time, it doesn't seem nice. ob-R doesn't require manually clearing the plot, and

Re: [PATCH] ob-python: support header argument `:results file graphics'

2023-07-05 Thread Jack Kamm
Ihor Radchenko writes: > Jack Kamm writes: > >> I think the Worg documentation is accurately describing the behavior of >> ob-python -- it's just that ob-python uses ":results file" in a >> nonstandard way. > > May you please point me to the place in ob-python where :results file is > specially

Re: [PATCH] Re: what is the purpose of "This link has already been stored"?

2023-07-05 Thread Samuel Wales
On 7/5/23, Ihor Radchenko wrote: > Ihor Radchenko writes: > >> What Samuel described is a sequence of M-x org-store-link followed by >> M-x org-insert-all-links. With such workflow, user can expect that the >> links are going to be stored in order. If we are instead shuffle the >> stored links,

[BUG] org-indent-mode breaks indentation in source blocks

2023-07-05 Thread Vladyslav Zapolskyi
For example(written as it looks): (abababa abab :abab abab "abab") #+end_src * aba #+begin_src emacs-lisp (abababa abab :abab abab "abab") #+end_src * ababa #+begin_src emacs-lisp (abababa abab :abab abab "abab") #+end_src * abababa

[BUG] org-indent-mode breaks indentation in source blocks

2023-07-05 Thread fluentpwn
For example(written as it looks): (abababa abab :abab abab "abab") #+end_src * aba #+begin_src emacs-lisp (abababa abab :abab abab "abab") #+end_src * ababa #+begin_src emacs-lisp (abababa abab :abab abab "abab") #+end_src * abababa

[BUG] org-indent-mode breaks source block indent

2023-07-05 Thread fluentpwn
For example(written as it looks): (abababa abab :abab abab "abab") #+end_src * aba #+begin_src emacs-lisp (abababa abab :abab abab "abab") #+end_src * ababa #+begin_src emacs-lisp (abababa abab :abab abab "abab") #+end_src * abababa

Re: [BUG] Warning (org-element-cache): Org parser error (error "Invalid search bound (wrong side of point)")

2023-07-05 Thread Ihor Radchenko
Bhavin Gandhi writes: > I see this error now and then (mostly once or twice a day) while using > Org Agenda. I think this happens either while saving the file, or > clocking out, or some combination of these two. I haven't spent time on > figuring out the exact sequence of actions. > > ⛔ Warning

[PATCH] Fix Emacs-26 compatibility (was: Re: [BUG] org-element loading fails with "regexp" argument not "stringp")

2023-07-05 Thread Max Nikulin
On 05/07/2023 17:35, Ihor Radchenko wrote: However, you will see many more failures with Emacs 26 on the latest main. With the couple of attached patches the only failing test is Test test-org/delete-indentation backtrace: signal(wrong-number-of-arguments ((0 . 1) 3)) apply(signal

Re: [BUG] error wholenump in org agenda on reschedule [9.6.1 (9.6.1-??-fe92a3c @ /data/data/com.termux/files/home/.config/emacs/.local/straight/build-28.3/org/)]

2023-07-05 Thread Ihor Radchenko
Nick Römer writes: > Success! The error is gone. Thanks for testing! Applied. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=7c6302e20 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org

Re: [PATCH v3] lisp/org.el: Add final hooks to S-/M-/S-M-cursor commands

2023-07-05 Thread Ihor Radchenko
Evgenii Klimov writes: >> https://orgmode.org/worg/org-contribute.html#copyright > > Paperwork in process. Great! Note that FSF should reply within 5 working days. If not, you can follow up with them, and also with us. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org

Re: [PATCH v3] lisp/org.el: Add final hooks to S-/M-/S-M-cursor commands

2023-07-05 Thread Evgenii Klimov
Ihor Radchenko writes: [...] > > Thanks! > Applied, onto main. Thanks, it's a great pleasure! > Note that you have reached the contribution limit allowed without FSF > copyright assignment. If you want to contribute further, please consider > signing copyright paperwork. See >

Re: [PATCH] ob-python: support header argument `:results file graphics'

2023-07-05 Thread Ihor Radchenko
Jack Kamm writes: > I think the Worg documentation is accurately describing the behavior of > ob-python -- it's just that ob-python uses ":results file" in a > nonstandard way. May you please point me to the place in ob-python where :results file is specially treated? -- Ihor Radchenko //

Re: org-insert-link completion by description (Re: what is the purpose of "This link has already been stored"?)

2023-07-05 Thread Ihor Radchenko
Samuel Wales writes: >>> this buffer contains nothing useful and shortens the above buffer. >> >> This is fine. I assume that you can simply hide it away using >> `display-buffer-alist'. > > i have struggled with this in a wider context and gotten nowhere for years. (add-to-list

Re: [PATCH v3] lisp/org.el: Add final hooks to S-/M-/S-M-cursor commands

2023-07-05 Thread Ihor Radchenko
Evgenii Klimov writes: > Reworded as we discussed. Also for commands that support > `shift-select-mode' (i.e. org-shift{up,down,right,left}) mentioned it > and `org-support-shift-select'. > > From b27b95efbad7645d7bd4870becd112abc25c9840 Mon Sep 17 00:00:00 2001 > From: Evgenii Klimov > Date:

Re: [BUG] org-element loading fails with "regexp" argument not "stringp"

2023-07-05 Thread Ihor Radchenko
Justin writes: > Using emacs 26.1 (in case it matters).  Loading is failing at: > > (defconst org-element--current-element-re >   (rx >    (or >     (group-n 1 (regexp org-element--latex-begin-environment-nogroup)) > > rx is a macro, and so org-element* is not being evaluated.  It's >

Re: [PATCH] Use compat org-time-convert-to-list for emacs <27.1

2023-07-05 Thread Ihor Radchenko
Justin writes: > From: Justin Vallon > Date: Tue, 4 Jul 2023 19:01:27 -0400 > Subject: [PATCH] Use compat org-time-convert-to-list for emacs <27.1 Well. Technically Org 9.7 will drop Emacs 26 support as Emacs 29 will be released prior to Org 9.7 release. But it does not heart applying this

Re: [PATCH] org-src: flatten-tree is Emacs 27.1; require compat

2023-07-05 Thread Ihor Radchenko
Justin writes: > Also available at fake PR https://github.com/vallon/org-mode/pull/1 > Subject: [PATCH] flatten-tree is new in 27.1; require compat > > --- > lisp/org-src.el | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lisp/org-src.el b/lisp/org-src.el > index 317682844..b8db7c128

[PATCH] Re: what is the purpose of "This link has already been stored"?

2023-07-05 Thread Ihor Radchenko
Ihor Radchenko writes: > What Samuel described is a sequence of M-x org-store-link followed by > M-x org-insert-all-links. With such workflow, user can expect that the > links are going to be stored in order. If we are instead shuffle the > stored links, M-x org-insert-all-links may result in

Re: [PATCH] ob-python: support header argument `:results file graphics'

2023-07-05 Thread Liu Hui
Jack Kamm 于2023年7月5日周三 13:13写道: > 1. Do you need to add a call to pyplot.gcf().clear(), in case of > multiple blocks in a session? I don't think so. Some users may want to keep the figure between blocks, and they can always clear the figure themselves when necessary. > 2. Would it make sense

Re: [PATCH] ob-python: support header argument `:results file graphics'

2023-07-05 Thread Liu Hui
Ihor Radchenko 于2023年7月4日周二 19:29写道: > That said, your patch should still work fine even with these > considerations. But we may need to sort out this undocumented behaviour. > Probably, an error like in `org-babel-graphical-output-file' should be > thrown by `org-babel-generate-file-param'.