Strip out #+title in #+include

2024-06-14 Thread Risto Stevcev
There doesn't seem to be a way to strip out the `#+title` from an `#+include`d org file. As a result, for complex org documents, if you end up `#+include`ing multiple org files that have `#+title`s, it ends up appending them all, which can often not be what you want, which is true in my case. Ther

org-element--cache: Added org-data parent to non-headline element

2024-06-14 Thread martyhiatt
hi org-mode, i'm encountering an error repeatedly in my work. (i know elisp but not org well, i also don't know how to report bugs, so apologies if i'm doing it wrong. how i encounter it: - working in an org file, i call clone-indirect-buffer-other-window. - i narrow parent buffer to a subtree

[BUG] Invalid search bound [9.6.24 (9.6.24-??-5bdfc02 @ /Users/forsil/.config/emacs/.local/straight/build-29.2/org/)]

2024-06-14 Thread Yang Forsil
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. ---

Re: [BUG] Invalid search bound [9.6.24 (9.6.24-??-5bdfc02 @ /Users/forsil/.config/emacs/.local/straight/build-29.2/org/)]

2024-06-14 Thread Ihor Radchenko
Yang Forsil writes: > Warning (org-element-cache): org-element--cache: Org parser error in > zui-you-jie-ren-sheng.org::#. > Resetting. > The error was: (error "Invalid search bound (wrong side of point)") > Backtrace: > nil Thanks for reporting! May you upgrade Org mode to Org 9.7 and let us

Re: org-element--cache: Added org-data parent to non-headline element

2024-06-14 Thread Ihor Radchenko
martyhi...@riseup.net writes: > i'm encountering an error repeatedly in my work. (i know elisp but not org > well, i also don't know how to report bugs, so apologies if i'm doing it > wrong. > > how i encounter it: > > - working in an org file, i call clone-indirect-buffer-other-window. > - i na

Re: imenu vs. refile goto (was Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines)

2024-06-14 Thread Morgan Smith
Samuel Wales writes: > how does imenu compare against completion systems like ido combined with org > refile set to goto? when would you use imenu vs. other completion? For my specific use case, all I want is a simple minibuffer completion that offers me all the headings in the current buffer a

Re: [BUG] Attachments not resolved correctly from symlinked Org files

2024-06-14 Thread Ihor Radchenko
Ihor Radchenko writes: > Ihor Radchenko writes: > >> What about the approach we already use in >> `org-attach-id-to-path-function-list' - check if an attachment directory >> already exists, generated using any rule, and only if not, create a new? >> >> Similarly, in `org-attach-dir', we can firs

Re: [BUG] Broken read-multiple-choice help in DND local file handler [9.7.2 (release_9.7.2-8-gde0df5)]

2024-06-14 Thread Ihor Radchenko
Johann Klähn writes: > When I drag a file onto a buffer and use `?' at the resulting > `read-multiple-choice' prompt to open the help buffer, > a `(wrong-type-argument char-or-string-p attach)' error occurs. > Ultimately, `org--dnd-local-file-handler' passes a symbol where > `read-multiple-choice

Re: [BUG] Broken read-multiple-choice help in DND local file handler [9.7.2 (release_9.7.2-8-gde0df5)]

2024-06-14 Thread Ihor Radchenko
Johann Klähn writes: > When I drag a file onto a buffer and use `?' at the resulting > `read-multiple-choice' prompt to open the help buffer, > a `(wrong-type-argument char-or-string-p attach)' error occurs. > Ultimately, `org--dnd-local-file-handler' passes a symbol where > `read-multiple-choice

Re: Please document the caching and its user options

2024-06-14 Thread Ihor Radchenko
Eli Zaretskii writes: > I needed to visit org.org, the Org manual, today, and to my surprise > saw Emacs writing some data files into the ~/.cache/org-persist/ > directory. What's more, Emacs popped a buffer out of the blue telling > me that it could not safely encode the data written to (I pres

Re: [BUG] Clock malfunction -- Cannot process task file after update [9.7.2 (release_N/A-N/A-88dd2c @ /home/rknyman/.emacs.d/elpa/org-9.7.2/)]

2024-06-14 Thread Ihor Radchenko
Ihor Radchenko writes: > The culprit is > > CLOCK: [2023-06-01 Thu 21rr:07]--[2023-06-01 Thu 22:08] => 1:01 > > The timestamp is malformed there, which leads to error. > > It is still a bug in Org mode that such problem is not handled > gracefully. > Confirmed. Fixed, on bugfix. https://git.sav

Re: Please document the caching and its user options

