Re: Cant expand a heading with tab : Subtree (no children)

2024-04-27 Thread Jonathan Gregory
On 27 Apr 2024, Alexandros Prekates wrote: It happens daily , not initially , but after some hour(s) of using an org file to try to expand a heading ,that i know that it has subheadings , and it wont expand and see in the echo area the message : SUBTREE (NO CHILDREN). I see this too. The

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-20 Thread Jonathan Gregory
On 20 Aug 2023, Ihor Radchenko wrote: Jonathan Gregory writes: ob-doc-lilypond.html looks good, but I changed lilypond.org in: https://git.sr.ht/~bzg/worg/commit/6b9da77c8078be183971575fdc79d402bf6184c2 - b c d e + b4 c d e Is there any specific reason for this change

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-19 Thread Jonathan Gregory
On 11 Aug 2023, Ihor Radchenko wrote: And do I understand correctly that no changes in https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html are needed? ob-doc-lilypond.html looks good, but I changed lilypond.org in:

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-16 Thread Jonathan Gregory
-contrib/babel/languages/ob-doc-lilypond.html are needed? Probably not, but I'll check. -- Jonathan commit 8916c9ebbefb1b1d448e0e39998f9b9a3b054680 Author: Jonathan Gregory Date: Wed Aug 16 09:47:09 2023 -0300 lisp/ob-lilypond.el: Prevent full page results in basic-mode * ob

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-10 Thread Jonathan Gregory
Hi Ihor, On 08 Aug 2023, Ihor Radchenko wrote: Jonathan, do you think that your original patch is still what you want to get merged? Yes, the one I sent on 20 Jul 2023. I haven't had any issues with it so far. -- Jonathan

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-31 Thread Jonathan Gregory
On 31 Jul 2023, Ihor Radchenko wrote: May it be possible to mix multiple \version commands? So that we declare \version for \paper and user can declare other \version for the code block body. Probably not. Wouldn't that confuse the compiler? In any case, the \version number is relative to

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-31 Thread Jonathan Gregory
On 29 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: The basic-mode term is not very helpful. Perhaps [inline/cropped/embedded]-mode would have been more descriptive in terms of what it does. Sounds reasonable. I like "inline-mode", although no strong opinion. I l

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-28 Thread Jonathan Gregory
On 28 Jul 2023, Ihor Radchenko wrote: I am slightly confused because there seems to be a need to define some page settings manually to get "embedded" images. In the examples in https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html#org2c29903, there is no mention that we

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-27 Thread Jonathan Gregory
On 27 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: Ok. That fix has been already installed. https://git.sr.ht/~bzg/worg/commit/6f69d212f41bc372426dc9b4df286638fe8f2a92 To the extent of the lilypond.org file, yes, but only if the output is a PDF. My suggestion is to revert

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-26 Thread Jonathan Gregory
On 26 Jul 2023, Ihor Radchenko wrote: Ok. That fix has been already installed. https://git.sr.ht/~bzg/worg/commit/6f69d212f41bc372426dc9b4df286638fe8f2a92 To the extent of the lilypond.org file, yes, but only if the output is a PDF. My suggestion is to revert that commit and incorporate

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-25 Thread Jonathan Gregory
On 22 Jul 2023, Ihor Radchenko wrote: I guess I do not fully understand what your patch is trying to achieve. I thought that the patch would make it not necessary to write some extra boilerplate code, like \version or specifying the page size. The purpose of the patch was to fix the

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-25 Thread Jonathan Gregory
Hi Henrik, On 25 Jul 2023, Henrik Frisk wrote: Den tis 25 juli 2023 kl 18:16 skrev Henrik Frisk : My bad, putting :file ionian.cropped.png only results in ionian.cropped.cropped.png (as expected). Unclear why it worked the first couple of times. /Henrik No need to crop the output. If

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-21 Thread Jonathan Gregory
On 21 Jul 2023, Ihor Radchenko wrote: The png is still a full page on my side. That's not what I get. You're probably missing the paper settings: #+begin_src lilypond :exports none \version "2.20" \paper { indent=0\mm tagline="" line-width=170\mm oddFooterMarkup=##f

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-20 Thread Jonathan Gregory
On 20 Jul 2023, Ihor Radchenko wrote: With your patch, I cannot produce png output. The file is just not created: [...] You're right. Thanks for the feedback. I've made some changes and was able to produce the correct results using pdf, eps, and png (tested with 2.20.0 and 2.24.1). I think

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-19 Thread Jonathan Gregory
On 18 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: I also checked what will happen with future versions, and it looks like \version "2.24.1" actually means >=. That's good to know. I know version 2.20.0 works without the update, so perhaps we could set th

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-17 Thread Jonathan Gregory
Hi Ihor, On 14 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: Looks like this on my side as well. Given the feedback, I went ahead and changed the lilypond.org file: https://git.sr.ht/~bzg/worg/commit/6f69d212f41bc372426dc9b4df286638fe8f2a92 Thanks! It would be even nicer

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-14 Thread Jonathan Gregory
Hi On 13 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: Can you check if adding: \version "2.24.1" #(ly:set-option 'use-paper-size-for-page #f) #(ly:set-option 'tall-page-formats 'pdf) to the version-and-paper block fixes the issue. Yes, except that I have lilyp

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-13 Thread Jonathan Gregory
Hi On 13 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: Can you check if adding: \version "2.24.1" #(ly:set-option 'use-paper-size-for-page #f) #(ly:set-option 'tall-page-formats 'pdf) to the version-and-paper block fixes the issue. Yes, except that I have lilyp

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-12 Thread Jonathan Gregory
Hi Ihor On 12 Jul 2023, Ihor Radchenko wrote: [...] I have recently seen https://masto.ai/@rfc1149/110674961710491363 that revealed a problem with example from https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html#org29a742f Instead of lilypond fragments, full pages

