Re: How do I get Emacs mode?
On Tue, 2014-01-28 at 15:09 +0100, Federico Bruni wrote: > 2014-01-28 David Sumbler > What manuals? I don't seem to have any. One of the things I > liked > about the Ubuntu installation of LilyPond 2.14.2 was that the > html > manuals were installed on my hard drive and so were available > all of the > time. I don't seem to have that for 2.18.0 and can only view > the > manuals via the LilyPond website, but I should very much like > to install > them on my machines if possible - I can't always rely on > having a usable > wifi connection with my netbook. > > > > you can install the generic package with the --doc option > > but be aware of this bug: > http://code.google.com/p/lilypond/issues/detail?id=3768 > > > you can avoid the bug by entering the directory where you have saved > the file, then type: > > > sudo sh lilypond-version.sh --doc Thanks for that. I've now installed the html files, and it's all working fine. David > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I get Emacs mode?
2014-01-28 David Sumbler > What manuals? I don't seem to have any. One of the things I liked > about the Ubuntu installation of LilyPond 2.14.2 was that the html > manuals were installed on my hard drive and so were available all of the > time. I don't seem to have that for 2.18.0 and can only view the > manuals via the LilyPond website, but I should very much like to install > them on my machines if possible - I can't always rely on having a usable > wifi connection with my netbook. > you can install the generic package with the --doc option but be aware of this bug: http://code.google.com/p/lilypond/issues/detail?id=3768 you can avoid the bug by entering the directory where you have saved the file, then type: sudo sh lilypond-version.sh --doc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I get Emacs mode?
On Mon, 2014-01-27 at 19:54 -0500, Hwaen Ch'uqi wrote: > Just a question or two, based on my own experience. Did you first > remove (or purge) LilyPond 2.14.2 before installing 2.18.0? Otherwise, > your system may still be using the older installation. Yes, I removed 2.14.2 using the Ubuntu Software Centre. > Also, where did > you install the latest version? If I remember correctly, the automatic > installation of 2.14.2 places the bin files in /usr/bin. To keep this > consistent, I installed LilyPond 2.18.0 in /usr/, using the --prefix > argument. I used the default, which installed LilyPond into /usr/local/lilypond, with links in /usr/local/bin. > Third, have you established that the .el files are exact > copies by using a program like diff? Yes > To be utterly safe, I always > remove the old .el files (which even purging will not remove) and > replace them with the .el files found in the new installation. Lastly, > if you use the info files to read the manuals, be sure to move them > from their original location to the /usr/share/info directory; > otherwise, you will not have access to them by the normal means. > Hwaen Ch'uqi What manuals? I don't seem to have any. One of the things I liked about the Ubuntu installation of LilyPond 2.14.2 was that the html manuals were installed on my hard drive and so were available all of the time. I don't seem to have that for 2.18.0 and can only view the manuals via the LilyPond website, but I should very much like to install them on my machines if possible - I can't always rely on having a usable wifi connection with my netbook. Incidentally, both the pieces I have set so far now compile correctly under 2.18.0, without errors. And, yes, even the misaligned dynamics, which were the reason for my original question, are corrected now. Thanks for all your help. David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I get Emacs mode?
> Yes, I have now found all seven files elsewhere, and checked that the > six I had already found are identical to the copies I found in the other > directory. So all now seems to be well. > > Some time when I have some time to spare, I must update all this stuff > on my other computer too! > > Oh, and having converted a load of .ly files using convert-ly, and > having now got emacs working OK, I just tried recompiling a file. It > wouldn't compile, producing about 20 errors, so now I'm going to have to > spend hours (probably) finding out why. But that'll have to be for > another day (or week, perhaps). :-( > > David Just a question or two, based on my own experience. Did you first remove (or purge) LilyPond 2.14.2 before installing 2.18.0? Otherwise, your system may still be using the older installation. Also, where did you install the latest version? If I remember correctly, the automatic installation of 2.14.2 places the bin files in /usr/bin. To keep this consistent, I installed LilyPond 2.18.0 in /usr/, using the --prefix argument. Third, have you established that the .el files are exact copies by using a program like diff? To be utterly safe, I always remove the old .el files (which even purging will not remove) and replace them with the .el files found in the new installation. Lastly, if you use the info files to read the manuals, be sure to move them from their original location to the /usr/share/info directory; otherwise, you will not have access to them by the normal means. Hwaen Ch'uqi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I get Emacs mode?
On Mon, 2014-01-27 at 18:02 -0500, Hwaen Ch'uqi wrote: > Hmmm. You should have found seven .el files in the original lisp > directory, one of them being lilypond-words.el. Be sure to move them > all into one of the directories in your loadpath. For example, I am > using ubuntu-13.04, and I have moved all of those files to > /usr/share/emacs23/site-lisp. All should work well then. > Hwaen Ch'uqi Yes, I have now found all seven files elsewhere, and checked that the six I had already found are identical to the copies I found in the other directory. So all now seems to be well. Some time when I have some time to spare, I must update all this stuff on my other computer too! Oh, and having converted a load of .ly files using convert-ly, and having now got emacs working OK, I just tried recompiling a file. It wouldn't compile, producing about 20 errors, so now I'm going to have to spend hours (probably) finding out why. But that'll have to be for another day (or week, perhaps). :-( David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I get Emacs mode?
Hmmm. You should have found seven .el files in the original lisp directory, one of them being lilypond-words.el. Be sure to move them all into one of the directories in your loadpath. For example, I am using ubuntu-13.04, and I have moved all of those files to /usr/share/emacs23/site-lisp. All should work well then. Hwaen Ch'uqi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I get Emacs mode?
2014/1/27 David Sumbler > Incidentally, in response to David Kastrup's suggestion "How about > upgrading Ubuntu?", the reason I am sticking with Ubuntu 12.04 at the > moment is because it is an LTS (long term support) version. I shall > probably change to 14.04 LTS a few months after it is released (so that > the worst bugs can be sorted out first). > > I suggest not to rely on the distribution package, especially of a LTS version. You can install the generic package. It's very easy, have you tried? Try and let us know if you have problems. If you install it with sudo the binary will be in /usr/local/bin which is in your PATH for sure. If you don't use sudo it will be installed in your home directory and you'll find it only if ~/bin is in your path, which might not be your default. For example, I have: $ echo $PATH /home/fede/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games $ which -a lilypond /home/fede/bin/lilypond /usr/local/bin/lilypond /usr/bin/lilypond $ lilypond -v | grep "GNU LilyPond" GNU LilyPond 2.19.1 $ /usr/local/bin/lilypond -v | grep "GNU LilyPond" GNU LilyPond 2.18.0 $ /usr/bin/lilypond -v | grep "GNU LilyPond" GNU LilyPond 2.16.2 Which means that I chose to put the latest development version (2.19.1) in the first path, the latest stable (2.18.0) in the second and the old stable (2.16.2) in the last. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I get Emacs mode?
Thanks for the link to your explanation of what to do to get Emacs Lilypond mode working. This was easy to follow, and I now have syntax highlighting etc. working for Lilypond files. Just one thing, though: when I load a .ly file into Emacs I get a message: Warning: `lilypond-words.el' not found in `load-path'. See `lilypond-init.el' I've had a look at lilypond-init.el, which is no help. I also found a scripts/build/lilypond-words.py file in the Lilypond 2.18.0 source that I downloaded, but when I tried to run that in python I got: Traceback (most recent call last): File "Downloads/lilypond-2.18.0/scripts/build/lilypond-words.py", line 21, in s = open ('lily/lily-lexer.cc', 'r').read () IOError: [Errno 2] No such file or directory: 'lily/lily-lexer.cc' How do I obtain or generate the lilypond-words.el file? Incidentally, in response to David Kastrup's suggestion "How about upgrading Ubuntu?", the reason I am sticking with Ubuntu 12.04 at the moment is because it is an LTS (long term support) version. I shall probably change to 14.04 LTS a few months after it is released (so that the worst bugs can be sorted out first). As a professional musician and not a computer expert (as you can tell!), I find that reinstalling Ubuntu every other year is more than enough hassle, especially as I have to do it on 2 computers. A new installation every 6 months is just asking too much, and in my experience Ubuntu upgrades (as distinct from clean installs) always cause immense problems, so I have given up on them. David On Mon, 2014-01-27 at 16:04 -0500, Hwaen Ch'uqi wrote: > On 1/27/14, David Kastrup wrote: > > David Sumbler writes: > > > >> Thanks to all for your responses to my enquiry about misaligned > >> dynamics. Thanks especially to Hwaen Ch'uqi, who tried to answer my > >> question: unfortunately, > >> \override Dynamics.DynamicText.self-alignment-X = #-1 > >> (modified for the different syntax in Lilypond 2.14.2) did not solve the > >> problem. I think this is because -1 is the default value in any case. > >> > > Actually, the default is #0. The reason the code did not work is > because, as I stated earlier, the ways of calling overrides has > changed and so will not work unless you have upgraded to the latest > stable version. > > >> You all suggested, as I was afraid you would, that instead of trying to > >> get 2.14.2 to do what I want, I should change to 2.18.0. Considering > >> that http://www.lilypond.org/unix.html positively encourages us to use > >> the default version with distros such as Ubuntu (v2.14.2 in this case), > >> this is not what a new user might expect! > > > I suspect that you had installed 2.14.2 via ubuntu's apt-get > mechanism, which placed all the files in their correct location. > Manual installations, via the .sh script, will not place certain > files, such as the .el or .info files, where you might wish them. > Please have a look at this thread: > > https://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00827.html > > The last message of the thread should answer your questions. The > directory in view is either lisp or site-lisp. > > I hope this helps. > Hwaen Ch'uqi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I get Emacs mode? (was: Dynamics not correctly aligned)
2014/1/27 David Sumbler > You all suggested, as I was afraid you would, that instead of trying to > get 2.14.2 to do what I want, I should change to 2.18.0. Considering > that http://www.lilypond.org/unix.html positively encourages us to use > the default version with distros such as Ubuntu (v2.14.2 in this case), > this is not what a new user might expect! > I don't think that this page encourages to use the default distro version, but it's true that it doesn't encourage to use the latest stable. I think that it should, I've added a couple of suggestions in this issue: https://code.google.com/p/lilypond/issues/detail?id=3829 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I get Emacs mode?
On 1/27/14, David Kastrup wrote: > David Sumbler writes: > >> Thanks to all for your responses to my enquiry about misaligned >> dynamics. Thanks especially to Hwaen Ch'uqi, who tried to answer my >> question: unfortunately, >> \override Dynamics.DynamicText.self-alignment-X = #-1 >> (modified for the different syntax in Lilypond 2.14.2) did not solve the >> problem. I think this is because -1 is the default value in any case. >> Actually, the default is #0. The reason the code did not work is because, as I stated earlier, the ways of calling overrides has changed and so will not work unless you have upgraded to the latest stable version. >> You all suggested, as I was afraid you would, that instead of trying to >> get 2.14.2 to do what I want, I should change to 2.18.0. Considering >> that http://www.lilypond.org/unix.html positively encourages us to use >> the default version with distros such as Ubuntu (v2.14.2 in this case), >> this is not what a new user might expect! > I suspect that you had installed 2.14.2 via ubuntu's apt-get mechanism, which placed all the files in their correct location. Manual installations, via the .sh script, will not place certain files, such as the .el or .info files, where you might wish them. Please have a look at this thread: https://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00827.html The last message of the thread should answer your questions. The directory in view is either lisp or site-lisp. I hope this helps. Hwaen Ch'uqi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I get Emacs mode?
David Sumbler writes: > Thanks to all for your responses to my enquiry about misaligned > dynamics. Thanks especially to Hwaen Ch'uqi, who tried to answer my > question: unfortunately, > \override Dynamics.DynamicText.self-alignment-X = #-1 > (modified for the different syntax in Lilypond 2.14.2) did not solve the > problem. I think this is because -1 is the default value in any case. > > You all suggested, as I was afraid you would, that instead of trying to > get 2.14.2 to do what I want, I should change to 2.18.0. Considering > that http://www.lilypond.org/unix.html positively encourages us to use > the default version with distros such as Ubuntu (v2.14.2 in this case), > this is not what a new user might expect! Ubuntu 13.10 has LilyPond 2.16.2. > I did actually upgrade to 2.16.0 some weeks back, but I removed it and > reinstalled 2.14.2 via the Ubuntu package manager. Until a few hours > ago, I couldn't remember why I reverted to 2.14.2, but I was sure I must > have had a good reason. > > Anyway, I have now installed 2.18.0, and have now discovered again what > the problem with 2.16.0 was: Emacs can't find Lilypond mode any more. > > I've just spent ages downloading the Lilypond source files, and trying > to understand what I am supposed to do with the files in > lilypond-2.18.0/elisp/ Possibly make sudo make install in the elisp directory. > Can someone help me sort this out, please, or will I have to go back to > using Lilypond 2.14.2 with no help other than the manuals? How about upgrading Ubuntu? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
How do I get Emacs mode? (was: Dynamics not correctly aligned)
Thanks to all for your responses to my enquiry about misaligned dynamics. Thanks especially to Hwaen Ch'uqi, who tried to answer my question: unfortunately, \override Dynamics.DynamicText.self-alignment-X = #-1 (modified for the different syntax in Lilypond 2.14.2) did not solve the problem. I think this is because -1 is the default value in any case. You all suggested, as I was afraid you would, that instead of trying to get 2.14.2 to do what I want, I should change to 2.18.0. Considering that http://www.lilypond.org/unix.html positively encourages us to use the default version with distros such as Ubuntu (v2.14.2 in this case), this is not what a new user might expect! I did actually upgrade to 2.16.0 some weeks back, but I removed it and reinstalled 2.14.2 via the Ubuntu package manager. Until a few hours ago, I couldn't remember why I reverted to 2.14.2, but I was sure I must have had a good reason. Anyway, I have now installed 2.18.0, and have now discovered again what the problem with 2.16.0 was: Emacs can't find Lilypond mode any more. I've just spent ages downloading the Lilypond source files, and trying to understand what I am supposed to do with the files in lilypond-2.18.0/elisp/ I have read http://www.lilypond.org/doc/v2.18/Documentation/usage/text-editor-support as well as the comments at the top of lilypond-2.18.0/elisp/lilypond-init.el, but I'm still confused as to what I need to do to get Emacs Lilypond mode working again. Can someone help me sort this out, please, or will I have to go back to using Lilypond 2.14.2 with no help other than the manuals? David On Sun, 2014-01-26 at 15:37 -0500, Hwaen Ch'uqi wrote: > Greetings David, > > On 1/26/14, David Sumbler wrote: > > I am a new user of Lilypond, using v. 2.14.2 on Ubuntu 12.04. I have > > read the Learning Manual and Notation Reference twice each, and most of > > the other documentation at least once. > > > First of all, welcome to LilyPond! Second, I would advise moving to > the latest stable version of LilyPond, version 2.18.0. This is > especially because certain basic ways of writing overrides, for > example, have changed, and it will likely be easier to communicate > solutions with an updated version. Third, the manuals are tightly > written, and pieces of relevant information may yet be found strewn > the manuals in sometimes unlikely places. > > > Having set two pieces (one for solo marimba, and one for flute and > > piano), I hoped that I had reached the stage of being able to fine tune > > the appearance, but stumbled at almost the first hurdle! > > > > My first problem concerns the second piece. If I include the piano > > dynamics separately from the notes, as suggested in section A.2.4 (Piano > > Centred Dynamics) of the Learning Manual, they do not line up correctly > > with the dynamics in the flute part, which I have attached to the notes. > > > > For instance, with: > > > > \version "2.14.2" > > > > << > > \new Staff = "flute" \relative c''' { c1\p c\f } > > \new PianoStaff << > > \new Staff \relative c'' { c1 c } > > \new Dynamics { s1\p s\f } > > \new Staff \relative c { \clef bass c1 c } > > >> > >>> > > > > the dynamics in the piano part appear slightly further to the left than > > those in the flute part do. I get the same result (disregarding the > > change in vertical alignment) with: > > > > \version "2.14.2" > > > > dynamics = { s1\p s\f } > > > > << > > \new Staff = "flute" \relative c''' { c1\p c\f } > > \new PianoStaff << > > \new Staff << \relative c'' { c1 c } \dynamics >> > > \new Staff \relative c { \clef bass c1 c } > > >> > >>> > > > > In the actual piece I have set, the misplaced piano dynamics actually > > collide with the preceding bar-lines, although that does not happen in > > the above brief examples. > > > > What am I doing wrong here? Thanks in advance for any help you can > > offer. > > > > > > David > > > Try placing this command at the beginning of your Dynamics context: > > \override Dynamics.DynamicText.self-alignment-X = #-1 > > This will left-align your dynamics. If you wish to move them more to > the right, you may change the number after the hash sign. #0 > center-aligns the dynamics, and #1 right-aligns them. You can use > other numbers between those given. > > I hope this helps. > Hwaen Ch'uqi ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user