lilypond-user
[Top][All Lists]
Advanced

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

Re: emacs question


From: James E. Bailey
Subject: Re: emacs question
Date: Wed, 10 Sep 2008 10:56:06 +0200


On 10.09.2008, at 10:45, Hans Aberg wrote:

On 10 Sep 2008, at 00:18, James E. Bailey wrote:

I have
exec /Applications/LilyPond.app/Contents/Resources/bin/lilypond "$@"


You can try running a command like
export IFS='';lilypond 'foo bar'
Setting the IFS variable empty prevents variable name spaces being expanded.

Otherwise, it may be an emacs bug - so check the emacs lists.

I'm a little confused. This looks like a bash solution, but emacs has no problems with bash. As far I can see, the problem is with lilypond-mode. The filename that lilypond-mode calls cannot have spaces. The emacs people I've asked all say it's a problem with lilypond-mode (actually, they say that the elisp in lilypond-mode is horrible, and ask me if I wrote it).

I am not sure exactly what you run in Emacs,
lilypond-mode. In the command menu, there's an option lilypond (C-c C- l). If it's set to do the command on the master File (C-c C-c) it fails because the path is not escaped.

but when compiling, it creates a subshell and runs the compilation process in it.
I think that's the compile option in the file menu. There, I can do "lilypond path\ to/my\ file.ly" and it's fine.

Then, if someone forgot putting in the quotes above when composing the full path, one would get the error you reported. Setting IFS empty (might suffice only IFS=) might be a workaround - some suggests using this in scripts rather than quotes, but it is not well known.
Regardless, I tried adding that to my .bashrc and it had no effect.

 Hans

James




reply via email to

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