Re: [RFC] If you use Org 9.6, please share the output of M-x org-element-cache-hash-show-statistics

2023-02-09 Thread Jonathan Gregory
Hi, On 09 Feb 2023, Ihor Radchenko wrote: Hi, I would like to assess the efficiency of one of search optimizations used in org-element.el [1] The statistics about efficiency is collected by Org, but obviously not shared without your consent. If you are ok with sharing the statistics,

Re: [HELP] Translate/extend `org-clock-clocktable-language-setup' for Spanish/Dutch/more languages

2022-12-04 Thread Jonathan Gregory
On 04 Dec 2022, Ihor Radchenko wrote: Jonathan Gregory writes: Contributions for other languages are also welcome. For Portuguese, I'd use the following: ("pt" "Arquivo" "N" "Data e hora" "Título" "Hora" "TODOS" &quo

Re: [HELP] Translate/extend `org-clock-clocktable-language-setup' for Spanish/Dutch/more languages

2022-11-28 Thread Jonathan Gregory
Hi On 27 Nov 2022, Ihor Radchenko wrote: Contributions for other languages are also welcome. For Portuguese, I'd use the following: ("pt" "Arquivo" "N" "Data e hora" "Título" "Hora" "TODOS" "Hora total" "Hora do arquivo" "Resumo das horas em") -- Jonathan

Re: ob-lilypond.el doesn't generate midi files

2022-11-01 Thread Jonathan Gregory
Hi Ihor, On 01 Nov 2022, Ihor Radchenko wrote: Jonathan Gregory writes: Yep, that's it. Modified ob-lilypond.el and recompiled it. Timidity works as helper, couldn't get vlc to work. Maybe the file ending should be modifiable via org-babel-lilypond-commands as well, or make ob-lilypond.el

Re: ob-lilypond.el doesn't generate midi files

2021-08-30 Thread Jonathan Gregory
pretty confident *.mid is the default setting for lilypond on win, and not my doing. I attached a patch to use a different suffix on Windows. Thanks for your help. -- Jonathan >From 1929b8082b9cff2a4bd99c573b2a2bd50b76b184 Mon Sep 17 00:00:00 2001 From: Jonathan Gregory Date: Mon, 30 Aug 2

Re: ob-lilypond.el doesn't generate midi files

2021-08-28 Thread Jonathan Gregory
Hi Michael On 28 Aug 2021, Michael Maurer wrote: So out of curiosity I changed the entry for midi-player to random gibberish, and the same message pops up, "no midi file generated so can't play". Toggling arrange-mode has no effect. I can play the generated midi-file from the command line