2024-06-14 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: emacs-orgmode@gnu.org > Date: Fri, 14 Jun 2024 13:12:42 + > > Eli Zaretskii writes: > > > I needed to visit org.org, the Org manual, today, and to my surprise > > saw Emacs writing some data files into the ~/.cache/org-persist/ > > directory. What's more, Emacs

Re: [BUG/FR] org-plot: replot on resize [9.7-pre (N/A @ /home/viz/lib/emacs/straight/build/org/)]

2024-06-14 Thread Ihor Radchenko
Visuwesh writes: >>> This is more of a FR than a bug but it would be nice to have working >>> replot-on-resize when the gnuplot terminal is qt, x11, etc. To have >>> this functional, the data-file needs to be not deleted. >> >> It should be doable. >> We can simply use `org-babel-temp-stable-fil

Re: [BUG] Clock malfunction -- Cannot process task file after update [9.7.2 (release_N/A-N/A-88dd2c @ /home/rknyman/.emacs.d/elpa/org-9.7.2/)]

2024-06-14 Thread Ihor Radchenko
Ihor Radchenko writes: > Robert Nyman writes: > >> When I run "org-lint" again, I get an empty "Line Trust Warning" buffer. > > It does not catch all the typos in your file, unfortunately. > Look for "rr" and "r" in clock lines - they are not all caught. I now added a linter for CLOCK: lines. O

Re: Please document the caching and its user options

2024-06-14 Thread Jens Lechtenboerger
On 2024-06-14, Ihor Radchenko wrote: > Eli Zaretskii writes: > >> Please document the caching features of Org in the manual, including >> how to turn that off. (I also question the wisdom of turning this on >> by default without as much as a single request for confirmation from >> the user.) > >

Re: [BUG] Trailing dash is not included in link [9.7.3 (9.7.3-2f1844 @ /home/mwillcock/.emacs.d/elpa/org-9.7.3/)]

2024-06-14 Thread Ihor Radchenko
Morgan Willcock writes: > When web links are inserted into an org buffer, if the link ends in a > trailing dash this seems to be omitted from the link target. > > i.e. Inserting "https://domain/test-"; into the buffer will create a > clickable link for "https://domain/test";. > > These types of l

Re: org-babel-execute-src-block filters characters from :session *shell* output

2024-06-14 Thread Ihor Radchenko
"Cook, Malcolm" writes: > Let me walk you through the issue: > > #+begin_src sh > printf 'a\nb\nc\n>d\n #+end_src > > #+RESULTS: > : a > : b > : c > : >d > : > Results look as expected. So far so good. > > Now create a shell buffer (which will be named "*shell*") > > #+begin_src elisp > (shell)

RE: org-babel-execute-src-block filters characters from :session *shell* output

2024-06-14 Thread Cook, Malcolm
>"Cook, Malcolm" writes: > >> Let me walk you through the issue: >> >> #+begin_src sh >> printf 'a\nb\nc\n>d\n> #+end_src >> >> #+RESULTS: >> : a >> : b >> : c >> : >d >> : > >> Results look as expected. So far so good. >> >> Now create a shell buffer (which will be name

Publishing cache (was: Please document the caching and its user options)

2024-06-14 Thread Ihor Radchenko
Jens Lechtenboerger writes: > Jumping in here, I do not understand the publishing cache. Some of > my org documents are re-published every time, while others are only > re-published after changes. What is checked where? See "14.4 Triggering Publication" section of Org mode manual: Org

Re: [BUG] Export does not read .dir-locals.el [9.7.3 (release_9.7.3 @ /usr/local/share/emacs/30.0.50/lisp/org/)]

2024-06-14 Thread Ihor Radchenko
Protesilaos Stavrou writes: > I have noticed that the export mechanism does not read the local > variables of a file when those come from a .dir-locals.el. It is expected - export happens in a separate buffer that only inherits Org mode settings, but nothing else. Not a bug. Canceled. > ... >

Re: Please document the caching and its user options

2024-06-14 Thread Ihor Radchenko
Eli Zaretskii writes: >> Hmm. What aspect of caching do you want us to document? > > First and foremost, that it exists, and is turned on by default. The > manual is currently completely silent about it. > > Next, please document the user options that control this caching, and > especially those

[FR] Support sessions in ob-emacs-lisp via IELM

2024-06-14 Thread Ihor Radchenko
Suhail Singh writes: > IELM (M-x ielm) derives from comint-mode and provides a convenient > interactive environment for evaluating lisp expressions. Some of the > conveniences such as automatically evaluating expressions can make > iterative development easier. > > Currently, ob-emacs-lisp does

Re: [PATCH] worg: Prefer HTTPS to GIT for anonymous git access

2024-06-14 Thread Ihor Radchenko
Stefan Kangas writes: > I think using HTTPS makes more sense for anonymous git access, for the > usual security and privacy reasons. > > Please see the attached worg patch. Thanks! Applied. https://git.sr.ht/~bzg/worg/commit/87104b9f -- Ihor Radchenko // yantar92, Org mode contributor, Learn m

Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines

2024-06-14 Thread Ihor Radchenko
Morgan Smith writes: > With a file like this: > > * headline 1 > ** headline 2 > > We currently produce an imenu tree that looks like this: > > '(("headline 1" ("headline 2" . marker-2))) > > imenu has no clue where "headline 1" is located and thus the user > can't navigate to it. With this patc

Re: Please document the caching and its user options

2024-06-14 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: emacs-orgmode@gnu.org > Date: Fri, 14 Jun 2024 15:31:28 + > > Eli Zaretskii writes: > > >> Hmm. What aspect of caching do you want us to document? > > > > First and foremost, that it exists, and is turned on by default. The > > manual is currently completely si

[BUG] orgalist send bug

2024-06-14 Thread Rustom Mody
This is regarding the separate package orgalist by Nicolas Goaziou. https://elpa.gnu.org/packages/orgalist.html I installed orgalist with package install. Open the file orgalist.txt which contains the example from orgalist shown below M-x orgalist-mode M-x orgalist-send-list I get a warning Warni

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-06-14 Thread Rudolf Adamkovič
Rudolf Adamkovič writes: > I will continue working on this patch soon. All right, here I am, at last! In the attached patchset, I address all the problems discussed in this thread, plus some more I found: 1. Escape double quote characters in results [as discussed] 2. Sort tabular results [to f

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-06-14 Thread Rudolf Adamkovič
Rudolf Adamkovič writes: > In the attached patchset, I address [...] Oh, wait. I forgot about the big patch I already sent to you. Ha-ha! Hold your horses, then; I will resolve all conflicts and send a patchset that can be applied cleanly, end-to-end. #StillCooking :) Rudy -- "It is far bet

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-06-14 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Rudolf Adamkovič writes: > >> In the attached patchset, I address [...] > > Oh, wait. I forgot about the big patch I already sent to you. Ha-ha! > Hold your horses, then; I will resolve all conflicts and send a patchset > that can be applied cleanly, end-to-end. Ok.

Re: [PATCH] lisp/org-compat.el: Allow using imenu to visit non-leaf headlines

2024-06-14 Thread Morgan Smith
Ihor Radchenko writes: > Morgan Smith writes: > >> Quirks: >> >> With the default `imenu-flatten' value of nil, it is still impossible >> to visit non-leaf headlines and no change is perceived. > > But no regressions, right? Especially in older Emacs versions with > `imenu-flatten' not yet avail

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-06-14 Thread Rudolf Adamkovič
Ihor Radchenko writes: > :) Ihor, after banging my head against the desk for a while, I noticed that the "separator problem" I am fighting is not Lua-specific: src_elisp{"a, b"} {{{results(=a\, b=)}}} Is the escaped comma in the 'results' a bug or a feature? If it is a feature, let me know, a

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-06-14 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Ihor, after banging my head against the desk for a while, I noticed that > the "separator problem" I am fighting is not Lua-specific: > > src_elisp{"a, b"} {{{results(=a\, b=)}}} > > Is the escaped comma in the 'results' a bug or a feature? It is not a bug or feature.

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-06-14 Thread Rudolf Adamkovič
Ihor Radchenko writes: > It is not a bug or feature. It is syntax of Org mode macros. Commas > separate macro arguments and must be escaped otherwise. It transcendents both bugs and features. :) I will consider it a feature then (as per the traditional terminology, where a "feature" means "work

Re: [PATCH] ob-lua: Support all types and multiple values in results

2024-06-14 Thread Rudolf Adamkovič
Rudolf Adamkovič writes: > #StillCooking :) All right, here we go! 5 patches, all based on top of the head (73da6beb5) of `main' as of today (2024-06-14), in order: 0. [main, as of today] 1. ob-lua: Escape double quote characters in results 2. ob-lua: Sort tabular results 3. ob-lua: Remove hal

Re: [BUG/FR] org-plot: replot on resize [9.7-pre (N/A @ /home/viz/lib/emacs/straight/build/org/)]

2024-06-14 Thread Visuwesh
[வெள்ளி ஜூன் 14, 2024] Ihor Radchenko wrote: > Visuwesh writes: > This is more of a FR than a bug but it would be nice to have working replot-on-resize when the gnuplot terminal is qt, x11, etc. To have this functional, the data-file needs to be not deleted. >>> >>> It should be d