an emacs question

2010-12-12 Thread James Bailey
How can I pass an argument to the emacs compile command? Usually, when I compile something on the command line, I include a directory with tons of style sheets with the -I argument. Is it possible to add this to emacs, or can I only do it on the command line? Thanks in advance, James

Re: an emacs question

2010-12-12 Thread Alexander Kobel
On 2010-12-12 09:48, James Bailey wrote: How can I pass an argument to the emacs compile command? Usually, when I compile something on the command line, I include a directory with tons of style sheets with the -I argument. Is it possible to add this to emacs, or can I only do it on the

Re: an emacs question

2010-12-12 Thread James Bailey
On Dec 12, 2010, at 10:07 AM, Alexander Kobel wrote: On 2010-12-12 09:48, James Bailey wrote: How can I pass an argument to the emacs compile command? Usually, when I compile something on the command line, I include a directory with tons of style sheets with the -I argument. Is it

Re: an emacs question

2010-12-12 Thread Alexander Kobel
On 2010-12-12 10:07, Alexander Kobel wrote: On 2010-12-12 09:48, James Bailey wrote: How can I pass an argument to the emacs compile command? [...] Hi, James, C-h v LilyPond-command-alist gives me this: [...] Value: ((LilyPond Lilypond %s %s %l View) [...]) Uh, I forgot to mention that

Re: emacs question

2008-09-10 Thread Hans Aberg
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

Re: emacs question

2008-09-10 Thread James E. Bailey
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

Re: emacs question

2008-09-10 Thread Hans Aberg
On 10 Sep 2008, at 10:56, James E. Bailey wrote: I have exec /Applications/LilyPond.app/Contents/Resources/bin/ lilypond $@ 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

Re: emacs question

2008-09-10 Thread James E. Bailey
On 10.09.2008, at 11:34, Hans Aberg wrote: On 10 Sep 2008, at 10:56, James E. Bailey wrote: I have exec /Applications/LilyPond.app/Contents/Resources/bin/ lilypond $@ 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).

Re: emacs question

2008-09-10 Thread Hans Aberg
On 10 Sep 2008, at 10:56, James E. Bailey wrote: 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. What do you get if you type in Terminal or xterm: cat $(which lilypond) Hans

Re: emacs question

2008-09-10 Thread James E. Bailey
12:57:28 jamesebailey lilypond:which lilypond /Users/jamesebailey/bin/lilypond On 10.09.2008, at 11:54, Hans Aberg wrote: On 10 Sep 2008, at 10:56, James E. Bailey wrote: 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. What

Re: emacs question

2008-09-10 Thread Hans Aberg
I wanted to know what is in the lilypond you use - is it binary or a script, and in the latter case, what is the script. If you type less $(which lilypond) then $(which lilypond) will produce the path you just wrote, and 'less' will write out the contents if it is not binary. Hans On

Re: emacs question

2008-09-10 Thread James E. Bailey
Ah. I use a binary, not a script. I actually build lilypond, I'm on 10.5 On 10.09.2008, at 13:29, Hans Aberg wrote: I wanted to know what is in the lilypond you use - is it binary or a script, and in the latter case, what is the script. If you type less $(which lilypond) then $(which

Re: emacs question

2008-09-10 Thread Hans Aberg
On 10 Sep 2008, at 14:03, James E. Bailey wrote: Ah. I use a binary, not a script. I actually build lilypond, I'm on 10.5 I just wanted to make sure it isn't the 'lilypond' part. One other test is to type lilypond 'foo bar' If spaces are passed on correctly, then one gets GNU LilyPond

Re: emacs question

2008-09-10 Thread James E. Bailey
Yes, my original post, I posted the error message from emacs: -*- mode: compilation; default-directory: ~/Documents/James Music/ Choral Music/Dad/Litany/ -*- Compilation started at Mon Sep 8 15:24:38 lilypond /Users/jamesebailey/Documents/James Music/Choral Music/Dad/ Litany/Litany.ly GNU

Re: emacs question

2008-09-10 Thread Hans Aberg
On 10 Sep 2008, at 15:11, James E. Bailey wrote: Yes, my original post, I posted the error message from emacs: -*- mode: compilation; default-directory: ~/Documents/James Music/ Choral Music/Dad/Litany/ -*- Compilation started at Mon Sep 8 15:24:38 lilypond

Re: emacs question

2008-09-10 Thread Hans Aberg
On 10 Sep 2008, at 15:11, James E. Bailey wrote: I just wish someone with a little elisp help could point me toward the part of whichever file determines how the file is processed in emacs so I could learn enough to be able to add to it. The section I mentioned before (Section 37.1

Re: emacs question

2008-09-10 Thread andersvi
J == James E Bailey [EMAIL PROTECTED] writes: J I just wish someone with a little elisp help could point me J toward the part of whichever file determines how the file is J processed in emacs so I could learn enough to be able to add J to it. I beleive lilypond-command-master

Re: emacs question

2008-09-10 Thread Johan Vromans
James E. Bailey [EMAIL PROTECTED] writes: I just wish someone with a little elisp help could point me toward the part of whichever file determines how the file is processed in emacs so I could learn enough to be able to add to it. You'll find the code in lilypond-mode.el. It should be

Re: emacs question

2008-09-10 Thread John Mandereau
On 2008/09/10 15:11 +0200, James E. Bailey wrote: I just wish someone with a little elisp help could point me toward the part of whichever file determines how the file is processed in emacs so I could learn enough to be able to add to it. I'd rather fix the bug completely before speaking

Re: emacs question

2008-09-10 Thread James E. Bailey
On 10.09.2008, at 16:13, [EMAIL PROTECTED] wrote: J == James E Bailey [EMAIL PROTECTED] writes: J I just wish someone with a little elisp help could point me J toward the part of whichever file determines how the file is J processed in emacs so I could learn enough to be able to add

Re: emacs question

2008-09-10 Thread Reinhold Kainhofer
Am Mittwoch, 10. September 2008 schrieb Johan Vromans: James E. Bailey [EMAIL PROTECTED] writes: I just wish someone with a little elisp help could point me toward the part of whichever file determines how the file is processed in emacs so I could learn enough to be able to add to it.

Re: emacs question [FIXED]

2008-09-10 Thread John Mandereau
On 2008/09/10 16:41 +0200, James E. Bailey wrote: 6) I think somewhere, the quotes are being stripped. Probably, but escaping the spaces instead of quoting the whole file name also works with (ba)sh, and shell-quote-argument Emacs function does it well (see below). On other platforms using