Re: ob-lilypond.el doesn't generate midi files

2021-08-26 Thread Jonathan Gregory
Hi On 26 Aug 2021, Michael Maurer wrote: I've installed lilypond and customized ob-lilypond to use the appropriate helper programs, but although it generates & shows pdfs just fine, generating a midi file it does not. I execute tangle on the codeblock, and all I get is "No midi file

Re: Get list of top-level headings

2021-05-19 Thread Jonathan Gregory
Hi On 19 May 2021, John Kitchin wrote: I think this is all you need to get a list of titles of level 1 headings as strings (org-map-entries (lambda () (fifth (org-heading-components))) "LEVEL=1") this also works for me: #+BEGIN_SRC emacs-lisp (org-map-entries (lambda ()

Re: Get list of top-level headings

2021-05-19 Thread Jonathan Gregory
Hello Florian On 19 May 2021, Florian Lindner wrote: Hello, I, an Emacs Lisp newbie, want to get a list of all top-level headings of the current buffer. My approach so far is: (defun test-org-map() (interactive) (setq headings '()) (org-map-entries (lambda ()

Re: [PATCH] ob-lilypond: allow user configuration of header-args

2021-01-12 Thread Jonathan Gregory
Hi Jamie On 10 Jan 2021, Jamie Bayne wrote: Hi all, I hit the problem described in https://www.mail-archive.com/emacs-orgmode@gnu.org/msg127317.html - I couldn't see that anyone else had fixed it so I had a go. The problem is that, unusually, ob-lilypond has some conditional logic on its

Re: Org-babel-lilypond always renders full pages

2020-04-02 Thread Jonathan Gregory
Hi On 02 Apr 2020, stardiviner wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > Jonathan Gregory writes: > >> Hi >> >> On 30 Mar 2020, stardiviner wrote: >> >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA256 >

Re: Org-babel-lilypond always renders full pages

2020-03-31 Thread Jonathan Gregory
Hi On 30 Mar 2020, stardiviner wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > stardiviner writes: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> >> You might want to try this: >> >> #+begin_src emacs-lisp >> (add-to-list 'org-babel-default-header-args:lilypond

Re: Org-babel-lilypond always renders full pages

2020-03-31 Thread Jonathan Gregory
ce-add 'org-babel-lilypond-set-header-args :filter-return (lambda (_mode) (setq org-babel-default-header-args:lilypond (append org-babel-default-header-args:lilypond '((:epilogue . "\\paper{ oddFooterMarkup=##f }&quo

Re: Org-babel-lilypond always renders full pages

2020-03-29 Thread Jonathan Gregory
Hi On 29 Mar 2020, Oliver Heck wrote: > Hi, > > I am trying to use org-babel-lilypond and basically got it running. > But somehow I always get full lilypond pages back instead of a small > snippet. > This is what I have in my org-file: > > #+NAME: Lilypond > #+BEGIN_SRC lilypond :file test.png

Re: [O] Orgmode Latex Export with Babel/LilyPond

2020-01-13 Thread Jonathan Gregory
Hello On 12 Jan 2020, adam wrote: > On Sun, 2020-01-12 at 10:43 +1300, adam wrote: >> On Sun, 2020-01-12 at 09:04 +1300, adam wrote: >> > >> > On Sat, 2020-01-11 at 12:30 -0300, Jonathan Gregory wrote: >> > > >> &g

Re: [O] Orgmode Latex Export with Babel/LilyPond

2020-01-11 Thread Jonathan Gregory
On 11 Jan 2020, adam wrote: > Still no success in tangling the examples modal-cycle.org modal-cycle2.org > shown here, > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html > > My current problem is Emacs rejecting the addition of either Lilypond or > lilypond, in

Re: [O] Orgmode Latex Export with Babel/LilyPond

2020-01-11 Thread Jonathan Gregory
On 20 Apr 2019, Jakob Schöttl wrote: > Hi, > > I'm trying (second attempt), to setup orgmode to export PDFs with > images generated by Babel/LilyPond. > > I followed the setup instructions here: > > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html > > I have > > a