Lilypond+Emacs

2015-11-20 Thread Amir Teymuri
Hello Lilypond communiy,

 

i am new to lilypond, i am trying to set up the lilypond mode in emacs, till now unsuccessfuly!

This is what i have tried so far:


	downloaded the lilypond extecutable sh file from the homepage and installed it by doing this command: 
	sh lilypond-2.18.2-1.linux.x86.sh
	


in the directory i downloaded the sh file. But in my /usr/local/lilypond/ there is only a usr directory and nothing more (no el files or such)

 

What i going wrong?

 

Thank you


sudo sh lilypond-2.18.2-1.linux-x86.sh 


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lilypond+Emacs

2015-11-20 Thread Simon Albrecht

On 20.11.2015 16:40, Amir Teymuri wrote:

Hello Lilypond communiy,
i am new to lilypond, i am trying to set up the lilypond mode in 
emacs, till now unsuccessfuly!

This is what i have tried so far:

 1. downloaded the lilypond extecutable sh file from the homepage and
installed it by doing this command:
sh lilypond-2.18.2-1.linux.x86.sh

in the directory i downloaded the sh file. But in my 
/usr/local/lilypond/ there is only a usr directory and nothing more 
(no el files or such)


The .el files should be in lilypond/usr/share/emacs/site-lisp/.

HTH, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Aw: Re: Lilypond+Emacs

2015-11-20 Thread Simon Albrecht

Hello Amir,

I’m not familiar with Emacs at all. Please always ‘reply all’, 
especially include the list.

Sorry to be no further help here.

Yours, Simon

On 20.11.2015 19:26, Amir Teymuri wrote:

Hello,
i have now uninstalled lilypond and reinstalled it again from the 
package repository, there is no directories named 
usr/share/emacs/site-lisp/ in the lilypond directory in my 
~/usr/share. I have put this in my init.el:
*(setq load-path (append (list (expand-file-name 
"~/usr/share/emacs/site-lisp")) load-path))

(autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t)
(add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode))
(add-to-list 'auto-mode-alist '("\\.ily$" . LilyPond-mode))
(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))*
But if now i open an .ly file the text are colored, and i see a 
LilyPond at the top of minibuffer (as majormode), but there are no 
autocompletions (although there are auto-indentations), is this now 
the correct lilypond mode?

thanks
*Gesendet:* Freitag, 20. November 2015 um 17:14 Uhr
*Von:* "Simon Albrecht" <simon.albre...@mail.de>
*An:* "Amir Teymuri" <amirteym...@gmx.de>, lilypond-user@gnu.org
*Betreff:* Re: Lilypond+Emacs
On 20.11.2015 16:40, Amir Teymuri wrote:
> Hello Lilypond communiy,
> i am new to lilypond, i am trying to set up the lilypond mode in
> emacs, till now unsuccessfuly!
> This is what i have tried so far:
>
> 1. downloaded the lilypond extecutable sh file from the homepage and
> installed it by doing this command:
> sh lilypond-2.18.2-1.linux.x86.sh
>
> in the directory i downloaded the sh file. But in my
> /usr/local/lilypond/ there is only a usr directory and nothing more
> (no el files or such)

The .el files should be in lilypond/usr/share/emacs/site-lisp/.

HTH, Simon



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Aw: Re: Lilypond+Emacs

2015-11-20 Thread Amir Teymuri

Hello,

 

i have now uninstalled lilypond and reinstalled it again from the package repository, there is no directories named usr/share/emacs/site-lisp/ in the lilypond directory in my ~/usr/share. I have put this in my init.el:

(setq load-path (append (list (expand-file-name "~/usr/share/emacs/site-lisp")) load-path))
(autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t)
(add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode))
(add-to-list 'auto-mode-alist '("\\.ily$" . LilyPond-mode))
(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))

 

But if now i open an .ly file the text are colored, and i see a LilyPond at the top of minibuffer (as majormode), but there are no autocompletions (although there are auto-indentations), is this now the correct lilypond mode?

 

thanks

 

Gesendet: Freitag, 20. November 2015 um 17:14 Uhr
Von: "Simon Albrecht" <simon.albre...@mail.de>
An: "Amir Teymuri" <amirteym...@gmx.de>, lilypond-user@gnu.org
Betreff: Re: Lilypond+Emacs

On 20.11.2015 16:40, Amir Teymuri wrote:
> Hello Lilypond communiy,
> i am new to lilypond, i am trying to set up the lilypond mode in
> emacs, till now unsuccessfuly!
> This is what i have tried so far:
>
> 1. downloaded the lilypond extecutable sh file from the homepage and
> installed it by doing this command:
> sh lilypond-2.18.2-1.linux.x86.sh
>
> in the directory i downloaded the sh file. But in my
> /usr/local/lilypond/ there is only a usr directory and nothing more
> (no el files or such)

The .el files should be in lilypond/usr/share/emacs/site-lisp/.

HTH, Simon




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond emacs-mode

2005-12-03 Thread Libero Mureddu
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

2005-12-02 Thread Libero Mureddu
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

2005-12-02 Thread Nicolas Sceaux
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

2005-12-02 Thread Libero Mureddu
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

2005-11-26 Thread Nicolas Sceaux
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

2005-11-25 Thread Daniel Oehry
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(#buffer  *load* 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


lilypond emacs mode?

2002-09-07 Thread superk

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

2002-05-23 Thread Mats Bengtsson

 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