lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lilypond-mode in Emacs on Windows


From: Peter Dixon
Subject: Re: lilypond-mode in Emacs on Windows
Date: Mon, 8 Jul 2002 22:39:49 +0100

Sorry for the delay in responding to this.  I have been clearing a virus...

----- Original Message -----
From: "Jan Nieuwenhuizen" <address@hidden>
To: "Bernard Hurley" <address@hidden>
Cc: "'Peter Dixon '" <address@hidden>; <address@hidden>
Sent: Thursday, July 04, 2002 1:36 PM
Subject: Re: lilypond-mode in Emacs on Windows


> Bernard Hurley <address@hidden> writes:
>
> > Try putting this in ylur .emacs file:
>
> Can that be done automatically, ie, does the Emacs for Windows
> configuration know the concept of a site start directory, something
> like:
>
>    /etc/emacs/site-start.d

In Windows emacs there is a file c:\emacs\site-lisp\default.el where I put
the all-user startup code.
>
> that we could copy the lilypond-init.el snippet to?
>
> Also, could you tell were the other .ELs should be installed?
>
> > (Yes the regular expression does contain 8 backslashes in a row!
>
> Ah, that's nice.
>
> > (defun LilyPond-master-file ()
> >   (string-replace-match ".*\\(/\\|\\\\\\\)" (buffer-file-name) "" t t))

'compile-internal' (which is called by 'lilypond-command') starts by doing a
cd to the directory of the .ly file.  We don't need an absolute file name
here so should get away with

(defun LilyPond-master-file () (buffer-name))

I have tried this and get './xxx.ly', which should work in windows and unix.

>
> Could you make this conditional, for Cygwin only, so that we can
> include it in lilypond-mode.el itself, something like:
>
>   (defun LilyPond-master-file ()
>     (if (on-cygwin-p)
>       (string-replace-match ".*\\(/\\|\\\\\\\)" (buffer-file-name) "" t
t))
>       (buffer-file-name))
>
I can't find an 'on-cygwin-p' function in my emacs.

>
> Jan.
>
> --
> Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
> http://www.xs4all.nl/~jantien       | http://www.lilypond.org
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]