emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ob-lilypond fontification
@ 2023-08-22 16:04 Henrik Frisk
  2023-08-22 16:18 ` Ihor Radchenko
  0 siblings, 1 reply; 10+ messages in thread
From: Henrik Frisk @ 2023-08-22 16:04 UTC (permalink / raw)
  To: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 638 bytes --]

Hi,

Embarressed but happy that I realised I dont have to keep updating the
twelve year old version of ob-lilypond that I have been using I ran into a
problem. First of all, ob-lilypond is not part of the precompiled version
of emacs that I just switched to :
https://github.com/railwaycat/homebrew-emacsmacport/releases

So I grabbed the file ob-lilypond from another inactive install of Emacs
29.1 and linked to it in my init file. Everythin appears to work fine
except I dont get syntax highlightning unless I hit C-c '

The error I get is:

Org mode fontification error in #<buffer microtonal_notation.org>

Any suggestions?

/Henrik

[-- Attachment #2: Type: text/html, Size: 958 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ob-lilypond fontification
  2023-08-22 16:04 ob-lilypond fontification Henrik Frisk
@ 2023-08-22 16:18 ` Ihor Radchenko
  2023-08-23  6:04   ` Henrik Frisk
  0 siblings, 1 reply; 10+ messages in thread
From: Ihor Radchenko @ 2023-08-22 16:18 UTC (permalink / raw)
  To: Henrik Frisk; +Cc: org-mode-email

Henrik Frisk <frisk.h@gmail.com> writes:

> So I grabbed the file ob-lilypond from another inactive install of Emacs
> 29.1 and linked to it in my init file. Everythin appears to work fine
> except I dont get syntax highlightning unless I hit C-c '

I recommend installing Org mode from ELPA to make sure that you are
using the latest version.

Also, there were possibly relevant changes on development branch. So you
might need ELPA devel version.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ob-lilypond fontification
  2023-08-22 16:18 ` Ihor Radchenko
@ 2023-08-23  6:04   ` Henrik Frisk
  2023-08-26 12:24     ` Henrik Frisk
  0 siblings, 1 reply; 10+ messages in thread
From: Henrik Frisk @ 2023-08-23  6:04 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

On Tue, Aug 22, 2023, 6:17 PM Ihor Radchenko <yantar92@posteo.net> wrote:

> Henrik Frisk <frisk.h@gmail.com> writes:
>
> > So I grabbed the file ob-lilypond from another inactive install of Emacs
> > 29.1 and linked to it in my init file. Everythin appears to work fine
> > except I dont get syntax highlightning unless I hit C-c '
>
> I recommend installing Org mode from ELPA to make sure that you are
> using the latest version.
>
> Also, there were possibly relevant changes on development branch. So you
> might need ELPA devel version.
>

Makes sense. I will try that, thanks!

>

