Re: lilypond emacs-mode
Hi, I found a solution, even if the command "patch" reports a problem: I just manually changed the lines in the lilypond-mode.el file with those of the patch file, and now it works. Thank you, Libero Mureddu ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond emacs-mode
On 12/2/05, Nicolas Sceaux <[EMAIL PROTECTED]> wrote: > In a terminal, change to the directory where the file lilypond-mode.el > is, put the patch file there, and type the command: > patch -uN < lilypond-mode.patch Thanks, I've tried, I gave to the patch file the name lilypond-mode.patch and followed your insctructions, but I get an error message. Here it is: libero$ patch -uN < lilypond-mode.patch patching file lilypond-mode.el patch: malformed patch at line 11: ".ly" Can you help me in solving this? Thanks Libero Mureddu ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond emacs-mode
Libero Mureddu <[EMAIL PROTECTED]> writes: > First of all, thanks to Nicolas Sceaux: I'm very happy to have the > possibility to use emacs 22 and lilypond, since now I'm using a lot > Aquamacs. But still, I am a complete newbie, and so I couldn't > understand what I have to do with the patch attached to your mail. Can > you give me some instructions about? In a terminal, change to the directory where the file lilypond-mode.el is, put the patch file there, and type the command: patch -uN < lilypond-mode.patch nicolas ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond emacs-mode
First of all, thanks to Nicolas Sceaux: I'm very happy to have the possibility to use emacs 22 and lilypond, since now I'm using a lot Aquamacs. But still, I am a complete newbie, and so I couldn't understand what I have to do with the patch attached to your mail. Can you give me some instructions about? Regards, Libero Mureddu I am using lilypond 2.7.20 on macos 10.4.3 and aquamacs 0.9.6 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond emacs-mode
Daniel Oehry <[EMAIL PROTECTED]> writes: > lilypond emacs-mode does not work with CVS version of emacs (22.0.50.1). Using lilypond-mode from CVS, I apply the following patch for GNU Emacs 22: Index: lilypond-mode.el === RCS file: /cvsroot/lilypond/lilypond/elisp/lilypond-mode.el,v retrieving revision 1.18 diff -u -r1.18 lilypond-mode.el --- lilypond-mode.el12 Jun 2005 18:44:29 - 1.18 +++ lilypond-mode.el15 Oct 2005 11:17:42 - @@ -393,11 +393,11 @@ (let ((fnameprefix (if (eq LilyPond-command-current 'LilyPond-command-master) (substring (LilyPond-get-master-file) 0 -3); suppose ".ly" LilyPond-region-file-prefix)) - (allcount (string-to-number (substring (count-midi-words) 0 -12))) - (count (string-to-number (substring (count-midi-words-backwards) 0 -12 + (allcount (count-midi-words)) + (count (count-midi-words-backwards))) (concat fnameprefix (if (and (> allcount 1) (> count 0)) ; not first score -(if (eq count allcount) ; last score +(if (= count allcount) ; last score (concat "-" (number-to-string (+ count -1))) (concat "-" (number-to-string count ".midi"))) @@ -407,7 +407,7 @@ (let ((fnameprefix (if (eq LilyPond-command-current 'LilyPond-command-master) (substring (LilyPond-get-master-file) 0 -3); suppose ".ly" LilyPond-region-file-prefix)) - (allcount (string-to-number (substring (count-midi-words) 0 -12 + (allcount (count-midi-words))) (concat (if (> allcount 0) ; at least one midi-score (concat fnameprefix ".midi ")) (if (> allcount 1) ; more than one midi-score ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
lilypond emacs-mode
lilypond emacs-mode does not work with CVS version of emacs (22.0.50.1). File mode specification error: (wrong-type-argument arrayp 0) Setting debug-on-error yields: Debugger entered--Lisp error: (wrong-type-argument arrayp 0) substring(0 0 -12) (string-to-number (substring (count-midi-words) 0 -12)) (let ((fnameprefix ...) (allcount ...) (count ...)) (concat fnameprefix (if ... ...) ".midi")) LilyPond-string-current-midi() (concat LilyPond-midi-command " " (LilyPond-string-current-midi)) (list "Midi" (concat LilyPond-midi-command " " (LilyPond-string-current-midi))) (list (backquote-list* "LilyPond" (concat LilyPond-lilypond-command " %s") (quote ...)) (quote ("TeX" "tex '\\nonstopmode\\input %t'" "%t" "%d" "ViewDVI")) (backquote-list* "2Dvi" (concat LilyPond-lilypond-command " -b tex %s") (quote ...)) (backquote-list* "2PS" (concat LilyPond-lilypond-command " -f ps %s") (quote ...)) (list "2Gnome" (concat LilyPond-lilypond-command " -b gnome %s")) (quote ("Book" "lilypond-book %x" "%x" "%l" "LaTeX")) (quote ("LaTeX" "latex '\\nonstopmode\\input %l'" "%l" "%d" "ViewDVI")) (list "View" (concat LilyPond-pdf-command " %f")) (list "ViewPDF" (concat LilyPond-pdf-command " %f")) (list "ViewDVI" (concat LilyPond-dvi-command " %d")) (list "ViewPS" (concat LilyPond-ps-command " %p")) (list "Midi" (concat LilyPond-midi-command " " ...)) (list "MidiAll" (concat LilyPond-all-midi-command " " ...))) (\` (("LilyPond" ... "%s" "%l" "View") ("TeX" "tex '\\nonstopmode\\input %t'" "%t" "%d" "ViewDVI") ("2Dvi" ... "%s" "%d" "LaTeX") ("2PS" ... "%s" "%p" "ViewPS") ("2Gnome" ...) ("Book" "lilypond-book %x" "%x" "%l" "LaTeX") ("LaTeX" "latex '\\nonstopmode\\input %l'" "%l" "%d" "ViewDVI") ("View" ...) ("ViewPDF" ...) ("ViewDVI" ...) ("ViewPS" ...) ("Midi" ...) ("MidiAll" ...))) eval((\` (("LilyPond" ... "%s" "%l" "View") ("TeX" "tex '\\nonstopmode\\input %t'" "%t" "%d" "ViewDVI") ("2Dvi" ... "%s" "%d" "LaTeX") ("2PS" ... "%s" "%p" "ViewPS") ("2Gnome" ...) ("Book" "lilypond-book %x" "%x" "%l" "LaTeX") ("LaTeX" "latex '\\nonstopmode\\input %l'" "%l" "%d" "ViewDVI") ("View" ...) ("ViewPDF" ...) ("ViewDVI" ...) ("ViewPS" ...) ("Midi" ...) ("MidiAll" ... custom-initialize-reset(LilyPond-command-alist (\` (("LilyPond" ... "%s" "%l" "View") ("TeX" "tex '\\nonstopmode\\input %t'" "%t" "%d" "ViewDVI") ("2Dvi" ... "%s" "%d" "LaTeX") ("2PS" ... "%s" "%p" "ViewPS") ("2Gnome" ...) ("Book" "lilypond-book %x" "%x" "%l" "LaTeX") ("LaTeX" "latex '\\nonstopmode\\input %l'" "%l" "%d" "ViewDVI") ("View" ...) ("ViewPDF" ...) ("ViewDVI" ...) ("ViewPS" ...) ("Midi" ...) ("MidiAll" ... custom-declare-variable(LilyPond-command-alist (\` (("LilyPond" ... "%s" "%l" "View") ("TeX" "tex '\\nonstopmode\\input %t'" "%t" "%d" "ViewDVI") ("2Dvi" ... "%s" "%d" "LaTeX") ("2PS" ... "%s" "%p" "ViewPS") ("2Gnome" ...) ("Book" "lilypond-book %x" "%x" "%l" "LaTeX") ("LaTeX" "latex '\\nonstopmode\\input %l'" "%l" "%d" "ViewDVI") ("View" ...) ("ViewPDF" ...) ("ViewDVI" ...) ("ViewPS" ...) ("Midi" ...) ("MidiAll" ...))) "AList of commands to execute on the current document.\n\nThe key is the name of the command as it will be presented to the\nuser, the value is a cons of the command string handed to the shell\nafter being expanded, and the next command to be executed upon\nsuccess. The expansion is done using the information found in\nLilyPond-expand-list.\n" :group LilyPond :type (repeat (cons :tag "Command Item" (string :tag "Key") (cons :tag "How" ... ... (defcustom LilyPond-command-alist (\` (... ... ... ... ... ... ... ... ... ... ... ... ...)) "AList of commands to execute on the current document.\n\nThe key is the name of the command as it will be presented to the\nuser, the value is a cons of the command string handed to the shell\nafter being expanded, and the next command to be executed upon\nsuccess. The expansion is done using the information found in\nLilyPond-expand-list.\n" :group (quote LilyPond) :type (quote (repeat ...))) eval-buffer(# nil "/usr/share/emacs/site-lisp/lilypond-mode.el" nil t) ; Reading at buffer position 16095 load-with-code-conversion("/usr/share/emacs/site-lisp/lilypond-mode.el" "lilypond-mode" nil nil) execute-extended-command(nil) call-interactively(execute-extended-command) Is there someone with a solution? Daniel ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond emacs mode?
On 6 Sep 2002, superk wrote: > however, i'm used to using emacs mode such as XML/SGML in a DocBook > environment. is there such a mode i could use for lilypond and how could > i install/run it please? What you need should be included with lily and already on your computer. Since you don't write what os you're using I don't know where the files exactly would be. Anyways: I have these four files in my .elisp folder: /home/atte/.elisp/lilypond-font-lock.el /home/atte/.elisp/lilypond-indent.el /home/atte/.elisp/lilypond-init.el /home/atte/.elisp/lilypond-mode.el And the following two lines in my .emacs (load-library "lilypond-mode.el") (add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode)) You also need gv installed, but you prob already use that... Hope this helps -- peace, love & harmony Atte ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
lilypond emacs mode?
hello everyone, i'm new to lilypond but i have managed to do a small sheet music of one very basic song. however, i'm used to using emacs mode such as XML/SGML in a DocBook environment. is there such a mode i could use for lilypond and how could i install/run it please? thx -- K [EMAIL PROTECTED] GnuPG: 1024D/B94D1688: 011A 19EA 62DD 5985 90B1 3003 EB62 1492 BF3C 6DC5 signature.asc Description: This is a digitally signed message part
Re: lilypond emacs mode
> I upgraded to 1.14.13 but still have the same problem. > Does the RPM put the .el files into the site-lisp directory? Yes it should, but it seems this new file has been forgotten in the packaging descriptions. The attached patch should hopefully solve this problem both for RPMs and Debian packages. The same patch should also be applied to 1.5.xx. I'm afraid you have to install it by hand for the moment. /Mats Generated by (address unknown), >From = lilypond-1.4.13, To = lilypond-1.4.13.mb1 usage cd lilypond-source-dir; patch -E -p1 < lilypond-1.4.13.mb1.diff Patches do not contain automatically generated files or (urg) empty directories, i.e., you should rerun autoconf, configure diff -purN ../lilypond-1.4.13/CHANGES ./CHANGES --- ../lilypond-1.4.13/CHANGES Sun May 5 19:06:06 2002 +++ ./CHANGES Thu May 23 12:32:44 2002 @@ -1,3 +1,8 @@ +1.4.13.mb1 +== + +* Include lilypond-indent.el in Redhat, SUSE and Debian distr. + lilypond_1_4 diff -purN ../lilypond-1.4.13/VERSION ./VERSION --- ../lilypond-1.4.13/VERSION Sun May 5 19:05:21 2002 +++ ./VERSION Thu May 23 12:32:57 2002 @@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond MAJOR_VERSION=1 MINOR_VERSION=4 PATCH_LEVEL=13 -MY_PATCH_LEVEL= +MY_PATCH_LEVEL=mb1 # use the above to send patches: MY_PATCH_LEVEL is always empty for a # released version. diff -purN ../lilypond-1.4.13/debian/rules ./debian/rules --- ../lilypond-1.4.13/debian/rules Wed Mar 27 12:21:04 2002 +++ ./debian/rules Thu May 23 12:32:08 2002 @@ -114,7 +114,7 @@ binary-arch: DH_OPTIONS=-s binary-arch: build install dh_testdir dh_testroot - cp -av lilypond-mode.el lilypond-font-lock.el \ + cp -av lilypond-mode.el lilypond-font-lock.el lilypond-indent.el \ $(r)/usr/share/emacs/site-lisp/ dh_installdocs DEDICATION NEWS ROADMAP *.txt diff -purN ../lilypond-1.4.13/make/lilypond.redhat.spec.in ./make/lilypond.redhat.spec.in --- ../lilypond-1.4.13/make/lilypond.redhat.spec.in Fri Feb 22 12:43:47 2002 +++ ./make/lilypond.redhat.spec.in Thu May 23 12:28:35 2002 @@ -62,7 +62,7 @@ gzip -9fn $RPM_BUILD_ROOT%{_prefix}/info %endif mkdir -p $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/site-start.d -install -m 644 lilypond-mode.el lilypond-font-lock.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/ +install -m 644 lilypond-mode.el lilypond-font-lock.el lilypond-indent.el +$RPM_BUILD_ROOT/usr/share/emacs/site-lisp/ install -m 644 lilypond-init.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/site-start.d gzip -9fn $RPM_BUILD_ROOT%{_prefix}/man/man1/* diff -purN ../lilypond-1.4.13/make/lilypond.suse.spec.in ./make/lilypond.suse.spec.in --- ../lilypond-1.4.13/make/lilypond.suse.spec.in Fri Feb 22 12:43:04 2002 +++ ./make/lilypond.suse.spec.inThu May 23 12:31:09 2002 @@ -215,6 +215,7 @@ touch var/adm/SuSEconfig/run-texhash # hairy to hook it in (possibly non-existing) emacs %doc lilypond-mode.el %doc lilypond-font-lock.el +%doc lilypond-indent.el %config /etc/profile.d/*
Re: lilypond emacs mode
I upgraded to 1.14.13 but still have the same problem. Does the RPM put the .el files into the site-lisp directory? > > Which Lilypond version do you use? > > In Lilypond 1.4.12, this file was unfortunately missing > > in the distribution, so if you have 1.4.12, the best > > solution is to upgrade to 1.4.13 or to get the file > > lilypond-indent.el from the 1.4.13 source code distribution > > and install it at the same location as you currently have > > lilypond-mode.el installed on your machine. > I have v 1.4.11, maybe it's time I upgraded... > Colin > > > ___ > Lilypond-user mailing list > [EMAIL PROTECTED] > http://mail.gnu.org/mailman/listinfo/lilypond-user > ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond emacs mode
> Which Lilypond version do you use? > In Lilypond 1.4.12, this file was unfortunately missing > in the distribution, so if you have 1.4.12, the best > solution is to upgrade to 1.4.13 or to get the file > lilypond-indent.el from the 1.4.13 source code distribution > and install it at the same location as you currently have > lilypond-mode.el installed on your machine. I have v 1.4.11, maybe it's time I upgraded... Colin ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond emacs mode
> Hi, > Does anybody have any tips on getting the emacs mode working? > > I currently get: > file mode specification error: (file-error "Cannot open load file" > "lilypond-indent") > > Colin Which Lilypond version do you use? In Lilypond 1.4.12, this file was unfortunately missing in the distribution, so if you have 1.4.12, the best solution is to upgrade to 1.4.13 or to get the file lilypond-indent.el from the 1.4.13 source code distribution and install it at the same location as you currently have lilypond-mode.el installed on your machine. /Mats ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user
lilypond emacs mode
Hi, Does anybody have any tips on getting the emacs mode working? I currently get: file mode specification error: (file-error "Cannot open load file" "lilypond-indent") Colin ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user