Re: emacs question

2008-09-10 Thread John Mandereau
On 2008/09/10 16:53 +0200, Reinhold Kainhofer wrote: I'd rather fix the bug completely before speaking up, but this thread is inflating a lot: in elisp/lilypond-mode.el line 647 (in function LilyPond-command-expand), file should be quoted and escaped. Ahm, no line 647 is fine (just

Re: emacs question

2008-09-10 Thread andersvi
(buffer-file-name) returns a string without backquote-escaping the whitespaces. Heres a replacement (try evalling this somewhere in emacs after 'lilypond-mode is loaded). Please test before including anywhere. -anders (defun subst-spc-w-bcksl (lista); what a hack! ;; escape

Re: emacs question [FIXED]

2008-09-10 Thread James E. Bailey
On 10.09.2008, at 17:37, John Mandereau wrote: The following fix works for me, I'm pushing it to Git, it will appear in release 2.11.58 or .59 diff --git a/elisp/lilypond-mode.el b/elisp/lilypond-mode.el index 769331f..80a3f29 100644 --- a/elisp/lilypond-mode.el +++ b/elisp/lilypond-mode.el

Re: emacs question

2008-09-10 Thread Jeremy Henty
On Wed, Sep 10, 2008 at 04:41:57PM +0200, James E. Bailey wrote: M-: (buffer-file-name) returned /Users/jamesebailey/Documents/James Music/Choral Music/Dad/Litany/ Litany.ly with the quotes [...] So, if I understand correctly, 1) buffer-file-name is a correctly escaped filename

Re: emacs question [FIXED]

2008-09-10 Thread Christopher Suckling
On Wed, Sep 10, 2008 at 06:01:31PM +0200, James E. Bailey wrote: I just updated my file. This is beautiful. Thank you so much. I knew this would get solved eventually. Seconded. Sorry I didn't have time to attempt a fix; have to get my score to the printers by tomorrow morning!

Re: emacs question

2008-09-10 Thread Peter Chubb
andersvi == andersvi [EMAIL PROTECTED] writes: andersvi (buffer-file-name) returns a string without andersvi backquote-escaping the whitespaces. andersvi Heres a replacement (try evalling this somewhere in emacs andersvi after 'lilypond-mode is loaded). Please test before andersvi including

Re: emacs question

2008-09-09 Thread James E. Bailey
On 09.09.2008, at 02:58, Paul Scott wrote: You mean you use Terminal and not XDarwin? I'm assuming you mean X11, but yes, I have a difficult time remembering the keyboard commands for a normal emacs session. I think I would go crazy if I tried to remember them for the GUI version. At

Re: emacs question

2008-09-09 Thread Hans Aberg
On 8 Sep 2008, at 15:30, James E. Bailey wrote: I don't know if this is true for anyone else, but, when I try and use emacs (22.2.1) on OSX in my terminal, I can't compile on the master file and file where there is a space in the filename. What do you get in your lilypond scrip filet? - Try

Re: emacs question

2008-09-09 Thread Hans Aberg
On 9 Sep 2008, at 16:19, James E. Bailey wrote: What do you get in your lilypond scrip filet? - Try less $(which lilypond) I have exec /Applications/LilyPond.app/Contents/Resources/bin/lilypond $@ Forgot to mention I'm on 10.5 and have lilypond installed in ~/bin. Emacs successfully calls

emacs question

2008-09-08 Thread James E. Bailey
I don't know if this is true for anyone else, but, when I try and use emacs (22.2.1) on OSX in my terminal, I can't compile on the master file and file where there is a space in the filename. For example: -*- mode: compilation; default-directory: ~/Documents/James Music/ Choral

Re: emacs question

2008-09-08 Thread Christopher Suckling
On Mon, Sep 08, 2008 at 03:30:41PM +0200, James E. Bailey wrote: I don't know if this is true for anyone else, but, when I try and use emacs (22.2.1) on OSX in my terminal, I can't compile on the master file and file where there is a space in the filename. I've had the same problem and

Re: emacs question

2008-09-08 Thread James E. Bailey
On 08.09.2008, at 15:46, Christopher Suckling wrote: On Mon, Sep 08, 2008 at 03:30:41PM +0200, James E. Bailey wrote: I don't know if this is true for anyone else, but, when I try and use emacs (22.2.1) on OSX in my terminal, I can't compile on the master file and file where there is a

Re: emacs question

2008-09-08 Thread Paul Scott
James E. Bailey wrote: On 08.09.2008, at 15:46, Christopher Suckling wrote: On Mon, Sep 08, 2008 at 03:30:41PM +0200, James E. Bailey wrote: I don't know if this is true for anyone else, but, when I try and use emacs (22.2.1) on OSX in my terminal, I can't compile on the master file and