[-- Attachment #2: Type: text/html, Size: 1199 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ob-lilypond fontification
  2023-08-23  6:04   ` Henrik Frisk
@ 2023-08-26 12:24     ` Henrik Frisk
  2023-08-26 12:27       ` Ihor Radchenko
  0 siblings, 1 reply; 10+ messages in thread
From: Henrik Frisk @ 2023-08-26 12:24 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 943 bytes --]

Den ons 23 aug. 2023 kl 08:04 skrev Henrik Frisk <frisk.h@gmail.com>:

>
>
> On Tue, Aug 22, 2023, 6:17 PM Ihor Radchenko <yantar92@posteo.net> wrote:
>
>> Henrik Frisk <frisk.h@gmail.com> writes:
>>
>> > So I grabbed the file ob-lilypond from another inactive install of Emacs
>> > 29.1 and linked to it in my init file. Everythin appears to work fine
>> > except I dont get syntax highlightning unless I hit C-c '
>>
>> I recommend installing Org mode from ELPA to make sure that you are
>> using the latest version.
>>
>> Also, there were possibly relevant changes on development branch. So you
>> might need ELPA devel version.
>>
>
> Makes sense. I will try that, thanks!
>

So I changed to the main branch of

git://git.savannah.gnu.org/emacs/org-mode.git

and the new features you added to ob-lilypond is working (much
appreciated) but I still don' have syntax highlight in source blocks
though it works fine in lilypond-mode.

/Henrik

[-- Attachment #2: Type: text/html, Size: 1905 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ob-lilypond fontification
  2023-08-26 12:24     ` Henrik Frisk
@ 2023-08-26 12:27       ` Ihor Radchenko
  2023-08-26 14:08         ` Henrik Frisk
  0 siblings, 1 reply; 10+ messages in thread
From: Ihor Radchenko @ 2023-08-26 12:27 UTC (permalink / raw)
  To: Henrik Frisk; +Cc: org-mode-email

Henrik Frisk <frisk.h@gmail.com> writes:

> So I changed to the main branch of
>
> git://git.savannah.gnu.org/emacs/org-mode.git
>
> and the new features you added to ob-lilypond is working (much
> appreciated) but I still don' have syntax highlight in source blocks
> though it works fine in lilypond-mode.

Is lilypond library is loaded when you open Org file?
What happens if you run C-c ' on an src-block?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ob-lilypond fontification
  2023-08-26 12:27       ` Ihor Radchenko
@ 2023-08-26 14:08         ` Henrik Frisk
  2023-08-26 16:24           ` Ihor Radchenko
  0 siblings, 1 reply; 10+ messages in thread
From: Henrik Frisk @ 2023-08-26 14:08 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 573 bytes --]

Den lör 26 aug. 2023 kl 14:27 skrev Ihor Radchenko <yantar92@posteo.net>:

> Henrik Frisk <frisk.h@gmail.com> writes:
>
> > So I changed to the main branch of
> >
> > git://git.savannah.gnu.org/emacs/org-mode.git
> >
> > and the new features you added to ob-lilypond is working (much
> > appreciated) but I still don' have syntax highlight in source blocks
> > though it works fine in lilypond-mode.
>
> Is lilypond library is loaded when you open Org file?
> What happens if you run C-c ' on an src-block?
>

That works fine, code is syntax highlighted.

[-- Attachment #2: Type: text/html, Size: 1109 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ob-lilypond fontification
  2023-08-26 14:08         ` Henrik Frisk
@ 2023-08-26 16:24           ` Ihor Radchenko
  2023-08-27  7:29             ` Henrik Frisk
  0 siblings, 1 reply; 10+ messages in thread
From: Ihor Radchenko @ 2023-08-26 16:24 UTC (permalink / raw)
  To: Henrik Frisk; +Cc: org-mode-email

Henrik Frisk <frisk.h@gmail.com> writes:

>> Is lilypond library is loaded when you open Org file?
>> What happens if you run C-c ' on an src-block?
>>
>
> That works fine, code is syntax highlighted.

Hmm. Did you customize `org-src-fontify-natively'?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ob-lilypond fontification
  2023-08-26 16:24           ` Ihor Radchenko
@ 2023-08-27  7:29             ` Henrik Frisk
  2023-08-27  7:49               ` Ihor Radchenko
  0 siblings, 1 reply; 10+ messages in thread
From: Henrik Frisk @ 2023-08-27  7:29 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

Den lör 26 aug. 2023 kl 18:23 skrev Ihor Radchenko <yantar92@posteo.net>:

> Henrik Frisk <frisk.h@gmail.com> writes:
>
> >> Is lilypond library is loaded when you open Org file?
> >> What happens if you run C-c ' on an src-block?
> >>
> >
> > That works fine, code is syntax highlighted.
>
> Hmm. Did you customize `org-src-fontify-natively'?
>

This is what I have:

(setq org-confirm-babel-evaluate nil
      org-src-fontify-natively t
      org-src-tab-acts-natively t)

[-- Attachment #2: Type: text/html, Size: 964 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ob-lilypond fontification
  2023-08-27  7:29             ` Henrik Frisk
@ 2023-08-27  7:49               ` Ihor Radchenko
  2023-08-27 15:19                 ` Henrik Frisk
  0 siblings, 1 reply; 10+ messages in thread
From: Ihor Radchenko @ 2023-08-27  7:49 UTC (permalink / raw)
  To: Henrik Frisk; +Cc: org-mode-email

Henrik Frisk <frisk.h@gmail.com> writes:

>> Hmm. Did you customize `org-src-fontify-natively'?
>>
>
> This is what I have:
>
> (setq org-confirm-babel-evaluate nil
>       org-src-fontify-natively t
>       org-src-tab-acts-natively t)

Then, might be https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63579
If it is, putting (defvar font-lock-reference-face nil) into your config
should help; and, ideally, also reporting the bug to lilypond devs.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: ob-lilypond fontification
  2023-08-27  7:49               ` Ihor Radchenko
@ 2023-08-27 15:19                 ` Henrik Frisk
  0 siblings, 0 replies; 10+ messages in thread
From: Henrik Frisk @ 2023-08-27 15:19 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 605 bytes --]

Den sön 27 aug. 2023 kl 09:49 skrev Ihor Radchenko <yantar92@posteo.net>:

> Henrik Frisk <frisk.h@gmail.com> writes:
>
> >> Hmm. Did you customize `org-src-fontify-natively'?
> >>
> >
> > This is what I have:
> >
> > (setq org-confirm-babel-evaluate nil
> >       org-src-fontify-natively t
> >       org-src-tab-acts-natively t)
>
> Then, might be https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63579
> If it is, putting (defvar font-lock-reference-face nil) into your config
> should help; and, ideally, also reporting the bug to lilypond devs.
>

Yes, that did it, thanks!
/Henrik

[-- Attachment #2: Type: text/html, Size: 1176 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-08-27 15:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-22 16:04 ob-lilypond fontification Henrik Frisk
2023-08-22 16:18 ` Ihor Radchenko
2023-08-23  6:04   ` Henrik Frisk
2023-08-26 12:24     ` Henrik Frisk
2023-08-26 12:27       ` Ihor Radchenko
2023-08-26 14:08         ` Henrik Frisk
2023-08-26 16:24           ` Ihor Radchenko
2023-08-27  7:29             ` Henrik Frisk
2023-08-27  7:49               ` Ihor Radchenko
2023-08-27 15:19                 ` Henrik Frisk

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).