Re: [PATCH] Add :noweb-prefix and :noweb-trans babel header arguments

2022-05-30 Thread Sébastien Miquel
Hi, Ihor Radchenko writes: Can you provide more concrete examples? Some drawbacks:  + doesn't work for all languages (does work for LaTeX) Which languages do not work? Most languages do not work. Using your proposed solution, what I'm trying to do is #+name:javascript-header #+begin_src j

Re: [BUG] Info JS does not work [9.5.3 (release_9.5.3-467-g2bd34e @ /Users/salutis/src/org-mode/lisp/)]

2022-05-30 Thread Bastien
Hi Ihor, Ihor Radchenko writes: > Should we create a help request for updates.orgmode.org? Yes, although this is not a pressant issue IMHO. > Should we create a dedicated project page in sr.ht to group everything > together nicely? There is such a SourceHut project: https://sr.ht/~bzg/orgmode

Re: Folded headlines with text showing where it shouldn't

2022-05-30 Thread Ihor Radchenko
William Denton writes: > I've had a problem lately that is related to folding headlines but I'm not > sure > how to narrow it down (short of turning on debugging, which I can do). I > wonder > if anyone else has seen this kind of thing happen or can recommend something > I > should look fo

Re: BUG: org cycling regression when using the legacy folding style overlays

2022-05-30 Thread Ihor Radchenko
Kaushal Modi writes: > Oddly, I was able to reproduce that error 2 times in an emacs -Q session, > but after resetting the Org element cache, that error went away. So turns > out that the same cache can be reused between emacs -Q and regular Emacs > sessions? org-persist-directly does have a def

Re: [PATCH] Add :noweb-prefix and :noweb-trans babel header arguments

2022-05-30 Thread Ihor Radchenko
Sébastien Miquel writes: >> #+name: documentation >> This is a sample function documentation. >> Because there are "quotes", it must be escaped and cannot be directly >> used as noweb-reference. >> >> #+name: doc-escape >> #+begin_src emacs-lisp :var str="" :tangle no >> (prin1-to-string (string-

Re: [BUG] org-element--cache: Unregistered buffer [9.5.3 (9.5.3-g4dda0d @ c:/Users/scott/.emacs.d/straight/build/org/)]

2022-05-30 Thread Ihor Radchenko
Scott Otterson writes: > Having just updated to emacs 28.1, I'm seeing the warning > > org-element--cache: Unregistered buffer > > every time I open a .org file. I also notice that org-superstar no longer > works. > > These problems persist if I delete my .emacs.d and let straight.el rebuild > e

Re: [patch] ox-html.el: add html attribute (verse numbers) to verse blocks

