From mboxrd@z Thu Jan 1 00:00:00 1970 From: adam Subject: Re: Orgmode Latex Export with Babel/LilyPond Date: Sun, 12 Jan 2020 10:43:57 +1300 Message-ID: <1578779037.23448.2.camel@orcon.net.nz> References: <1578648694.3503.16.camel@orcon.net.nz> <1578736706.11631.38.camel@orcon.net.nz> <87muauj9i0.fsf@autistici.org> <1578773061.21382.13.camel@orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:57930) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqOY6-00087v-24 for emacs-orgmode@gnu.org; Sat, 11 Jan 2020 16:44:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqOY4-0003rs-Ga for emacs-orgmode@gnu.org; Sat, 11 Jan 2020 16:44:01 -0500 Received: from smtp-2.orcon.net.nz ([60.234.4.43]:38665) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iqOY4-0003mh-5Z for emacs-orgmode@gnu.org; Sat, 11 Jan 2020 16:44:00 -0500 Received: from [121.98.229.241] (port=39830 helo=adpc) by smtp-2.orcon.net.nz with esmtp (Exim 4.90_1) (envelope-from ) id 1iqOY0-0006G1-RY for emacs-orgmode@gnu.org; Sun, 12 Jan 2020 10:43:57 +1300 In-Reply-To: <1578773061.21382.13.camel@orcon.net.nz> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org On Sun, 2020-01-12 at 09:04 +1300, adam wrote: > On Sat, 2020-01-11 at 12:30 -0300, Jonathan Gregory wrote: > > > > > > 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 the  org-babel-do-load-languages   > > > > > >    (org-babel-do-load-languages > > >      'org-babel-load-languages > > >      '( > > >        (emacs-lisp . t) > > >        (shell . t) > > >        (org . t) > > >        (Lilypond . t) > > >        ))  > > > > > > including either in the last line causes an error at Emacs startup, reported as,  > > > > > >    Warning (initialization): An error occurred while loading ‘/home/user/.emacs’: > > >    Symbol's value as variable is void: > > > > > > > > Earlier in my .emacs init file, I had hopefully defined lilypond, thus  > > > > > >    (setq ly-nix-ly-path "lilypond") > > > > > >    (add-to-list 'load-path "/usr/share/emacs/site-lisp/")  > > > > > >    (autoload 'LilyPond-mode "lilypond-mode") > > > > > >    (setq auto-mode-alist > > >          (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist)) > > > > > >    (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))  > > > > > > > > > In  /usr/share/emacs/site-lisp/   many lilypond related .el files  > > > are located, > > > > > >    lilypond-font-lock.el > > >    lilypond-indent.el > > >    lilypond-init.el > > >    lilypond-mode.el > > >    lilypond-song.el > > >    lilypond-what-beat.el > > >    lilypond-words.el > > >    ltx-help.el > > >    ob-lilypond.el > > >    ob-Lilypond.el > > >    ob-lisp.el > > >    org-tests.el > > > > > > > > > $ which lilypond     is unhelpful, > > > > > >    /usr/bin/lilypond  > > > > > > > > > The lilypond installation is at,  > > > > > >    /usr/share/lilypond/2.18.2/  > > > > > > > > > Any advice or suggestions would be most welcome.  > > Version 9.1.9 comes with ob-lilypond.el. There's no ob-babel-lilypond.el AFAIK. Also, > > where is ly-nix-ly-path and other ly-* variables defined? I don't see these variables. > > > Thank you. I'll look inside ob-lilypond.el  for clues, variables to be defined.   > > > Org-mode version 9.1.9 (release_9.1.9-65 ...) @ /usr/share/emacs/26.3/lisp/org  > on Ubuntu 18.04 > > $ find / -name "ob*.el"     locates only the ob-lilypond.el  I downloaded from github >                           >   > Maybe I need a (require 'lilypond) somewhere, I was thinking.  > > > Its a new system here. Emacs was installed with Ubuntu's software manager, lilypond  > was installed with $ sudo apt install lilypond     Neither were built from source.  > OK, my bad.  When I look inside  ob-lilypond.el  I find I pulled a page of markup stuff.  Will grab a proper  ob-lilypond.el    That will improve matters.