Sorry for the delay in responding to this. I have been clearing a virus...
----- Original Message ----- From: "Jan Nieuwenhuizen" <[EMAIL PROTECTED]> To: "Bernard Hurley" <[EMAIL PROTECTED]> Cc: "'Peter Dixon '" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, July 04, 2002 1:36 PM Subject: Re: lilypond-mode in Emacs on Windows > Bernard Hurley <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter > http://www.xs4all.nl/~jantien | http://www.lilypond.org > _______________________________________________ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user