2022-05-30 Thread Ihor Radchenko
Juan Manuel Macías writes: > Ihor Radchenko writes: > >> Sounds reasonable. However, a more consistent way to handle line numbers >> would be using switches, like what we do in EXAMPLE blocks. See >> org-element-example-block-parser and 12.6 Literal Examples section of >> the manual. > > (I didn'

Re: [BUG] org-element-warnings when accidentially inserting "z" into timestamp [9.5.3 (release_9.5.3-471-gebbef7.dirty @ /home/grfz/src/org-mode/lisp/)]

2022-05-30 Thread Ihor Radchenko
Gregor Zattler writes: > Now I realized, that even after quitting and restarting > Emacs, I cannot insert a timestamp, I get the following > error message: > > org-parse-time-string: Not an Org time string: [20zznn22-05-30 Mo 11:34] > > And then there is a dangling > > CLOCK: > > line without tim

Re: Proposal: 'executable' org-capture-templaes

2022-05-30 Thread Ihor Radchenko
Arthur Miller writes: > Instead of hardcoding the actual work in the conditional statement, there > should > be a function to be called, so org-capture would setup its own work, some > random > "exec" menu like here would setup its own and so on. I haven't look at other > parts of org you have

Re: BUG: org cycling regression when using the legacy folding style overlays

2022-05-30 Thread Ihor Radchenko
Kaushal Modi writes: > I read the ORG-NEWS: > >> The new folding backend breaks some of the =outline-*= functions that >> rely on the details of visibility state implementation in >> =outline.el=. The old Org folding backend was compatible with the >> =outline.el= folding, but it is not the case

Re: BUG: org cycling regression when using the legacy folding style overlays

2022-05-30 Thread Kaushal Modi
On Mon, May 30, 2022 at 7:45 PM Ihor Radchenko wrote: > Your code__collapse_all_posts block makes use of hide-subtree from > outline.el. Please, do not use it. outline.el is no longer considered > compatible with Org. It was not in the past, and even more so now. This > has been announced in ORG-N

Folded headlines with text showing where it shouldn't

2022-05-30 Thread William Denton
I've had a problem lately that is related to folding headlines but I'm not sure how to narrow it down (short of turning on debugging, which I can do). I wonder if anyone else has seen this kind of thing happen or can recommend something I should look for or do when next it happens. I was work

Re: export a org table to ascii format (tabs) are not conserved, culprit orgtbl-to-tsv?

2022-05-30 Thread Samuel Wales
i was thinking of a nother element when i said div. i meant pre On 5/30/22, Samuel Wales wrote: > some web ui support some subset of html. i think blogger does. then > you might have a div. which i think [not sure] might enforce line > breaks and also be monospace, or something like that. [p

Re: export a org table to ascii format (tabs) are not conserved, culprit orgtbl-to-tsv?

2022-05-30 Thread Samuel Wales
some web ui support some subset of html. i think blogger does. then you might have a div. which i think [not sure] might enforce line breaks and also be monospace, or something like that. [pardon my html ignorance.] On 5/30/22, Tim Cross wrote: > > Uwe Brauer writes: > >> Hi >> >> I wanted t

Re: BUG: org cycling regression when using the legacy folding style overlays

2022-05-30 Thread Kaushal Modi
On Mon, May 30, 2022, 7:45 PM Ihor Radchenko wrote: > Kaushal Modi writes: > > > I was trying to create a minimal reproducible example for a different > > issue and I ended up with this other issue that I didn't expect and so > > I am reporting that first. > > > > Issue: Opening an Org file give

Re: BUG: org cycling regression when using the legacy folding style overlays

2022-05-30 Thread Ihor Radchenko
Kaushal Modi writes: > I was trying to create a minimal reproducible example for a different > issue and I ended up with this other issue that I didn't expect and so > I am reporting that first. > > Issue: Opening an Org file gives (wrong-number-of-arguments # looking-at> 2) error. Do I understa

BUG: org cycling regression when using the legacy folding style overlays

2022-05-30 Thread Kaushal Modi
Hello, I was trying to create a minimal reproducible example for a different issue and I ended up with this other issue that I didn't expect and so I am reporting that first. Issue: Opening an Org file gives (wrong-number-of-arguments # 2) error. = Warning (org-element-cache): org-element--c

Re: # Comments export

2022-05-30 Thread Tim Cross
Juan Manuel Macías writes: > Eric S Fraga writes: > >> I use drawers for this and then have specific processing of different >> types of drawers, depending on target. >> >> For instance, I might have :note: drawers (similar to inline tasks) with >> the following processing (for odt export; simi

Re: a simple(r) html export format (like org-mime)

2022-05-30 Thread Tim Cross
Uwe Brauer writes: > Hi > > Although the vanilla html export backend produces nice html, I sometimes need > a > simpler solution[1], like the one produced by org-mime (which is for email). > Does anybody know about such an exporter? > You seem to be aware of htmlise and I have no other sugges

Re: export a org table to ascii format (tabs) are not conserved, culprit orgtbl-to-tsv?

2022-05-30 Thread Tim Cross
Uwe Brauer writes: > Hi > > I wanted to export a 4x4 table to ascii to insert it into a web fill in > interface. However the column get distorted. I tried to tabify or > untabify the buffer but it did not help. > > > The problem also occurs when I export the table using the > orgtbl-to-tsv > >

Re: [PATCH] Add :noweb-prefix and :noweb-trans babel header arguments

2022-05-30 Thread Sébastien Miquel
Hi, Ihor Radchenko writes: Thinking about the whole idea of :noweb-trans more, I see little benefit compared to something like: #+name: documentation This is a sample function documentation. Because there are "quotes", it must be escaped and cannot be directly used as noweb-reference. #+name:

Re: export a org table to ascii format (tabs) are not conserved, culprit orgtbl-to-tsv?

2022-05-30 Thread Eric S Fraga
On Monday, 30 May 2022 at 17:48, Uwe Brauer wrote: > The problem also occurs when I export the table using the > orgtbl-to-tsv The hint is in the name: tsv means "tab separated values" so each entry (stripped of trailing spaces) is separated by a tab character (\t, o11, 0x09). If you look at the

export a org table to ascii format (tabs) are not conserved, culprit orgtbl-to-tsv?

2022-05-30 Thread Uwe Brauer
Hi I wanted to export a 4x4 table to ascii to insert it into a web fill in interface. However the column get distorted. I tried to tabify or untabify the buffer but it did not help. The problem also occurs when I export the table using the orgtbl-to-tsv #+begin_example | Course

a simple(r) html export format (like org-mime)

2022-05-30 Thread Uwe Brauer
Hi Although the vanilla html export backend produces nice html, I sometimes need a simpler solution[1], like the one produced by org-mime (which is for email). Does anybody know about such an exporter? Thanks Uwe Brauer Footnotes: [1] I will insert the htmlised buffer in some moodle inte

Re: [PATCH v3] Re: Bug in 9.5.3 org--file-default-apps

2022-05-30 Thread Max Nikulin
On 30/05/2022 21:00, Ihor Radchenko wrote: - (let* ((mime-type (mailcap-extension-to-mime (or ext ""))) + (let* ((mime-type (if (executable-find "file") +(shell-command-to-string + (format "%s --brief --mime-type --dereference %s"

Re: [patch] ox-html.el: add html attribute (verse numbers) to verse blocks

2022-05-30 Thread Juan Manuel Macías
Ihor Radchenko writes: > Sounds reasonable. However, a more consistent way to handle line numbers > would be using switches, like what we do in EXAMPLE blocks. See > org-element-example-block-parser and 12.6 Literal Examples section of > the manual. (I didn't remember that I had sent this patch..

Re: [BUG] org-element-warnings when accidentially inserting "z" into timestamp [9.5.3 (release_9.5.3-471-gebbef7.dirty @ /home/grfz/src/org-mode/lisp/)]

2022-05-30 Thread Gregor Zattler
Hi Ihor, * Ihor Radchenko [2022-05-30; 19:51]: > Gregor Zattler writes: > >> I accidentally inserted a "z" into a closing timestamp in a >> clockline like so: 20zznn22-05-30 >> >> This happened because I use key chors and didn't enter the >> chord fast enough. >> >> >> This produced a *Warnings*

[PATCH v3] Re: Bug in 9.5.3 org--file-default-apps

2022-05-30 Thread Ihor Radchenko
Max Nikulin writes: > However, in my opinion, it does not address original Craig's issue. The > patch improves handling of *non-text* files requiring *external* > viewers, while Craig complained that behavior for shell script is > incorrect and his problem is tightly bound to erased `mailcap-m

Re: Proposal: 'executable' org-capture-templaes

2022-05-30 Thread Arthur Miller
Ihor Radchenko writes: > Arthur Miller writes: > >>> By "generic" I did not mean general-purpose all-functional framework. >>> We just need something to remove code duplication in >>> org-export-dispatch, org-agenda, org-capture, org-set-tags-command, etc >>> They all share pretty similar code t

Re: [PATCH] org-imenu-get-tree: Allow parent headings to be selected themselves

2022-05-30 Thread Ihor Radchenko
Adam Porter writes: > Please see the attached patch that remedies a longstanding, simple > shortcoming in Org's Imenu support. I tried to test your patch starting from emacs -Q and I am unable to select parent headings. Could you provide a detailed example demonstrating the difference before/af

Re: [PATCH] "Cache corruption detected" when editing CLOCK timestamp by hand

2022-05-30 Thread Ihor Radchenko
Ihor Radchenko writes: >> Minimal reproducer: >> >> 1. Create an empty org file and open it >> 2. Yank the following string: "CLOCK: [2021-10-22 Fri 10:41]--[2021]" >> 3. M-: (org-element-at-point) > > The attached is tentative fix for cases like the above. Applied onto main via 4dda0d7a8. This

Re: [BUG] org-element-warnings when accidentially inserting "z" into timestamp [9.5.3 (release_9.5.3-471-gebbef7.dirty @ /home/grfz/src/org-mode/lisp/)]

2022-05-30 Thread Ihor Radchenko
Gregor Zattler writes: > I accidentally inserted a "z" into a closing timestamp in a > clockline like so: 20zznn22-05-30 > > This happened because I use key chors and didn't enter the > chord fast enough. > > > This produced a *Warnings* buffer of 2,3 MB size. Possibly a duplicate of https://lis

Re: # Comments export

2022-05-30 Thread Juan Manuel Macías
Eric S Fraga writes: > I use drawers for this and then have specific processing of different > types of drawers, depending on target. > > For instance, I might have :note: drawers (similar to inline tasks) with > the following processing (for odt export; similar for LaTeX): > > --8<---

[BUG] org-element-warnings when accidentially inserting "z" into timestamp [9.5.3 (release_9.5.3-471-gebbef7.dirty @ /home/grfz/src/org-mode/lisp/)]

2022-05-30 Thread Gregor Zattler
Ciao, 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. ---

[PATCH] org-imenu-get-tree: Allow parent headings to be selected themselves

2022-05-30 Thread Adam Porter
Hi, Please see the attached patch that remedies a longstanding, simple shortcoming in Org's Imenu support. Thanks, AdamFrom 00104b2b9246b19cdb02bbce993d120581dc9f0e Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Mon, 30 May 2022 02:59:06 -0500 Subject: [PATCH] org-imenu-get-tree: Allow pare

Re: # Comments export

2022-05-30 Thread Eric S Fraga
On Sunday, 29 May 2022 at 00:46, Ypo wrote: > I wanted to export my #comments so I could share my notes with more > people, using HTML export. I would export all of them. I use drawers for this and then have specific processing of different types of drawers, depending on target. For instance, I m