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" 
An: "Amir Teymuri" , 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: 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" 
*An:* "Amir Teymuri" , 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

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


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-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
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-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
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-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(# 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?

2002-09-08 Thread Atte Andre Jensen

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?

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

> 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

2002-05-23 Thread Colin Cotter

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

2002-05-23 Thread Colin Cotter

> 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

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



lilypond emacs mode

2002-05-23 Thread Colin Cotter

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