Re: Emacs Mode Problem with includes
That worked perfectly: Emacs > Options > Customize Emacs > Options Matching > Lilypond > Lilypond Lilypond Command > /usr/bin/lilypond --include=/home/laurie/Lilypond/includes "${@}" Thanks Laurie Savage https://www.queensofthewest.com/ The Latest Queens of The West clips https://www.youtube.com/playlist?list=PLgkDbfgWIb8_tQgEZRKeRWVSukoM2xoC_ On Thu, 16 Nov 2023 at 02:41, Torsten Krueger wrote: > Laurie Savage wrote on 13.11.2023: > > > Still I get errors like this: > > /home/laurie/Documents/Charts/Transpositions/Dear Old > > Stockholm/Dear-Old-Stockhom_Traditional.ly:3:10: error: cannot find file: > > `/home/Laurie/Lilypond/includes/jazzchords.ily' > > > > > ... > > > > Any ideas? > > I am not calling lilypond directly from emacs, but a short script which > itself runs: > > /usr/local/lilypond/current/bin/lilypond > --include=/home/torsten/.lilypond/include "${@}" > > > Have fuun! > Torsten > > >
Re: Emacs Mode Problem with includes
Laurie Savage wrote on 13.11.2023: > Still I get errors like this: > /home/laurie/Documents/Charts/Transpositions/Dear Old > Stockholm/Dear-Old-Stockhom_Traditional.ly:3:10: error: cannot find file: > `/home/Laurie/Lilypond/includes/jazzchords.ily' > > ... > > Any ideas? I am not calling lilypond directly from emacs, but a short script which itself runs: /usr/local/lilypond/current/bin/lilypond --include=/home/torsten/.lilypond/include "${@}" Have fuun! Torsten
Re: Emacs Mode Problem with includes
Thanks for trying! Laurie Savage On Tue, 14 Nov 2023 at 20:59, David Kastrup wrote: > Laurie Savage writes: > > > Thanks David, > > > > I think I'll stay with Frescobaldi! Emacs doesn't seem to edit .ly files > > any more easily so there isn't much advantage in tweaking it to behave > with > > my customised Include files. As for your question about where I found the > > documentation for the location of my Includes: Options > Customise Emacs > -> > > All Settings Matching > "lilypond". > > > > It's a shame, I found Emacs to be the best LaTeX editor I tried. > > Yes, there is really no comparison. > > Emacs has better MIDI recognition than Frescobaldi, and editing > Scheme-only files is nicer. And it blows the socks off anything as a > viewer for Lilypond's Info documentation. > > I use Emacs for editing LilyPond because I am used to working with Emacs > for everything. But the LilyPond mode is really not holding a candle to > what Frescobaldi offers. > > -- > David Kastrup >
Re: Emacs Mode Problem with includes
Laurie Savage writes: > Thanks David, > > I think I'll stay with Frescobaldi! Emacs doesn't seem to edit .ly files > any more easily so there isn't much advantage in tweaking it to behave with > my customised Include files. As for your question about where I found the > documentation for the location of my Includes: Options > Customise Emacs -> > All Settings Matching > "lilypond". > > It's a shame, I found Emacs to be the best LaTeX editor I tried. Yes, there is really no comparison. Emacs has better MIDI recognition than Frescobaldi, and editing Scheme-only files is nicer. And it blows the socks off anything as a viewer for Lilypond's Info documentation. I use Emacs for editing LilyPond because I am used to working with Emacs for everything. But the LilyPond mode is really not holding a candle to what Frescobaldi offers. -- David Kastrup
Re: Emacs Mode Problem with includes
Thanks David, I think I'll stay with Frescobaldi! Emacs doesn't seem to edit .ly files any more easily so there isn't much advantage in tweaking it to behave with my customised Include files. As for your question about where I found the documentation for the location of my Includes: Options > Customise Emacs -> All Settings Matching > "lilypond". It's a shame, I found Emacs to be the best LaTeX editor I tried. Laurie Savage https://www.queensofthewest.com/ On Tue, 14 Nov 2023 at 16:19, David Wright wrote: > On Tue 14 Nov 2023 at 07:04:39 (+1100), Laurie Savage wrote: > > Thanks, I should have spotted that. > > So presumably the "cannot find file" error went away when you > corrected the full path "/home/Laurie/Lilypond/includes/jazzchords.ily" > but how about when you type only: > > \include "jazzchords.ily" > > Does that also work? > > > But I'm not sure why this setting > > hasn't been picked up by Emacs lilypond mode: > > > > Lilypond Include Path: String: /home/laurie/Lilypond/includes > > State : SAVED and set. > > LilyPond include path. > > Groups: Lilypond > > > > I don't want to type the full file path everytime I use one of my > includes. > > That looks like something to do with Frescobaldi; is that so? > I'm not clear on how emacs would parse a .ily file that you > included (as opposed to reading it into a buffer for you to edit). > > > > On Mon, Nov 13, 2023 at 02:45:26PM +1100, Laurie Savage wrote: > > > >I set this in my ~/.emacs file > > > >(custom-set-variables > > > > '(LilyPond-include-path "/home/laurie/Lilypond/includes") > > > > '(LilyPond-lilypond-command "/usr/bin/lilypond")) > > Where did you find that documented? It doesn't look like the way > I include files in emacs. I use the standard ones included in the > LilyPond archive, by means of the lines displayed here: > > $ grep lily ~/.emacs > (add-to-list 'load-path "~/.emacs.d/lilypond-init") > (load-library "lilypond-init") > $ > > $ ls -Glg ~/.emacs.d/lilypond-init ~/.emacs.d/lilypond-init/ > lrwxrwxrwx 1 62 Nov 13 18:28 /home/myself/.emacs.d/lilypond-init -> > /home/myself/lilypond-2.24.0-linux-x86_64/share/emacs/site-lisp > > /home/myself/.emacs.d/lilypond-init/: > total 140 > -rw-r- 1 10492 Dec 13 2022 lilypond-font-lock.el > -rw-r- 1 22500 Dec 13 2022 lilypond-indent.el > -rw-r- 1 1015 Dec 13 2022 lilypond-init.el > -rw-r- 1 43307 Dec 13 2022 lilypond-mode.el > -rw-r- 1 20754 Dec 13 2022 lilypond-song.el > -rw-r- 1 8988 Dec 13 2022 lilypond-what-beat.el > -rw-r- 1 16402 Dec 13 2022 lilypond-words.el > $ > > (Symlink refreshed at login to point to the most up-to-date version.) > > Failing to find a load-library in the load-path provokes this error > from emacs: > > File is missing: Cannot open load file, No such file or directory, > lilyPond-init > > whereas your error message below was from LilyPond: > > > > > /home/laurie/Doc…Traditional.ly:3:10: error: cannot find file: > > > > `/home/Laurie/Lilypond/includes/jazzchords.ily' > > > > (search path: `/home/laurie/Documents/Charts/Trans… … > > Cheers, > David. >
Re: Emacs Mode Problem with includes
On Tue 14 Nov 2023 at 07:04:39 (+1100), Laurie Savage wrote: > Thanks, I should have spotted that. So presumably the "cannot find file" error went away when you corrected the full path "/home/Laurie/Lilypond/includes/jazzchords.ily" but how about when you type only: \include "jazzchords.ily" Does that also work? > But I'm not sure why this setting > hasn't been picked up by Emacs lilypond mode: > > Lilypond Include Path: String: /home/laurie/Lilypond/includes > State : SAVED and set. > LilyPond include path. > Groups: Lilypond > > I don't want to type the full file path everytime I use one of my includes. That looks like something to do with Frescobaldi; is that so? I'm not clear on how emacs would parse a .ily file that you included (as opposed to reading it into a buffer for you to edit). > > On Mon, Nov 13, 2023 at 02:45:26PM +1100, Laurie Savage wrote: > > >I set this in my ~/.emacs file > > >(custom-set-variables > > > '(LilyPond-include-path "/home/laurie/Lilypond/includes") > > > '(LilyPond-lilypond-command "/usr/bin/lilypond")) Where did you find that documented? It doesn't look like the way I include files in emacs. I use the standard ones included in the LilyPond archive, by means of the lines displayed here: $ grep lily ~/.emacs (add-to-list 'load-path "~/.emacs.d/lilypond-init") (load-library "lilypond-init") $ $ ls -Glg ~/.emacs.d/lilypond-init ~/.emacs.d/lilypond-init/ lrwxrwxrwx 1 62 Nov 13 18:28 /home/myself/.emacs.d/lilypond-init -> /home/myself/lilypond-2.24.0-linux-x86_64/share/emacs/site-lisp /home/myself/.emacs.d/lilypond-init/: total 140 -rw-r- 1 10492 Dec 13 2022 lilypond-font-lock.el -rw-r- 1 22500 Dec 13 2022 lilypond-indent.el -rw-r- 1 1015 Dec 13 2022 lilypond-init.el -rw-r- 1 43307 Dec 13 2022 lilypond-mode.el -rw-r- 1 20754 Dec 13 2022 lilypond-song.el -rw-r- 1 8988 Dec 13 2022 lilypond-what-beat.el -rw-r- 1 16402 Dec 13 2022 lilypond-words.el $ (Symlink refreshed at login to point to the most up-to-date version.) Failing to find a load-library in the load-path provokes this error from emacs: File is missing: Cannot open load file, No such file or directory, lilyPond-init whereas your error message below was from LilyPond: > > > /home/laurie/Doc…Traditional.ly:3:10: error: cannot find file: > > > `/home/Laurie/Lilypond/includes/jazzchords.ily' > > > (search path: `/home/laurie/Documents/Charts/Trans… … Cheers, David.
Re: Emacs Mode Problem with includes
Thanks, I should have spotted that. But I'm not sure why this setting hasn't been picked up by Emacs lilypond mode: Lilypond Include Path: String: /home/laurie/Lilypond/includes State : SAVED and set. LilyPond include path. Groups: Lilypond I don't want to type the full file path everytime I use one of my includes. Laurie Savage https://www.queensofthewest.com/ The Latest Queens of The West clips https://www.youtube.com/playlist?list=PLgkDbfgWIb8_tQgEZRKeRWVSukoM2xoC_ On Mon, 13 Nov 2023 at 17:43, David Zelinsky wrote: > On Mon, Nov 13, 2023 at 02:45:26PM +1100, Laurie Savage wrote: > >I store my Includes file in a directory ~/Lilypond/includes but > >Lilypond mode cannot locate them even if I specify a full file name > e.g > >\include > >"/home/Laurie/Lilypond/includes/jazzchords.ily" > >I set this in my ~/.emacs file > >(custom-set-variables > > '(LilyPond-include-path "/home/laurie/Lilypond/includes") > > '(LilyPond-lilypond-command "/usr/bin/lilypond")) > >Still I get errors like this: > >/home/laurie/Documents/Charts/Transpositions/Dear Old > >Stockholm/Dear-Old-Stockhom_Traditional.ly:3:10: error: cannot find > >file: `/home/Laurie/Lilypond/includes/jazzchords.ily' > >(search path: `/home/laurie/Documents/Charts/Transpositions/Dear Old > > > Stockholm:/usr/share/lilypond/2.25.4/ly:/usr/share/lilypond/2.25.4/ps:/ > > > usr/share/lilypond/2.25.4/scm:/usr/share/lilypond/2.25.4/fonts/otf/:/us > >r/share/lilypond/2.25.4/fonts/svg/:') > > I've never used this feature of LilyPond mode, and don't know why it seems > not to register in the search path. But I noticed your absolute path in > the \include starts with "/home/Laurie/" but the search path setting has > "/home/laurie". Directory names are case sensitive, and home directories > are usually lower case, so I suspect "/home/Laurie/" is a typo. > > -David > > > > > > > > > >
Re: Emacs Mode Problem with includes
On Mon, Nov 13, 2023 at 02:45:26PM +1100, Laurie Savage wrote: >I store my Includes file in a directory ~/Lilypond/includes but >Lilypond mode cannot locate them even if I specify a full file name e.g >\include >"/home/Laurie/Lilypond/includes/jazzchords.ily" >I set this in my ~/.emacs file >(custom-set-variables > '(LilyPond-include-path "/home/laurie/Lilypond/includes") > '(LilyPond-lilypond-command "/usr/bin/lilypond")) >Still I get errors like this: >/home/laurie/Documents/Charts/Transpositions/Dear Old >Stockholm/Dear-Old-Stockhom_Traditional.ly:3:10: error: cannot find >file: `/home/Laurie/Lilypond/includes/jazzchords.ily' >(search path: `/home/laurie/Documents/Charts/Transpositions/Dear Old >Stockholm:/usr/share/lilypond/2.25.4/ly:/usr/share/lilypond/2.25.4/ps:/ >usr/share/lilypond/2.25.4/scm:/usr/share/lilypond/2.25.4/fonts/otf/:/us >r/share/lilypond/2.25.4/fonts/svg/:') I've never used this feature of LilyPond mode, and don't know why it seems not to register in the search path. But I noticed your absolute path in the \include starts with "/home/Laurie/" but the search path setting has "/home/laurie". Directory names are case sensitive, and home directories are usually lower case, so I suspect "/home/Laurie/" is a typo. -David
Emacs Mode Problem with includes
Hi, I thought I'd give the Emacs Lilypond mode a try-out. I like Emacs and have used it a lot for coding and writing in LaTeX in my past career. (No editor wars please, VIM is good too but I'm less familiar with it!) I store my Includes file in a directory ~/Lilypond/includes but Lilypond mode cannot locate them even if I specify a full file name e.g \include "/home/Laurie/Lilypond/includes/jazzchords.ily" I set this in my ~/.emacs file (custom-set-variables '(LilyPond-include-path "/home/laurie/Lilypond/includes") '(LilyPond-lilypond-command "/usr/bin/lilypond")) Still I get errors like this: /home/laurie/Documents/Charts/Transpositions/Dear Old Stockholm/Dear-Old-Stockhom_Traditional.ly:3:10: error: cannot find file: `/home/Laurie/Lilypond/includes/jazzchords.ily' (search path: `/home/laurie/Documents/Charts/Transpositions/Dear Old Stockholm:/usr/share/lilypond/2.25.4/ly:/usr/share/lilypond/2.25.4/ps:/usr/share/lilypond/2.25.4/scm:/usr/share/lilypond/2.25.4/fonts/otf/:/usr/share/lilypond/2.25.4/fonts/svg/:') \include "/home/Laurie/Lilypond/includes/jazzchords.ily" Any ideas? Laurie Savage https://www.queensofthewest.com/