Re: Emacs lilypond mode formatting and indenting

2019-01-28 Thread Andrew Bernard
Hi Caio,

For 2.19.82 refer to Section 4.1.1 Configuruing the system. It explains
what to do to enable point and click from the PDF viewer program, and how
to set the EDITOR variable to make emacs go to the right line and column. I
don't think it says it there and assumes you know what you are doing, but
running emacsclient for this means yo have to start emacs with
(server-start) in the init file. That's documented on the Emacs Wiki.

Start emacs, then open the PDF and click on an object. The source file will
open in emacs at the precise location. It's great!

Works splendidly on Debian 9.

Andrew



On Tue, 29 Jan 2019 at 06:34, Caio Barros  wrote:

>
> Hey, how are you previewing the PDF and using the point and click? Are you
> using Emac's own Doc Viewer? The point and click feature doesn't work for
> me and I acuatlly didn't know emacs supported it.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Frescobaldi slowed down [WAS: Re: Emacs lilypond mode formatting and indenting]

2019-01-28 Thread Urs Liska


Am 28.01.19 um 13:06 schrieb Andrew Bernard:

HI Vaughan,

I'm using a pristine clean new Debian 9, Frescobaldi 3, and whatever 
Python that currently uses of course. This effect hit all of a sudden. 
The string quartet I have to write in blocks of ten pages to keep 
Frescobaldi snappy in response, but it just hit the wall. Perhaps a 
coincidence after an OS update, or perhaps i have just hit some 
complexity threshold where Frescobaldi goes non-linear. Although not 
large in length, I am after all engraving New Complexity School 
scores, and the music is fairly dense with detail.



Just a random thought: is it by any chance possible that you managed to 
force Frescobaldi into a loop, for example by circular includes?


Urs




Andrew


On Mon, 28 Jan 2019 at 21:48, Vaughan McAlley > wrote:


On Mon, 28 Jan 2019, 18:18 Andrew Bernard
mailto:andrew.bern...@gmail.com> wrote:

Hello Federico,

Thanks for the input. Current score is only ten pages of
string quartet music. Complex yes, but not vast. It suddenly
stated after a Debian 9 update.

I love Frescobaldi, but the very sluggish response now of the
text editor is unusable, and I have had to abandon it for
Emacs. Emacs is great, but the indentation is abysmal, and
just messes up really quickly. Caught between two
unsatisfactory worlds now. I think I am going to have to take
on the monumental task or rewriting from scratch the lilypond
mode indenting and formatting engine. If I can achieve
anything in that area, it may be a good side effect of this
Frescobaldi problem.

Andrew


___
lilypond-user mailing list
lilypond-user@gnu.org 
https://lists.gnu.org/mailman/listinfo/lilypond-user


H, I've been running Frescobaldi on Debian 9 without any
problems for a while now. IIRC (not near my computer) it's
Frescobaldi 3 which uses a different version of Python.

(Also, I messed up the upgrade so it became effectively a clean
install of Debian 9)

Vaughan
The/


___
lilypond-user mailing list
lilypond-user@gnu.org 
https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Frescobaldi slowed down [WAS: Re: Emacs lilypond mode formatting and indenting]

2019-01-28 Thread Andrew Bernard
HI Vaughan,

I'm using a pristine clean new Debian 9, Frescobaldi 3, and whatever Python
that currently uses of course. This effect hit all of a sudden. The string
quartet I have to write in blocks of ten pages to keep Frescobaldi snappy
in response, but it just hit the wall. Perhaps a coincidence after an OS
update, or perhaps i have just hit some complexity threshold where
Frescobaldi goes non-linear. Although not large in length, I am after all
engraving New Complexity School scores, and the music is fairly dense with
detail.

Andrew


On Mon, 28 Jan 2019 at 21:48, Vaughan McAlley 
wrote:

> On Mon, 28 Jan 2019, 18:18 Andrew Bernard 
>> Hello Federico,
>>
>> Thanks for the input. Current score is only ten pages of string quartet
>> music. Complex yes, but not vast. It suddenly stated after a Debian 9
>> update.
>>
>> I love Frescobaldi, but the very sluggish response now of the text editor
>> is unusable, and I have had to abandon it for Emacs. Emacs is great, but
>> the indentation is abysmal, and just messes up really quickly. Caught
>> between two unsatisfactory worlds now. I think I am going to have to take
>> on the monumental task or rewriting from scratch the lilypond mode
>> indenting and formatting engine. If I can achieve anything in that area, it
>> may be a good side effect of this Frescobaldi problem.
>>
>> Andrew
>>
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> H, I've been running Frescobaldi on Debian 9 without any problems for
> a while now. IIRC (not near my computer) it's Frescobaldi 3 which uses a
> different version of Python.
>
> (Also, I messed up the upgrade so it became effectively a clean install of
> Debian 9)
>
> Vaughan
> The/
>
>>
>> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Frescobaldi slowed down [WAS: Re: Emacs lilypond mode formatting and indenting]

2019-01-28 Thread David Kastrup
Andrew Bernard  writes:

> Hello Federico,
>
> Thanks for the input. Current score is only ten pages of string quartet
> music. Complex yes, but not vast. It suddenly stated after a Debian 9
> update.
>
> I love Frescobaldi, but the very sluggish response now of the text editor
> is unusable, and I have had to abandon it for Emacs. Emacs is great, but
> the indentation is abysmal, and just messes up really quickly. Caught
> between two unsatisfactory worlds now. I think I am going to have to take
> on the monumental task or rewriting from scratch the lilypond mode
> indenting and formatting engine. If I can achieve anything in that area, it
> may be a good side effect of this Frescobaldi problem.

There are definitely users of Emacs and LilyPond who would not switch to
Frescobaldi anyway.  If you can improve Emacs in that area, it will be
appreciated whether or not the result turns out good enough to make
current Frescobaldi users switch (and it seems that whatever usability
issue causing a slowdown like that may be around, offering an option for
switching it off would seem more welcome like a wholesale switch to
most).

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Frescobaldi slowed down [WAS: Re: Emacs lilypond mode formatting and indenting]

2019-01-28 Thread Vaughan McAlley
On Mon, 28 Jan 2019, 18:18 Andrew Bernard  Hello Federico,
>
> Thanks for the input. Current score is only ten pages of string quartet
> music. Complex yes, but not vast. It suddenly stated after a Debian 9
> update.
>
> I love Frescobaldi, but the very sluggish response now of the text editor
> is unusable, and I have had to abandon it for Emacs. Emacs is great, but
> the indentation is abysmal, and just messes up really quickly. Caught
> between two unsatisfactory worlds now. I think I am going to have to take
> on the monumental task or rewriting from scratch the lilypond mode
> indenting and formatting engine. If I can achieve anything in that area, it
> may be a good side effect of this Frescobaldi problem.
>
> Andrew
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


H, I've been running Frescobaldi on Debian 9 without any problems for a
while now. IIRC (not near my computer) it's Frescobaldi 3 which uses a
different version of Python.

(Also, I messed up the upgrade so it became effectively a clean install of
Debian 9)

Vaughan
The/

>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Frescobaldi slowed down [WAS: Re: Emacs lilypond mode formatting and indenting]

2019-01-28 Thread Urs Liska


Am 28.01.19 um 08:18 schrieb Andrew Bernard:

Hi Urs,

I split my score into files only ten pages long to avoid the issue to 
begin with, but it suddenly started happening. Perhaps some Debian 9 
Python change?



Other than with LilyPond the issue is not the complexity of the *score* 
but that of the *input files*, which correlates typically but not always.


I had this problem with two projects: one was a huge (150 page) 
orchestral score that was organized in >5.000 input files, the other had 
very short 2-3 page songs with one large input of several thousand lines 
each because (from auto-converted input) every element had a "\tweak id".


The basic error here in Frescobaldi's code is that (I think) upon every 
change the whole document is parsed again (following all includes) to 
provide the data for autocompletion and syntax highlighting. As this 
happens in the single application thread this is blocking everything else.


Essentially there should only be two (minor) things to be done to 
completely and instantly make the problem go away:


 * Make sure that the used data structure is only updated in the background
 * Make sure only *modified* parts of it are updated

While this is conceptually pretty clear I haven't dared yet to 
investigate it in the code base yet because I haven't understood yet how 
Frescobaldi actually does its highlighting. But I recently changed the 
way Frescobaldi handles external jobs/processes, and that might make it 
more straightforward and compartmentalized to approach the issue.


I can't afford starting this but if you (well, or anyone else) would be 
interested going after it I'd certainly be there to assist.


Urs



Andrew


On Mon, 28 Jan 2019 at 18:01, Urs Liska > wrote:



Am 28.01.19 um 07:51 schrieb Federico Bruni:
> Il giorno dom 27 gen 2019 alle 1:58, Andrew Bernard
> mailto:andrew.bern...@gmail.com>> ha
scritto:
>> But since an upgrade to Debian 9 and as the complexity of my
current
>> score increases, F. has slowed down to a molasses like rate and
has
>> sadly become unusable.
>
> Are you sure that it was caused by an upgrade to Debian 9? Did you
> upgrade Frescobaldi as well? How did you install Frescobaldi?
>
> Perhaps Frescobaldi is becoming slow only when you work on very big
> scores or files that includes several large files? See this issue:
> 
>

I would also think that this problem is *not* related to a change
in the
Linux distribution but *only* to the complexity and size of the input
files. The issue Federico links to is exactly the problem.

Fixing this issue should be comparably low-hanging fruit, especially
with some new code providing better control over external background
jobs. So maybe tackling *this* would give you earlier results ;-)

Urs


___
lilypond-user mailing list
lilypond-user@gnu.org 
https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Frescobaldi slowed down [WAS: Re: Emacs lilypond mode formatting and indenting]

2019-01-27 Thread Andrew Bernard
Hi Urs,

I split my score into files only ten pages long to avoid the issue to begin
with, but it suddenly started happening. Perhaps some Debian 9 Python
change?

Andrew


On Mon, 28 Jan 2019 at 18:01, Urs Liska  wrote:

>
> Am 28.01.19 um 07:51 schrieb Federico Bruni:
> > Il giorno dom 27 gen 2019 alle 1:58, Andrew Bernard
> >  ha scritto:
> >> But since an upgrade to Debian 9 and as the complexity of my current
> >> score increases, F. has slowed down to a molasses like rate and has
> >> sadly become unusable.
> >
> > Are you sure that it was caused by an upgrade to Debian 9? Did you
> > upgrade Frescobaldi as well? How did you install Frescobaldi?
> >
> > Perhaps Frescobaldi is becoming slow only when you work on very big
> > scores or files that includes several large files? See this issue:
> > 
> >
>
> I would also think that this problem is *not* related to a change in the
> Linux distribution but *only* to the complexity and size of the input
> files. The issue Federico links to is exactly the problem.
>
> Fixing this issue should be comparably low-hanging fruit, especially
> with some new code providing better control over external background
> jobs. So maybe tackling *this* would give you earlier results ;-)
>
> Urs
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Frescobaldi slowed down [WAS: Re: Emacs lilypond mode formatting and indenting]

2019-01-27 Thread Andrew Bernard
Hello Federico,

Thanks for the input. Current score is only ten pages of string quartet
music. Complex yes, but not vast. It suddenly stated after a Debian 9
update.

I love Frescobaldi, but the very sluggish response now of the text editor
is unusable, and I have had to abandon it for Emacs. Emacs is great, but
the indentation is abysmal, and just messes up really quickly. Caught
between two unsatisfactory worlds now. I think I am going to have to take
on the monumental task or rewriting from scratch the lilypond mode
indenting and formatting engine. If I can achieve anything in that area, it
may be a good side effect of this Frescobaldi problem.

Andrew
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Frescobaldi slowed down [WAS: Re: Emacs lilypond mode formatting and indenting]

2019-01-27 Thread Urs Liska



Am 28.01.19 um 07:51 schrieb Federico Bruni:
Il giorno dom 27 gen 2019 alle 1:58, Andrew Bernard 
 ha scritto:
But since an upgrade to Debian 9 and as the complexity of my current 
score increases, F. has slowed down to a molasses like rate and has 
sadly become unusable.


Are you sure that it was caused by an upgrade to Debian 9? Did you 
upgrade Frescobaldi as well? How did you install Frescobaldi?


Perhaps Frescobaldi is becoming slow only when you work on very big 
scores or files that includes several large files? See this issue:





I would also think that this problem is *not* related to a change in the 
Linux distribution but *only* to the complexity and size of the input 
files. The issue Federico links to is exactly the problem.


Fixing this issue should be comparably low-hanging fruit, especially 
with some new code providing better control over external background 
jobs. So maybe tackling *this* would give you earlier results ;-)


Urs


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Frescobaldi slowed down [WAS: Re: Emacs lilypond mode formatting and indenting]

2019-01-27 Thread Federico Bruni
Il giorno dom 27 gen 2019 alle 1:58, Andrew Bernard 
 ha scritto:
But since an upgrade to Debian 9 and as the complexity of my current 
score increases, F. has slowed down to a molasses like rate and has 
sadly become unusable.


Are you sure that it was caused by an upgrade to Debian 9? Did you 
upgrade Frescobaldi as well? How did you install Frescobaldi?


Perhaps Frescobaldi is becoming slow only when you work on very big 
scores or files that includes several large files? See this issue:






___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond mode formatting and indenting

2019-01-27 Thread David Kastrup
Andrew Bernard  writes:

> Thanks David!
>
> Interestingly, the following line appears in the lilypond mode elisp:
>
> lilypond-mode.el:;;; Inspired on auctex

I think it's about keybindings for running stuff and possibly initial
process handling, not so much about the parsing/indentation.  And AUCTeX
saw a whole lot more development after that comment was written.

Make no mistake: some of its process/viewer handling would also be a
good idea for LilyPond, but a whole lot of AUCTeX functionality just
doesn't map all that well, and that particularly concerns the
parsing/highlighting/indentation.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond mode formatting and indenting

2019-01-26 Thread Paul Scott
On Sat, Jan 26, 2019 at 11:17:21PM -0500, Hwaen Ch'uqi wrote:
> I'm not sure if this is still on topic, but I have found that LilyPond
> indentation on emacs goes off kilter when brackets (i.e., for beaming)
> and parentheses (i.e., for slurs and phrasing slurs) are used. The
> solution for brackets is easy enough; putting space around them
> alleviates the problem. But parentheses are another matter. I code one
> measure per line, and when slurs/phrasing slurs cross the barline, the
> indentation goes asew. It "corrects" itself in the measure after the
> slur has been closed. Any solution for this would be most fabulous!

Also the articulation "--->" cancels or resets the indentation.
Whenever I use that articulation I put it in a separate one line defonition.

Paul

> 
> Hwaen Ch'uqi
> 
> 
> On 1/26/19, David Wright  wrote:
> > On Sun 27 Jan 2019 at 11:58:30 (+1100), Andrew Bernard wrote:
> >> Frescobaldi has a great formatting function that indents all the code
> >> very
> >> nicely and nearly flawlessly.
> >>
> >> But since an upgrade to Debian 9 and as the complexity of my current
> >> score
> >> increases, F. has slowed down to a molasses like rate and has sadly
> >> become
> >> unusable. [I have never seen that before until now.] Consequently I have
> >> returned to Emacs, as a long term Emacs user anyway. The PDF point and
> >> click with Emacs all works splendidly on Debian 9, and everything is
> >> lightning quick.
> >>
> >> The indenting in the current lilypond mode is to put it politely, less
> >> than
> >> optimal. My question is, can the lilypond-mode reformat and entire buffer
> >> like F. does?
> >
> > Probably not the fastest way, but I
> >
> > . move to BOT   to see how many lines, say, 1234
> > . move to TOP   start at the top
> > . ^X ( ^I ^N ^X )   define a macro that runs  
> > . ESC 1234 ^PgDnrun the last-defined macro 1234 times
> >
> > to reindent (not reformat).
> >
> > Cheers,
> > David.
> >
> > ___
> > lilypond-user mailing list
> > lilypond-user@gnu.org
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> >
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond mode formatting and indenting

2019-01-26 Thread Hwaen Ch'uqi
I'm not sure if this is still on topic, but I have found that LilyPond
indentation on emacs goes off kilter when brackets (i.e., for beaming)
and parentheses (i.e., for slurs and phrasing slurs) are used. The
solution for brackets is easy enough; putting space around them
alleviates the problem. But parentheses are another matter. I code one
measure per line, and when slurs/phrasing slurs cross the barline, the
indentation goes asew. It "corrects" itself in the measure after the
slur has been closed. Any solution for this would be most fabulous!

Hwaen Ch'uqi


On 1/26/19, David Wright  wrote:
> On Sun 27 Jan 2019 at 11:58:30 (+1100), Andrew Bernard wrote:
>> Frescobaldi has a great formatting function that indents all the code
>> very
>> nicely and nearly flawlessly.
>>
>> But since an upgrade to Debian 9 and as the complexity of my current
>> score
>> increases, F. has slowed down to a molasses like rate and has sadly
>> become
>> unusable. [I have never seen that before until now.] Consequently I have
>> returned to Emacs, as a long term Emacs user anyway. The PDF point and
>> click with Emacs all works splendidly on Debian 9, and everything is
>> lightning quick.
>>
>> The indenting in the current lilypond mode is to put it politely, less
>> than
>> optimal. My question is, can the lilypond-mode reformat and entire buffer
>> like F. does?
>
> Probably not the fastest way, but I
>
> . move to BOT   to see how many lines, say, 1234
> . move to TOP   start at the top
> . ^X ( ^I ^N ^X )   define a macro that runs  
> . ESC 1234 ^PgDnrun the last-defined macro 1234 times
>
> to reindent (not reformat).
>
> Cheers,
> David.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond mode formatting and indenting

2019-01-26 Thread David Wright
On Sun 27 Jan 2019 at 11:58:30 (+1100), Andrew Bernard wrote:
> Frescobaldi has a great formatting function that indents all the code very
> nicely and nearly flawlessly.
> 
> But since an upgrade to Debian 9 and as the complexity of my current score
> increases, F. has slowed down to a molasses like rate and has sadly become
> unusable. [I have never seen that before until now.] Consequently I have
> returned to Emacs, as a long term Emacs user anyway. The PDF point and
> click with Emacs all works splendidly on Debian 9, and everything is
> lightning quick.
> 
> The indenting in the current lilypond mode is to put it politely, less than
> optimal. My question is, can the lilypond-mode reformat and entire buffer
> like F. does?

Probably not the fastest way, but I

. move to BOT   to see how many lines, say, 1234
. move to TOP   start at the top
. ^X ( ^I ^N ^X )   define a macro that runs  
. ESC 1234 ^PgDnrun the last-defined macro 1234 times

to reindent (not reformat).

Cheers,
David.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond mode formatting and indenting

2019-01-26 Thread Andrew Bernard
Thanks David!

Interestingly, the following line appears in the lilypond mode elisp:

lilypond-mode.el:;;; Inspired on auctex

Andrew


On Sun, 27 Jan 2019 at 12:11, David Kastrup  wrote:

>
>
> You wouldn't want it to try.  Really, somebody™ should rewrite Emacs'
> LilyPond support using some of the newer toolkits (like SMIE) and also
> try keeping its key bindings and process control more akin to what
> AUCTeX and similar modes do.  Oh, and of course letting LilyPond-book
> texts cooperate with preview-latex would be great particularly for
> editing LilyPond's Texinfo documentation.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond mode formatting and indenting

2019-01-26 Thread David Kastrup
Andrew Bernard  writes:

> Frescobaldi has a great formatting function that indents all the code very
> nicely and nearly flawlessly.
>
> But since an upgrade to Debian 9 and as the complexity of my current score
> increases, F. has slowed down to a molasses like rate and has sadly become
> unusable. [I have never seen that before until now.] Consequently I have
> returned to Emacs, as a long term Emacs user anyway. The PDF point and
> click with Emacs all works splendidly on Debian 9, and everything is
> lightning quick.
>
> The indenting in the current lilypond mode is to put it politely, less
> than optimal. My question is, can the lilypond-mode reformat and
> entire buffer like F. does?

You wouldn't want it to try.  Really, somebody™ should rewrite Emacs'
LilyPond support using some of the newer toolkits (like SMIE) and also
try keeping its key bindings and process control more akin to what
AUCTeX and similar modes do.  Oh, and of course letting LilyPond-book
texts cooperate with preview-latex would be great particularly for
editing LilyPond's Texinfo documentation.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Emacs lilypond mode formatting and indenting

2019-01-26 Thread Andrew Bernard
Frescobaldi has a great formatting function that indents all the code very
nicely and nearly flawlessly.

But since an upgrade to Debian 9 and as the complexity of my current score
increases, F. has slowed down to a molasses like rate and has sadly become
unusable. [I have never seen that before until now.] Consequently I have
returned to Emacs, as a long term Emacs user anyway. The PDF point and
click with Emacs all works splendidly on Debian 9, and everything is
lightning quick.

The indenting in the current lilypond mode is to put it politely, less than
optimal. My question is, can the lilypond-mode reformat and entire buffer
like F. does?

Andrew
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-19 Thread Laura Conrad
> "David" == David Kastrup  writes:

David> What it does do is trying to track the current "tonality".
David> That's an interesting idea but requires an editing mode that
David> will _propagate_ corrections in order to work nicely.  Of
David> course, the same will be needed in order to have automatic
David> note length recognition cooperate nicely with manual
David> corrections, fixing later durations based on corrections on
David> earlier ones.

I'm not that interested in note length.  I'm not a good enough keyboard
player to be able to enter notes with very accurate lengths.  I use the
left hand to play the  MIDI keyboard and the right hand on the keypad to
do the lengths.  I'm pretty fast this way, and pretty accurate, except
for the silly accidentals midi-input-mode makes up.   The problem is
when entering long note values, which are common in early 16th century
music, I have to leave the keypad to type \breve and \longa.

>>> It works but has the major disadvantage that it doesn't play the MIDI
>>> notes as well as reading them.
>> 
>> The current version of lily-midi.el which I still need to fold into
>> the LilyPond repository does not do so either.

David> You probably mean not as much playing while entering (your
David> MIDI keyboard should do that) as you mean playing while
David> editing.

No, I mean playing while entering.  My USB MIDI keyboard doesn't have
any sounds -- it needs the computer to do the playing.  If I work hard
with Linux audio, I can get Jack and a synthesizer to play sounds when I
play, but midi-input-mode won't talk to Jack.

David> midi-kbd.el retains the full timing information.  So it is
David> prepared for more complex editing modes that make use of
David> them, the simplest of course being just replay of the current
David> region exactly as entered (what to do with manual
David> insertions/corrections?  No idea).  Again, this is not yet
David> done.  And I'm not quite sure how to best do it: one would
David> likely need to open a (raw?) MIDI output device for it as
David> well.

I'm not sure how useful emacs deciding what you want to hear would
be. Something like midi-play-region would be nice.


-- 
Laura   (mailto:lcon...@laymusic.org)

(617) 661-8097  233 Broadway, Cambridge, MA 02139   
 

Mr. Barenboim recalled observing Mr. Boulez lead Schoenberg's "Pelleas
und Melisande" with the BBC Symphony in the early 1960s.

"I sat with the score during the rehearsal," he said. "At the
beginning there is quite a lot of chromaticism, and at a certain point
there was a chord out of tune and Pierre said, 'No, no, this is sharp,
this is flat.' I was amazed.

"As a pianist I had no idea how he heard all that. I mean, when I
thought my piano was out of tune, I just called the tuner. So I asked
Pierre how he did it. I was starting to conduct, and I wanted to know
if this was something I could learn.

"Pierre said: 'You have to have the courage to say what you hear and
think when you conduct. Either the player will correct you and say
it's not me out of tune, it's the second oboe, or you will be
right. But in any case you will learn. Don't put your ego above the
music. Do what you have to do for the sake of the music, and only in
that way will you make progress.' "

Quoted by Michael Kimmelman in the New York Times, January 10, 2010

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-19 Thread Simon Albrecht

On 19.10.2015 18:01, Laura Conrad wrote:

The problem is
when entering long note values, which are common in early 16th century
music, I have to leave the keypad to type \breve and \longa


Except you’d enter it with shortened note values (say to 1/4) and use 
e.g. the Frescobaldi Rhythm Tools to convert them afterwards.


Yours, Simon


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-19 Thread Laura Conrad
> "Simon" == Simon Albrecht  writes:

Simon> On 19.10.2015 18:01, Laura Conrad wrote:
>> The problem is
>> when entering long note values, which are common in early 16th century
>> music, I have to leave the keypad to type \breve and \longa

Simon> Except you’d enter it with shortened note values (say to 1/4)
Simon> and use e.g. the Frescobaldi Rhythm Tools to convert them
Simon> afterwards.

If I'm reading from a modern edition that has everything shortened,
yes.  

If I'm reading from facsimile or a modern edition with original note
values, I prefer to enter what's in front of me.


-- 
Laura   (mailto:lcon...@laymusic.org)

(617) 661-8097  233 Broadway, Cambridge, MA 02139   
 

Solitary Observation Brought Back From A Sojourn In Hell

At midnight tears
Run into your ears.

Louise Bogan


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-19 Thread David Kastrup
Laura Conrad  writes:

>> "Simon" == Simon Albrecht  writes:
>
> Simon> On 19.10.2015 18:01, Laura Conrad wrote:
> >> The problem is
> >> when entering long note values, which are common in early 16th century
> >> music, I have to leave the keypad to type \breve and \longa
>
> Simon> Except you’d enter it with shortened note values (say to 1/4)
> Simon> and use e.g. the Frescobaldi Rhythm Tools to convert them
> Simon> afterwards.
>
> If I'm reading from a modern edition that has everything shortened,
> yes.  
>
> If I'm reading from facsimile or a modern edition with original note
> values, I prefer to enter what's in front of me.

Well, enter 7 and 9 and do a global search and replace on the region
when you are finished.  Or teach Emacs to do that S right when
entering.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-19 Thread David Kastrup
Laura Conrad  writes:

>> "David" == David Kastrup  writes:
>
> David> What it does do is trying to track the current "tonality".
> David> That's an interesting idea but requires an editing mode that
> David> will _propagate_ corrections in order to work nicely.  Of
> David> course, the same will be needed in order to have automatic
> David> note length recognition cooperate nicely with manual
> David> corrections, fixing later durations based on corrections on
> David> earlier ones.
>
> I'm not that interested in note length.  I'm not a good enough keyboard
> player to be able to enter notes with very accurate lengths.  I use the
> left hand to play the  MIDI keyboard and the right hand on the keypad to
> do the lengths.  I'm pretty fast this way, and pretty accurate, except
> for the silly accidentals midi-input-mode makes up.   The problem is
> when entering long note values, which are common in early 16th century
> music, I have to leave the keypad to type \breve and \longa.
>
> >>> It works but has the major disadvantage that it doesn't play the MIDI
> >>> notes as well as reading them.
> >> 
> >> The current version of lily-midi.el which I still need to fold into
> >> the LilyPond repository does not do so either.
>
> David> You probably mean not as much playing while entering (your
> David> MIDI keyboard should do that) as you mean playing while
> David> editing.
>
> No, I mean playing while entering.  My USB MIDI keyboard doesn't have
> any sounds -- it needs the computer to do the playing.  If I work hard
> with Linux audio, I can get Jack and a synthesizer to play sounds when I
> play, but midi-input-mode won't talk to Jack.

Uh, use aconnect -l ?

And then use aconnect to connect your USB MIDI port to some Timidity
port?  Emacs does not have to do anything here.  You can connect one
Midi input to more than one output.

If you have time lag problems, ask back.  I think Ubuntu's default
Timidity settings are somewhat less than real-time friendly.  Probably
nothing fazing an organ player, but for an accordionist something like a
half-second delay can be quite the nuisance.

> David> midi-kbd.el retains the full timing information.  So it is
> David> prepared for more complex editing modes that make use of
> David> them, the simplest of course being just replay of the current
> David> region exactly as entered (what to do with manual
> David> insertions/corrections?  No idea).  Again, this is not yet
> David> done.  And I'm not quite sure how to best do it: one would
> David> likely need to open a (raw?) MIDI output device for it as
> David> well.
>
> I'm not sure how useful emacs deciding what you want to hear would
> be. Something like midi-play-region would be nice.

Without running it through LilyPond first I assume.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-18 Thread David Kastrup
David Kastrup  writes:

> Laura Conrad  writes:
>
>>> "David" == David Kastrup  writes:
>>
>> David> Huh.  I just committed midi-kbd.el to ELPA, the official
>> David> Emacs package archive.
>>
>> That sounded like it would be something I wanted to try,
>
> midi-kbd.el only translates Midi input into Emacs events.  Without any
> keybindings on those events, it is useless.
>
>> so I listed the packages available and went to install it.  But it
>> said it depended on emacs25.  So I installed emacs-snapshot (which is
>> emacs 25.1) from an unofficial ubuntu repository, and listed the
>> packages available and it doesn't have midi-kbd.
>
> Uh.  Maybe it uses a different mirror for Emacs packages or something?
> midi-kbd is brand-new in ELPA.
>
> Try typing r into the package manager for "refreshing".
>
>> Is it my emacs installation being inadequate, or is the package not
>> configured right?
>>
>> David> And I wanted to add the corresponding functionality to
>> David> LilyPond-mode next so that one can enter pitches and chords
>> David> into Emacs via MIDI.
>>
>> I'm currently getting MIDI entry of lilypond into emacs via
>> midi-input-mode from .
>
> Not Found
>
> The requested URL /~hlub/uck/software was not found on this server.
>
> Pity: Id have been interested in that.

Found it at 
but I had seen it before.  The separate C utility makes it a harder sell
in my opinion.  It could likely be rewritten to use midi-kbd.el.

What it does do is trying to track the current "tonality".  That's an
interesting idea but requires an editing mode that will _propagate_
corrections in order to work nicely.  Of course, the same will be needed
in order to have automatic note length recognition cooperate nicely with
manual corrections, fixing later durations based on corrections on
earlier ones.

>> It works but has the major disadvantage that it doesn't play the MIDI
>> notes as well as reading them.
>
> The current version of lily-midi.el which I still need to fold into
> the LilyPond repository does not do so either.

You probably mean not as much playing while entering (your MIDI keyboard
should do that) as you mean playing while editing.  midi-kbd.el retains
the full timing information.  So it is prepared for more complex editing
modes that make use of them, the simplest of course being just replay of
the current region exactly as entered (what to do with manual
insertions/corrections?  No idea).  Again, this is not yet done.  And
I'm not quite sure how to best do it: one would likely need to open a
(raw?) MIDI output device for it as well.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-18 Thread Laura Conrad
> "David" == David Kastrup  writes:

David> Huh.  I just committed midi-kbd.el to ELPA, the official
David> Emacs package archive.

That sounded like it would be something I wanted to try, so I listed the
packages available and went to install it.  But it said it depended on
emacs25.  So I installed emacs-snapshot (which is emacs 25.1) from an
unofficial ubuntu repository, and listed the packages available and it
doesn't have midi-kbd.

Is it my emacs installation being inadequate, or is the package not
configured right?

David> And I wanted to add the corresponding functionality to
David> LilyPond-mode next so that one can enter pitches and chords
David> into Emacs via MIDI.

I'm currently getting MIDI entry of lilypond into emacs via
midi-input-mode from .  It
works but has the major disadvantage that it doesn't play the MIDI notes
as well as reading them.  The minor disadvantage is that you have to
proofread carefully, because it's likely to decide that your F#'s are
Gb's, or worse, that your A's are G##'s.

-- 
Laura   (mailto:lcon...@laymusic.org)

(617) 661-8097  233 Broadway, Cambridge, MA 02139   
 

With all these books, as with any on the subject, do not expect to
turn yourself into an expert via the printed word alone.  You can
commit to memory everything Lichine has to say about Gevrey-Chambertin
and still have no idea whether you would like the wine.

Kingsley Amis, _On Drink_


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-18 Thread David Kastrup
Laura Conrad  writes:

>> "David" == David Kastrup  writes:
>
> David> Huh.  I just committed midi-kbd.el to ELPA, the official
> David> Emacs package archive.
>
> That sounded like it would be something I wanted to try,

midi-kbd.el only translates Midi input into Emacs events.  Without any
keybindings on those events, it is useless.

> so I listed the packages available and went to install it.  But it
> said it depended on emacs25.  So I installed emacs-snapshot (which is
> emacs 25.1) from an unofficial ubuntu repository, and listed the
> packages available and it doesn't have midi-kbd.

Uh.  Maybe it uses a different mirror for Emacs packages or something?
midi-kbd is brand-new in ELPA.

Try typing r into the package manager for "refreshing".

> Is it my emacs installation being inadequate, or is the package not
> configured right?
>
> David> And I wanted to add the corresponding functionality to
> David> LilyPond-mode next so that one can enter pitches and chords
> David> into Emacs via MIDI.
>
> I'm currently getting MIDI entry of lilypond into emacs via
> midi-input-mode from .

Not Found

The requested URL /~hlub/uck/software was not found on this server.

Pity: Id have been interested in that.

> It works but has the major disadvantage that it doesn't play the MIDI
> notes as well as reading them.

The current version of lily-midi.el which I still need to fold into the
LilyPond repository does not do so either.

> The minor disadvantage is that you have to proofread carefully,
> because it's likely to decide that your F#'s are Gb's, or worse, that
> your A's are G##'s.

lily-midi.el converts the Midi events according to a "current key".  If
that key is C major, notes are

C C# D Eb E F F# G G# A Bb B

which tries to cover at least melodic A minor.  The scales it stops
working with are melodic E minor (Eb instead of D#) and Eb major (G#
instead of Ab).  If you set your current key differently, this scale is
transposed correspondingly.

The current functionality allows splitting according to Midi channels
(well, I have a Midi accordion) and works reasonably well for entering
whole chords.  It does not try guessing note durations.

And it's nederlands-only right now with regard to note input language.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode and also point-and-click

2015-10-16 Thread Andrew Bernard
No, it was truncated, but in a hard to understand way - quite irregular. But we 
now know that was an artefact of the narrowing issue, and has not occurred 
again. Widening did not help.

Andrew

> On 16 Oct 2015, at 16:45, T. Michael Sommers  wrote:
> 
> When the buffer was apparently being truncated, did you try widening it?  
> Perhaps it had only been narrowed, not truncated.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode and also point-and-click

2015-10-16 Thread David Wright
Quoting Andrew Bernard (andrew.bern...@gmail.com):
> No, it was truncated, but in a hard to understand way - quite irregular. But 
> we
> now know that was an artefact of the narrowing issue, and has not occurred
> again. Widening did not help.

Terms are important here. There's a world of difference between the
appearance (ie presentation) of the buffer being truncated (and even
unrestorable) and the actual contents of the buffer being truncated.
The former is an annoyance, the latter far more serious.

Cheers,
David.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Emacs lilypond-mode and also point-and-click

2015-10-15 Thread Andrew Bernard
Greetings All,

I’m aware that the emacs lilypond-mode needs attention, but I wonder if anybody 
has seen this. When I enter a ‘>’ character to complete a chord, emacs goes 
into narrow mode, which then has to be undone with C-x n w. It’s consistently 
reproducible.

Also, using evince on Ubuntu 15.04 with either Unity or the GNOME 3 Shell, 
after several successful point-and-click redirects, the file in emacs get 
messed up and the source file has to be reloaded.

Does anybody else experience these oddities?

Andrew



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode and also point-and-click

2015-10-15 Thread David Kastrup
Andrew Bernard <andrew.bern...@gmail.com> writes:

> Greetings All,
>
> I’m aware that the emacs lilypond-mode needs attention, but I wonder
> if anybody has seen this. When I enter a ‘>’ character to complete a
> chord, emacs goes into narrow mode, which then has to be undone with
> C-x n w. It’s consistently reproducible.
>
> Also, using evince on Ubuntu 15.04 with either Unity or the GNOME 3
> Shell, after several successful point-and-click redirects, the file in
> emacs get messed up and the source file has to be reloaded.
>
> Does anybody else experience these oddities?

No.

But part 1 is likely to myself having the following rather large setting
in my Emacs:

blink-matching-paren-distance is a variable defined in ‘simple.el’.
Its value is 102400

Documentation:
If non-nil, maximum distance to search backwards for matching open-paren.
If nil, search stops at the beginning of the accessible portion of the 
buffer.

You can customize this variable.

This variable was introduced, or its default value was changed, in
version 23.2 of Emacs.

[back]

What's yours?  This large setting would seem to render harmless (for
files of moderate size) the following piece of code in
LilyPond-blink-matching-paren:

(when blink-matching-paren-distance
  (narrow-to-region
   (max (point-min) (- (point) blink-matching-paren-distance))
   (min (point-max) (+ (point) blink-matching-paren-distance

There does not appear to be anything countering this narrow-to-region.
Good grief.

Point-and-click does not mess up anything here and I don't know why it
should.  Can you give examples of how the files are messed up?

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode and also point-and-click

2015-10-15 Thread David Wright
Quoting Andrew Bernard (andrew.bern...@gmail.com):

> Also, using evince on Ubuntu 15.04 with either Unity or the GNOME 3 Shell, 
> after several successful point-and-click redirects, the file in emacs get 
> messed up and the source file has to be reloaded.

"messed up" is a bit vague. Is it really the buffer (rather than merely
the screeen) that's messed up? ie typing Ctrl-L doesn't tidy it up.

If so, it might be helpful to do the following. When it's messed up,
type Ctrl-X Ctrl-W and write to a file like /tmp/junk
Then run:  diff -wub  /tmp/junk | less
and see what the changes actually are.

(-wb ignores changes of indentation/whitespace, -u gives the unified
view of the two files; leave it out if you prefer the default.)

Incidentally, this is what I did when I first got hit by "narrowing".
I had never encountered this before and thought I'd lost much of my
source file. With relief, I discovered that all was ok. (It's years
since emacs has narrowed on me.)

Cheers,
David.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode and also point-and-click

2015-10-15 Thread T. Michael Sommers

On 10/15/2015 7:24 AM, Andrew Bernard wrote:


I’m aware that the emacs lilypond-mode needs attention, but I wonder
if anybody has seen this. When I enter a ‘>’ character to complete a
chord, emacs goes into narrow mode, which then has to be undone with
C-x n w. It’s consistently reproducible.


The culprit would seem to be this, starting at line 502 in the function 
LilyPond-blink-matching-paren in lilypond-indent.el:


  (when blink-matching-paren-distance
(narrow-to-region
 (max (point-min) (- (point) blink-matching-paren-distance))
 (min (point-max) (+ (point) blink-matching-paren-distance

This narrowing is never undone.

One solution might be to simply comment out this code, but I don't know 
if that might have some undesirable side effects.


Another solution might be to put a (widen) just before the function 
returns.  I think a widen on an un-narrowed buffer has no effect.


I haven't tried either of these, so proceed at your own risk.

--
T.M. Sommers -- tmsomme...@gmail.com -- ab2sb

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode and also point-and-click

2015-10-15 Thread Andrew Bernard
Greetings All,

With the fi, or workaround, for the narrowing problem, in place, the issue I 
reported regarding the emacs buffer being messed up (apologies for my lack of 
technical precision there! The buffer was being truncated to almost half the 
length in a way quite hard to figure out from where to where, and the point 
placed at the end, not on the object in question. The file had to be reloaded.) 
appears to have gone away. Time will tell, but it was happening every six or 
seven edits, and today in a heavy score session it has not occurred.

Andrew



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode and also point-and-click

2015-10-15 Thread Andrew Bernard
Greetings T.M.,

Commenting out these lines fixes the issue.

Thanks! Can some elisp expert have a look at addressing this? For now, I am 
fine, but this must affect others I would think, unless there is something odd 
about my emacs setup, which is very simple.

Should this be reported as a bug?

Andrew.


> On 16 Oct 2015, at 02:03, T. Michael Sommers  wrote:
> 
> The culprit would seem to be this, starting at line 502 in the function 
> LilyPond-blink-matching-paren in lilypond-indent.el:
> 
>  (when blink-matching-paren-distance
>   (narrow-to-region
>(max (point-min) (- (point) blink-matching-paren-distance))
>(min (point-max) (+ (point) blink-matching-paren-distance
> 
> This narrowing is never undone.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode and also point-and-click

2015-10-15 Thread T. Michael Sommers

On 10/15/2015 10:28 PM, Andrew Bernard wrote:


With the fi, or workaround, for the narrowing problem, in place, the
issue I reported regarding the emacs buffer being messed up
(apologies for my lack of technical precision there! The buffer was
being truncated to almost half the length in a way quite hard to
figure out from where to where, and the point placed at the end, not
on the object in question. The file had to be reloaded.) appears to
have gone away. Time will tell, but it was happening every six or
seven edits, and today in a heavy score session it has not occurred.


When the buffer was apparently being truncated, did you try widening it? 
 Perhaps it had only been narrowed, not truncated.


--
T.M. Sommers -- tmsomme...@gmail.com -- ab2sb

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode and also point-and-click

2015-10-15 Thread Steve Lacy
On Thu, Oct 15, 2015 at 8:03 AM, T. Michael Sommers <tmsomme...@gmail.com>
wrote:

> On 10/15/2015 7:24 AM, Andrew Bernard wrote:
>
>>
>> I’m aware that the emacs lilypond-mode needs attention, but I wonder
>> if anybody has seen this. When I enter a ‘>’ character to complete a
>> chord, emacs goes into narrow mode, which then has to be undone with
>> C-x n w. It’s consistently reproducible.
>>
>
> The culprit would seem to be this, starting at line 502 in the function
> LilyPond-blink-matching-paren in lilypond-indent.el:
>
>   (when blink-matching-paren-distance
> (narrow-to-region
>  (max (point-min) (- (point) blink-matching-paren-distance))
>  (min (point-max) (+ (point) blink-matching-paren-distance



>
> This narrowing is never undone.
>

Agreed, and the canonical way to solve this is by adding a
"(save-restriction ..." block around this section.  Something like this
(untested):

  (when blink-matching-paren-distance
> (save-restriction (narrow-to-region
>  (max (point-min) (- (point) blink-matching-paren-distance))
>  (min (point-max) (+ (point) blink-matching-paren-distance)




>
> One solution might be to simply comment out this code, but I don't know if
> that might have some undesirable side effects.
>
> Another solution might be to put a (widen) just before the function
> returns.  I think a widen on an un-narrowed buffer has no effect.
>
> I haven't tried either of these, so proceed at your own risk.
>
> --
> T.M. Sommers -- tmsomme...@gmail.com -- ab2sb
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode and also point-and-click

2015-10-15 Thread David Kastrup
Steve Lacy <sl...@slacy.com> writes:

> On Thu, Oct 15, 2015 at 8:03 AM, T. Michael Sommers <tmsomme...@gmail.com>
> wrote:
>
>> On 10/15/2015 7:24 AM, Andrew Bernard wrote:
>>
>>>
>>> I’m aware that the emacs lilypond-mode needs attention, but I wonder
>>> if anybody has seen this. When I enter a ‘>’ character to complete a
>>> chord, emacs goes into narrow mode, which then has to be undone with
>>> C-x n w. It’s consistently reproducible.
>>>
>>
>> The culprit would seem to be this, starting at line 502 in the function
>> LilyPond-blink-matching-paren in lilypond-indent.el:
>>
>>   (when blink-matching-paren-distance
>> (narrow-to-region
>>  (max (point-min) (- (point) blink-matching-paren-distance))
>>  (min (point-max) (+ (point) blink-matching-paren-distance
>
>
>
>>
>> This narrowing is never undone.
>>
>
> Agreed, and the canonical way to solve this is by adding a
> "(save-restriction ..." block around this section.  Something like this
> (untested):
>
>   (when blink-matching-paren-distance
>> (save-restriction (narrow-to-region
>>  (max (point-min) (- (point) blink-matching-paren-distance))
>>  (min (point-max) (+ (point) blink-matching-paren-distance)

That would be completely nonsensical.  The save-restriction call, if
anything, would need to be around the whole function body or likely
better the part doing the search, with the restriction getting lifted
again before making the display.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-14 Thread David Kastrup
Andrew Bernard  writes:

> Hi David,
>
> Works very nicely. A sincere thank you for your work.
>
> Now I can have a .dir-locals.el as follows:
>
> ;;; Directory Local Variables
> ;;; For more information see (info "(emacs) Directory Variables")
>
> ((LilyPond-mode
>   (LilyPond-lilypond-command . "lilypond -I ~/lib/lilypond -I
> ~/lib/openilylib")))
>
> This sets the include path for lilypond for the project in the given
> directory, and behold, C-c C-l runs lilypond and compiles the source,
> without needing absolute paths for includes.
>
> In LilyPond-mode, with C-c C-s able to run evince and have point and
> click feedback directly to the position in an emacsclient, I now have
> a dream lilypond coding environment on Ubuntu.

Huh.  I just committed midi-kbd.el to ELPA, the official Emacs package
archive.  And I wanted to add the corresponding functionality to
LilyPond-mode next so that one can enter pitches and chords into Emacs
via MIDI.

But it should be mostly inconspicuous if you don't use it.

But at any rate: the indentation and highlighting of LilyPond-mode is
not at the standards of Emacs.  That requires a lot of love to bring up
to par.  As do entry and navigation methods.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Emacs lilypond-mode comment indenting

2015-10-14 Thread Andrew Bernard
Would there be any simple way to make the emacs lilypond mode indent % comments 
to the same level as the code, and not over to the right as it currently does? 
I am afraid I am not an elisp hacker.

Andrew



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode comment indenting

2015-10-14 Thread David Wright
Quoting Andrew Bernard (andrew.bern...@gmail.com):
> Would there be any simple way to make the emacs lilypond mode indent % 
> comments to the same level as the code, and not over to the right as it 
> currently does? I am afraid I am not an elisp hacker.

I use % for trailing comments and %% for others. The latter ones
indent to the same level as the line they follow.

Cheers,
David.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode comment indenting

2015-10-14 Thread Andrew Bernard
Problem solved. I think this mode comes from AUCTeX mode, so that usage 
probably arises there.

Andrew

> On 15 Oct 2015, at 11:59, David Wright  wrote:
> 
> I use % for trailing comments and %% for others. The latter ones
> indent to the same level as the line they follow.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-14 Thread Johan Vromans
On Wed, 14 Oct 2015 10:54:49 +1100
Andrew Bernard  wrote:

> [...] I now have a
> dream lilypond coding environment on Ubuntu.

Alternatively, you could try
http://www.squirrel.nl/pub/xfer/LPminiIDE.zip .

-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode comment indenting

2015-10-14 Thread Paul Scott
On Wed, Oct 14, 2015 at 07:59:00PM -0500, David Wright wrote:
> Quoting Andrew Bernard (andrew.bern...@gmail.com):
> > Would there be any simple way to make the emacs lilypond mode indent % 
> > comments to the same level as the code, and not over to the right as it 
> > currently does? I am afraid I am not an elisp hacker.
> 
> I use % for trailing comments and %% for others. The latter ones
> indent to the same level as the line they follow.
> 
> Cheers,
> David.

Thank you,

Paul



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-13 Thread Johan Vromans
On Mon, 12 Oct 2015 09:13:28 +0200
Urs Liska  wrote:

> The idea is that many users will have a default set of libraries they
> usually want to have available.

I have always wondered why LilyPond does not have an environment setting
for its library path, as most other tools do.

I have a collection of templates and snippets (include files) that I always
use, so I wrote a small wrapper script "lilypond" that boils down to:

  #!/bin/sh

  exec /usr/bin/lilypond \
--include=. \
--include=$HOME/lib/lilypond/ly \
--include=$HOME/lib/lilypond \
${1+"$@"}

This script is in my personal $HOME/bin directory, which is always first in
my $PATH.

-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-13 Thread David Kastrup
Andrew Bernard  writes:

> Hi David,
>
> Really helpful advice. Except I need a hint or two.
>
> If I create .dir-locals.el thus:
>
> ((LilyPond-mode
>   (LilyPond-lilypond-command . "lilypond -I /tmp")))
>
> when running C-c C-l then only the command ‘lilypond’ is run - the
> customisation is ignored. Do you have to customise the elisp
> definition in entirety?
>
> The idea is to just add -I for the include paths for the libraries of
> code that I have created.

This is rather awkward: all the commands refer to LilyPond-command-menu,
and LilyPond-command-menu evaluates the value of
LilyPond-lilypond-command when first loaded but not afterwards.  So any
subsequent change or customization is ignored until Emacs is restarted,
but directory locals are applied when a mode is loaded and consequently
will always come too late.  I'll take a look at the code and try fixing
it.  Since the code was lifted from a very early version of AUCTeX,
making it work like AUCTeX should likely do the trick.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-13 Thread David Kastrup
Andrew Bernard  writes:

> Thank you David!
>
> I just figured out the same logic. I see why you are using a makefile
> and M-x compile.
>
> But it would be good to have this, as I often compile a lot of
> different files that I don’t want to write makefile targets for.

Issue 4636 in our issue tracker.  Do you have a chance to try the patch
at  ?

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-13 Thread Andrew Bernard
Hi David,

Works very nicely. A sincere thank you for your work.

Now I can have a .dir-locals.el as follows:

;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((LilyPond-mode
  (LilyPond-lilypond-command . "lilypond -I ~/lib/lilypond -I 
~/lib/openilylib")))

This sets the include path for lilypond for the project in the given directory, 
and behold, C-c C-l runs lilypond and compiles the source, without needing 
absolute paths for includes.

In LilyPond-mode, with C-c C-s able to run evince and have point and click 
feedback directly to the position in an emacsclient, I now have a dream 
lilypond coding environment on Ubuntu.

Andrew

> On 14 Oct 2015, at 00:19, David Kastrup  wrote:
> 
> Issue 4636 in our issue tracker.  Do you have a chance to try the patch
> at  ?
> 
> -- 
> David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-12 Thread Urs Liska


Am 12.10.2015 um 08:08 schrieb David Kastrup:
> Andrew Bernard <andrew.bern...@gmail.com> writes:
>
>> Now that my current score has become large, Frescobaldi I am sorry to
>> say the text editor it provides runs like molasses on Ubuntu
>> 15.04. Hence I am abandoning it for emacs.
>>
>> With the emacs lilypond-mode, C-c C-l invokes lilypond on the
>> buffer. But I need to specify directories to search for included
>> files. How do you configure this in emacs?
> I tend to just use M-x compile RET and specify my command manually.
>
> You can also use M-x add-dir-local-variable RET
> in order to customize LilyPond-lilypond-command for one
> directory/subdirectory.  There are also file-local variables you can set
> at the end of a file using a variable block if you need this setting
> just for a single file.
>
> Of course you can also use
> M-x customize-variable RET LilyPond-lilypond-command RET
> to set this globally, but it would likely be a nuisance.  Doing it
> dir-locally is probably the most convenient option.
>

Would there be a simple way to define a set of include dirs and make
that easily (i.e. with a single command) available on directory level?
The idea is that many users will have a default set of libraries they
usually want to have available. If saving them globally is a nuisance
(could you please elaborate a bit on this?) it would be still annoying
to add a whole set of include paths to any given project directory.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-12 Thread David Kastrup
Andrew Bernard <andrew.bern...@gmail.com> writes:

> Now that my current score has become large, Frescobaldi I am sorry to
> say the text editor it provides runs like molasses on Ubuntu
> 15.04. Hence I am abandoning it for emacs.
>
> With the emacs lilypond-mode, C-c C-l invokes lilypond on the
> buffer. But I need to specify directories to search for included
> files. How do you configure this in emacs?

I tend to just use M-x compile RET and specify my command manually.

You can also use M-x add-dir-local-variable RET
in order to customize LilyPond-lilypond-command for one
directory/subdirectory.  There are also file-local variables you can set
at the end of a file using a variable block if you need this setting
just for a single file.

Of course you can also use
M-x customize-variable RET LilyPond-lilypond-command RET
to set this globally, but it would likely be a nuisance.  Doing it
dir-locally is probably the most convenient option.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode

2015-10-12 Thread Andrew Bernard
Hi David,

Really helpful advice. Except I need a hint or two.

If I create .dir-locals.el thus:

((LilyPond-mode
  (LilyPond-lilypond-command . "lilypond -I /tmp")))

when running C-c C-l then only the command ‘lilypond’ is run - the 
customisation is ignored. Do you have to customise the elisp definition in 
entirety?

The idea is to just add -I for the include paths for the libraries of code that 
I have created.

Andrew


> On 12 Oct 2015, at 17:08, David Kastrup  wrote:
> 
> You can also use M-x add-dir-local-variable RET
> in order to customize LilyPond-lilypond-command for one
> directory/subdirectory.  

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Emacs lilypond-mode

2015-10-11 Thread Andrew Bernard
Now that my current score has become large, Frescobaldi I am sorry to say the 
text editor it provides runs like molasses on Ubuntu 15.04. Hence I am 
abandoning it for emacs.

With the emacs lilypond-mode, C-c C-l invokes lilypond on the buffer. But I 
need to specify directories to search for included files. How do you configure 
this in emacs?

Andrew



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs Lilypond-mode: view PDF

2014-09-25 Thread Jacques Menu
Hello Antonio,

How did you install xpdf? The file can be at different places according to that.

Do you find it with the regular file search of the Finder? Some folders such as 
/sw (MacPorts) might not be searched, though.

JM

Le 25 sept. 2014 à 03:17, Antonio Gervasoni agervas...@gmail.com a écrit :

 Hi all,
 
 I've just figured out how to get Emacs to work with Lilypond in OSX.
 Everything works fine except the command for viewing the pdf output (C-c
 C-s). When I run it I get this:
 
 xpdf /Users/Antonio/Desktop/Emacs/Test.pdf
 /bin/bash: xpdf: command not found
 
 Compilation exited abnormally with code 127 at Wed Sep 24 20:08:44
 
 Xpdf is installed. My guess is that Emacs can't find the path to it but I
 don't know how to set it up.
 
 Anyone knows how to solve this?
 
 Antonio
 
 
 
 
 --
 View this message in context: 
 http://lilypond.1069038.n5.nabble.com/Emacs-Lilypond-mode-view-PDF-tp166776.html
 Sent from the User mailing list archive at Nabble.com.
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs Lilypond-mode: view PDF

2014-09-25 Thread Jacques Menu
Hello Antonio,

If the Grab utility supplied by Mac OS X is fine, you can use the following 
path to launch it:

/Applications/Utilities/Grab.app/Contents/MacOS/Grab 

JM

Am 25.09.2014 um 08:35:30 schrieb Jacques Menu imj-muz...@bluewin.ch:

 Hello Antonio,
 
 How did you install xpdf? The file can be at different places according to 
 that.
 
 Do you find it with the regular file search of the Finder? Some folders such 
 as /sw (MacPorts) might not be searched, though.
 
 JM
 
 Le 25 sept. 2014 à 03:17, Antonio Gervasoni agervas...@gmail.com a écrit :
 
 Hi all,
 
 I've just figured out how to get Emacs to work with Lilypond in OSX.
 Everything works fine except the command for viewing the pdf output (C-c
 C-s). When I run it I get this:
 
 xpdf /Users/Antonio/Desktop/Emacs/Test.pdf
 /bin/bash: xpdf: command not found
 
 Compilation exited abnormally with code 127 at Wed Sep 24 20:08:44
 
 Xpdf is installed. My guess is that Emacs can't find the path to it but I
 don't know how to set it up.
 
 Anyone knows how to solve this?
 
 Antonio
 
 
 
 
 --
 View this message in context: 
 http://lilypond.1069038.n5.nabble.com/Emacs-Lilypond-mode-view-PDF-tp166776.html
 Sent from the User mailing list archive at Nabble.com.
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs Lilypond-mode: view PDF

2014-09-25 Thread Antonio Gervasoni
Hi Jacques!

First, I tried following the installation instructions inside the tar.gz
file that is provided for Mac at the xpdf website. The instructions I
followed were these:

1. Copy the executables (xpdf, pdftotext, etc.) to to /usr/local/bin.

2. Copy the man pages (*.1 and *.5) to /usr/local/man/man1 and
   /usr/local/man/man5.

3. Copy the sample-xpdfrc file to /usr/local/etc/xpdfrc.  You'll
   probably want to edit its contents (as distributed, everything is
   commented out) -- see xpdfrc(5) for details.

As that didn't seem to work, I removed everything and then tried the
pre-compiled binary (.dmg) that can also be found there. However, when I
looked inside the folders, I found the executables had not been installed.
Therefore, I removed all the files again so now everything is like it was
before my first attempt.

This morning I have re-read the installation instructions copied above and
discovered something intriguing. The first point says Copy the executables
(xpdf, pdftotext, etc.)... however, there is no xpdf executable inside the
tar.gz file. A quick search on Google shows that other users have had the
same problem (even when compiling xpdf themselves). Could that be the source
of my problem?

For the moment, I found a workaround. I opened the Lilypond-mode.el file and
changed xpdf for open on line 346. This way, Preview is being called
instead of xpdf.

Any suggestions?

Best,

Antonio



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Emacs-Lilypond-mode-view-PDF-tp166776p166806.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs Lilypond-mode: view PDF

2014-09-25 Thread Jacques Menu
Hello Antonio,

Actually yes, the dmg tells it contains only pdf* tools, not xpdf.

I did the installation with MacPorts (http://www.macports.org/install.php), 
first two steps only needed since I don’t use Xcode daily:


m...@dynamic.wline.6rd.res.cust.swisscom.ch:~  sudo port install xpdf
Password:
Warning: port definitions are more than two weeks old, consider updating them 
by running 'port selfupdate'.
Error: It seems you have not accepted the Xcode license; most ports will fail 
to build.
Error: Agree to the license by opening Xcode or running `sudo xcodebuild 
-license'.
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port xpdf failed

m...@dynamic.wline.6rd.res.cust.swisscom.ch:~  sudo xcodebuild -license


You have not agreed to the Xcode license agreements. You must agree to both 
license agreements below in order to use Xcode.

Hit the Enter key to view the license agreements at 
'/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'

… … …

By typing 'agree' you are agreeing to the terms of the software license 
agreements. Type 'print' to print them or anything else to cancel, [agree, 
print, cancel] agree

You can view the license agreements in Xcode's About Box, or at 
/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf

m...@dynamic.wline.6rd.res.cust.swisscom.ch:~  sudo port install xpdf
… … …

m...@dynamic.wline.6rd.res.cust.swisscom.ch:~  which xpdf
/opt/local/bin/xpdf


Le 25 sept. 2014 à 18:24, Antonio Gervasoni agervas...@gmail.com a écrit :

 Hi Jacques!
 
 First, I tried following the installation instructions inside the tar.gz
 file that is provided for Mac at the xpdf website. The instructions I
 followed were these:
 
 1. Copy the executables (xpdf, pdftotext, etc.) to to /usr/local/bin.
 
 2. Copy the man pages (*.1 and *.5) to /usr/local/man/man1 and
   /usr/local/man/man5.
 
 3. Copy the sample-xpdfrc file to /usr/local/etc/xpdfrc.  You'll
   probably want to edit its contents (as distributed, everything is
   commented out) -- see xpdfrc(5) for details.
 
 As that didn't seem to work, I removed everything and then tried the
 pre-compiled binary (.dmg) that can also be found there. However, when I
 looked inside the folders, I found the executables had not been installed.
 Therefore, I removed all the files again so now everything is like it was
 before my first attempt.
 
 This morning I have re-read the installation instructions copied above and
 discovered something intriguing. The first point says Copy the executables
 (xpdf, pdftotext, etc.)... however, there is no xpdf executable inside the
 tar.gz file. A quick search on Google shows that other users have had the
 same problem (even when compiling xpdf themselves). Could that be the source
 of my problem?
 
 For the moment, I found a workaround. I opened the Lilypond-mode.el file and
 changed xpdf for open on line 346. This way, Preview is being called
 instead of xpdf.
 
 Any suggestions?
 
 Best,
 
 Antonio
 
 
 
 --
 View this message in context: 
 http://lilypond.1069038.n5.nabble.com/Emacs-Lilypond-mode-view-PDF-tp166776p166806.html
 Sent from the User mailing list archive at Nabble.com.
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs Lilypond-mode: view PDF

2014-09-25 Thread Antonio Gervasoni
Thank you very much Jacques! It never occurred to me to install it via
Macports. I did it and now it works as expected. I still have to install the
tools manually, right?

One final question, do I have to go through all the trouble of installing
Macports and Xcode on my student's Mac so that I can then build the xpdf
executable there or can I simply copy the one in my machine and put it
manually on his computer?

Thanks again for all your help!

Antonio



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Emacs-Lilypond-mode-view-PDF-tp166776p166816.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Emacs Lilypond-mode: view PDF

2014-09-24 Thread Antonio Gervasoni
Hi all,

I've just figured out how to get Emacs to work with Lilypond in OSX.
Everything works fine except the command for viewing the pdf output (C-c
C-s). When I run it I get this:

xpdf /Users/Antonio/Desktop/Emacs/Test.pdf
/bin/bash: xpdf: command not found

Compilation exited abnormally with code 127 at Wed Sep 24 20:08:44

Xpdf is installed. My guess is that Emacs can't find the path to it but I
don't know how to set it up.

Anyone knows how to solve this?

Antonio




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Emacs-Lilypond-mode-view-PDF-tp166776.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


emacs lilypond-mode installation

2013-05-28 Thread Kevin Barry

Dear LilyPond users,

A friend recently persuaded me to try emacs for text editing (LaTeX + 
LilyPond), however I can't quite understand the instructions for 
installing lilypond-mode, as outlined here:

http://lilypond.org/doc/v2.16/Documentation/usage/text-editor-support

'An Emacs mode for entering music and running LilyPond is contained in 
the source archive in the ‘elisp’ directory. Do make install to install 
it to elispdir.'


What exactly is the source archive?  The download seems to be a shell 
script.  Does it mean the lilypond folder in /usr/local/?  I did find a 
folder called elisp (actually there seem to be several on my computer 
since guile 2.0 comes with Ubuntu) in 
/usr/local/lilypond/usr/share/guile/1.8/lang/elisp/ but doing a make 
install only gave an error ('make: *** No rule to make target `install'. 
 Stop.'). Should I be looking somewhere else?  There is an emacs folder 
in /usr/local/lilypond/usr/share/emacs/ which seems to contain some of 
the files mentioned in the instructions in the documentation, but I 
don't understand them: there's no folder anywhere on my computer called 
elispdir, and I don't know what a load-path is.  Do I just need to add a 
line to the ~/.emacs file pointing to this folder?


K.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode installation

2013-05-28 Thread Tim McNamara
On May 28, 2013, at 1:19 PM, Kevin Barry wrote:
 Dear LilyPond users,
 
 A friend recently persuaded me to try emacs for text editing (LaTeX + 
 LilyPond), however I can't quite understand the instructions for installing 
 lilypond-mode, as outlined here:
 http://lilypond.org/doc/v2.16/Documentation/usage/text-editor-support
 
 'An Emacs mode for entering music and running LilyPond is contained in the 
 source archive in the ‘elisp’ directory. Do make install to install it to 
 elispdir.'
 
 What exactly is the source archive?  The download seems to be a shell script. 
  Does it mean the lilypond folder in /usr/local/?  I did find a folder called 
 elisp (actually there seem to be several on my computer since guile 2.0 comes 
 with Ubuntu) in /usr/local/lilypond/usr/share/guile/1.8/lang/elisp/ but doing 
 a make install only gave an error ('make: *** No rule to make target 
 `install'.  Stop.'). Should I be looking somewhere else?  There is an emacs 
 folder in /usr/local/lilypond/usr/share/emacs/ which seems to contain some of 
 the files mentioned in the instructions in the documentation, but I don't 
 understand them: there's no folder anywhere on my computer called elispdir, 
 and I don't know what a load-path is.  Do I just need to add a line to the 
 ~/.emacs file pointing to this folder?

I added the following to my .emacs file:

(autoload 'LilyPond-mode lilypond-mode LilyPond Editing Mode t)
(add-to-list 'auto-mode-alist '(\\.ly$ . LilyPond-mode))
(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))

I haven't used Emacs in a long time; you might also want to add:

(add-to-list 'auto-mode-alist '(\\.ily$ . LilyPond-mode))

It's been a very long time since I used Emacs for anything and I can't remember 
what else I did to make LilyPond work with it.  It didn't work for me today; I 
vaguely recall moving some files into site-lisp inside the file hierarchy for 
Emacs.  And I remember it working fine; as I recall, messages from LilyPond 
were sent to the scratch buffer.

Sorry to not be more helpful.

Tim
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode installation

2013-05-28 Thread Hwaen Ch'uqi
Many greetings,
 Actually, I, an ubuntu user, had the same problems when
installing LilyPond from the shell script. The emacs subdirectory
which you found in the LilyPond directory contains a folder called, I
believe, lisp The files in this folder are what you especially need.
The load-path is the set of directories which emacs initially searches
in order to know which packages to immediately call. You can find
these list of directories by calling `C-h v' and typing load-path.
Choose one, and move the files to that directory. (You may need to do
this as root.) Then, add the following lines to your .emacs file:

(autoload 'LilyPond-mode lilypond-mode)
(setq auto-mode-alist
  (cons '(\\.ly$ . LilyPond-mode) auto-mode-alist))

(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))

 This code will also ensure that LilyPond-mode will be called
whenever emacs visits a file with a .ly extension. I hope this helps.
Hwaen Ch'uqi


On 5/28/13, Kevin Barry barr...@tcd.ie wrote:
 Dear LilyPond users,

 A friend recently persuaded me to try emacs for text editing (LaTeX +
 LilyPond), however I can't quite understand the instructions for
 installing lilypond-mode, as outlined here:
 http://lilypond.org/doc/v2.16/Documentation/usage/text-editor-support

 'An Emacs mode for entering music and running LilyPond is contained in
 the source archive in the ‘elisp’ directory. Do make install to install
 it to elispdir.'

 What exactly is the source archive?  The download seems to be a shell
 script.  Does it mean the lilypond folder in /usr/local/?  I did find a
 folder called elisp (actually there seem to be several on my computer
 since guile 2.0 comes with Ubuntu) in
 /usr/local/lilypond/usr/share/guile/1.8/lang/elisp/ but doing a make
 install only gave an error ('make: *** No rule to make target `install'.
   Stop.'). Should I be looking somewhere else?  There is an emacs folder
 in /usr/local/lilypond/usr/share/emacs/ which seems to contain some of
 the files mentioned in the instructions in the documentation, but I
 don't understand them: there's no folder anywhere on my computer called
 elispdir, and I don't know what a load-path is.  Do I just need to add a
 line to the ~/.emacs file pointing to this folder?

 K.

 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Compilation errors with Emacs lilypond-mode

2011-12-05 Thread Thorsten
Hi List,
on win7 with emacs 23.2.1 and freshly installed lilypond-mode version 2.5.20 
plus lilypond version 2.14.2 and the following truly minimal file


\relative c' {
  c d e f g a b c
}


I get compilation errors within Emacs (doing C-c C-l), but not when I drag the 
file on the desktop over the lilypond symbol. 

at Line 1252 in compile.el (in defun compilation-start)


(insert -*- mode:  name-of-mode
; default-directory:  (prin1-to-string default-directory)
 -*-\n
(format %s started at %s\n\n
mode-name
(substring (current-time-string) 0 19))
L 1252  -  command \n)

I get the following error:
File mode specification error: (invalid-regexp Unmatched ( or \\()
if: Invalid regexp: Unmatched ( or \\(

the variable 'command' hold the following string when the error occurs:
lilypond \c:/Users/tj2/Desktop/lily-test\.ly
that works just find on a windows command prompt. 

TIA for any hints
cheers
Thorsten



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Compilation errors with Emacs lilypond-mode

2011-12-05 Thread Thorsten
Thorsten quintfall at gmail.com writes:

 on win7 with emacs 23.2.1 and freshly installed lilypond-mode version 2.5.20 
 plus lilypond version 2.14.2 and the following truly minimal file
 
 \relative c' {
   c d e f g a b c
 }
 
 I get compilation errors within Emacs (doing C-c C-l), but not when I drag 
 the 
 file on the desktop over the lilypond symbol. 
 

Ok, after digging around quite some time I decided to download the actual Emacs 
24 pretest for windows and give it a try - and everything works like are charme 
now (and hopefully tomorrow too).

So my problem really seems to be a bug in the Emacs file compile.el in version 
23.2.1, unrelated to LilyPond and lilypond-mode. 





___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Dumb Emacs lilypond-mode question

2010-03-05 Thread Arjan Bos

On 28 feb 2010, at 08:11, James Bailey wrote:

 If I remember correctly, GUI apps don't by default load your $PATH, there's a 
 trick somewhere to get them to do it, I just don't remember where or how. But 
 that may be what you need.

The trick is not very simple. To have full control over your environment 
variables, like $PATH,  you need the file environment.plist in the ~/.MacOSX 
directory.

Here's my environment.plist. Please adjust it to your settings, because using 
it unmodified is asking for trouble. After changing it, you need to log out an 
log in to effectuate those changes.


environment.plist
Description: Binary data


However, this method can interfere with desktop apps that want some default 
library, instead one on your modified path. So what I do most of the time is to 
open a Terminal.app and issue the `open /Applications/Emacs.app' command. This 
gives me a GUI Emacs with terminal environment.


HTH,
Arjan

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Dumb Emacs lilypond-mode question

2010-03-05 Thread Arjan Bos

On 28 feb 2010, at 06:46, Tim McNamara wrote:

 I've had lilypond-mode working in Emacs for a year now, using Carbon Emacs on 
 Mac OS X 10.4.  Works great, kuds to whomever wrote the mode.  I just built 
 the latest Emacs 23.1 to give it a try; it initially didn't work with 
 Lilypond at all until I remembered I had to add the lilypond-mode .el files 
 to site-lisp inside Emacs.app.  So, did that and lilypond-mode is 
 automatically loaded when I open a .ly file.  Yay.  Everything looks fine, 
 syntax coloring works, etc.
 
 However, I can't compile.  C-c C-l results in Compilation exited abnormally 
 with code 127 (paraphrasing from memory here; there's also a /bin/bash 
 complaint too).  Interestingly C-c C-s launches the designated PDF viewer 
 (Preview) just fine, if I open a .ly file that has already been compiled and 
 has a rendered PDF already.
 
 This is not a new issue, when I tried to set up Carbon Emacs about a year ago 
 I had the same problem... but I can't remember the fix and hence that is the 
 dumb part of my question. I haven't been able to track the fix down in the 
 archives of the lilypond-user list, which is where I got the fix last year 
 IIRC.  Can anybody point me in the right direction?

Tim,

You can also customize Lilypond `M-x customize-group Lilypond' and change the 
`Lilypond lilypond Command' to something on your GUI path.

HTH,
Arjan

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Dumb Emacs lilypond-mode question

2010-02-27 Thread Tim McNamara
I've had lilypond-mode working in Emacs for a year now, using Carbon  
Emacs on Mac OS X 10.4.  Works great, kuds to whomever wrote the  
mode.  I just built the latest Emacs 23.1 to give it a try; it  
initially didn't work with Lilypond at all until I remembered I had  
to add the lilypond-mode .el files to site-lisp inside Emacs.app.   
So, did that and lilypond-mode is automatically loaded when I open  
a .ly file.  Yay.  Everything looks fine, syntax coloring works, etc.


However, I can't compile.  C-c C-l results in Compilation exited  
abnormally with code 127 (paraphrasing from memory here; there's  
also a /bin/bash complaint too).  Interestingly C-c C-s launches the  
designated PDF viewer (Preview) just fine, if I open a .ly file that  
has already been compiled and has a rendered PDF already.


This is not a new issue, when I tried to set up Carbon Emacs about a  
year ago I had the same problem... but I can't remember the fix and  
hence that is the dumb part of my question. I haven't been able to  
track the fix down in the archives of the lilypond-user list, which  
is where I got the fix last year IIRC.  Can anybody point me in the  
right direction?


BTW, my copy of Carbon Emacs with lilypond-mode still works fine, so  
that's the easy workaround.  This also suggests to me that it is not  
a problem in my .emacs file since that is the same for both Emacsen.   
I have some vague recollection of editing a particular file, just not  
*which* file.



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Dumb Emacs lilypond-mode question

2010-02-27 Thread James Bailey
If I remember correctly, GUI apps don't by default load your $PATH,  
there's a trick somewhere to get them to do it, I just don't remember  
where or how. But that may be what you need.


On 28.02.2010, at 06:46, Tim McNamara wrote:

I've had lilypond-mode working in Emacs for a year now, using  
Carbon Emacs on Mac OS X 10.4.  Works great, kuds to whomever wrote  
the mode.  I just built the latest Emacs 23.1 to give it a try; it  
initially didn't work with Lilypond at all until I remembered I had  
to add the lilypond-mode .el files to site-lisp inside Emacs.app.   
So, did that and lilypond-mode is automatically loaded when I open  
a .ly file.  Yay.  Everything looks fine, syntax coloring works, etc.


However, I can't compile.  C-c C-l results in Compilation exited  
abnormally with code 127 (paraphrasing from memory here; there's  
also a /bin/bash complaint too).  Interestingly C-c C-s launches  
the designated PDF viewer (Preview) just fine, if I open a .ly file  
that has already been compiled and has a rendered PDF already.


This is not a new issue, when I tried to set up Carbon Emacs about  
a year ago I had the same problem... but I can't remember the fix  
and hence that is the dumb part of my question. I haven't been  
able to track the fix down in the archives of the lilypond-user  
list, which is where I got the fix last year IIRC.  Can anybody  
point me in the right direction?


BTW, my copy of Carbon Emacs with lilypond-mode still works fine,  
so that's the easy workaround.  This also suggests to me that it is  
not a problem in my .emacs file since that is the same for both  
Emacsen.  I have some vague recollection of editing a particular  
file, just not *which* file.



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: master file in emacs lilypond mode

2010-02-18 Thread Laura Conrad
 moboyle79 == moboyle79  moboyl...@hotmail.com writes:

moboyle79 At the bottom of the file being edited, put

moboyle79 %%% Local Variables: 
moboyle79 %%% LilyPond-master-file: SomeMasterFileName.ly
moboyle79 %%% End: 

Thanks, this works, and is exactly what I wanted to know.

-- 
Laura   (mailto:lcon...@laymusic.org)
(617) 661-8097  233 Broadway, Cambridge, MA 02139   
http://www.laymusic.org/ http://www.serpentpublications.org

America, where you're free to say anything you want, and you'd better
not say what you're not supposed to!

Tommy Smothers, quoted by Cory Doctorow on the Boing Boing blog


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-06-02 Thread Thomas
Moin Helge,
thanks for the tip ... I'm still thinking about that 
at least now I have some direction where to look for
the error
cheers
thomas

Helge Kruse helge.kruse-nos...@gmx.net schrieb im Newsbeitrag 
news:4a237fba.4080...@gmx.net...
 Moin Thomas,

 Error codes are created by the operating system and reported by the 
 application. The error code may be dependent on the context.

 The context that you reported looks like a CreateFile 
 http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx context. In 
 this case it means ERROR_FILE_NOT_FOUND 
 http://msdn.microsoft.com/en-us/library/ms681382.aspx;, the system cannot 
 find the file specified. That's in contrast to error code 3 
 ERROR_PATH_NOT_FOUND, so only your file name is incorrect.

 Regards,
 Helge

 Thomas wrote:
 PS
 somebody out there must know what error code 2 in the lilypond-context 
 means ... I even searched the .el files, but no result
 or is this an emacs error? would be at least interesting, if not helpfull 
 to find that out...
 cheers
 thomas ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-06-01 Thread Helge Kruse

Moin Thomas,

Error codes are created by the operating system and reported by the 
application. The error code may be dependent on the context.


The context that you reported looks like a CreateFile 
http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx context. 
In this case it means ERROR_FILE_NOT_FOUND 
http://msdn.microsoft.com/en-us/library/ms681382.aspx;, the system 
cannot find the file specified. That's in contrast to error code 3 
ERROR_PATH_NOT_FOUND, so only your file name is incorrect.


Regards,
Helge

Thomas wrote:

PS
somebody out there must know what error code 2 in the lilypond-context 
means ... I even searched the .el files, but no result
or is this an emacs error? would be at least interesting, if not helpfull to 
find that out...

cheers
thomas 






___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-31 Thread Thomas
Hallo,
thanks to everybody for the help...I now compile the .lytex file on the 
command line with lilypond-book (that works) and then use the resulting .tex 
file in emacs ... not perfect, but finally I can start working with 
latex/lilypond...
BTW ... I found a way to participate in this mailinglist using 
outlook-express as a newsreader, see the helpful article below . But only 
one out of three of my postings comes through ... they seem to have a tough 
spam-filter at gmane...
cheers
thomas

GMane: read mailing lists via news readers
this is a great find via the win-tech off topic mailing list:
subscribe to mailing lists - from your newsreader!
how? www.gmane.org   allows subscribing to a mailing list but instead of 
getting it by email - you get it via any NNTP reader. This is cool because 
now Instead of getting the win-tech-off-topic as emails in outlook I can 
read it through outlook express or 40tude dialog (my favorite news agent) 
using the address:
I use the gmane news server: news.gmane.org
then I subscribe to the group: gmane.comp.windows.off-topic
also - for the Nunit developers mailing list: 
gmane.comp.windows.dotnet.nunit.deve

do you want a mailing list that is not there? simply add it to gmane and 
subscribe to it via news reader. very cool. very nice.


Henning Plumeyer h.plume...@web.de schrieb im Newsbeitrag 
news:op.uuppf4e0cej...@schuplu...
 Am 30.05.2009, 00:05 Uhr, schrieb Graham Percival 
 gra...@percival-music.ca:

 lilypond-book c:/Dokumente und Einstellungen/work/latex projekte/
 jazzguitar/lbooktest1.tely

 Umm, doesn't lilypond still die on directories with spaces on
 windows?

 No, it doesn't.

 But the quotes before the .tely look funny. Perhaps they should be after 
 it.
 Maybe lilypond-book has problems with that.

 Lilypond has not:

 lilypond.exe I:\Notensatz\Bremen2009-05\dir 1\Danket dem Herrn.ly

 works.


 Henning 





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-31 Thread Thomas
PS
somebody out there must know what error code 2 in the lilypond-context 
means ... I even searched the .el files, but no result
or is this an emacs error? would be at least interesting, if not helpfull to 
find that out...
cheers
thomas 





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread Francisco Vila
2009/5/28 Thomas weissnicht...@hotmail.de:
 PS
 Another not so smart question: how can I reply to a posting on this list?? my
 outlook-express-newsreader doesn't recognize the list, and the web-interface
 only allows to answer directly to an email ... not to the list (??)

Don't you have a reply-to-all function?

You can always cc to lilypond-user@gnu.org

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread Anthony W. Youngman
In message 
7958d8c70905290126i234bee3dl2e67c23165703...@mail.gmail.com, Francisco 
Vila paconet@gmail.com writes

2009/5/28 Thomas weissnicht...@hotmail.de:

PS
Another not so smart question: how can I reply to a posting on this list?? my
outlook-express-newsreader doesn't recognize the list, and the web-interface
only allows to answer directly to an email ... not to the list (??)


Don't you have a reply-to-all function?

You can always cc to lilypond-user@gnu.org

Why is he reading a *mailing* list using a *newsreader*? That said, I do 
the same, but my client has an explicit this is a mailing list, treat 
it as a newsgroup setting, so it knows how to reply.


If he's getting it from a mail2news gateway, then he should subscribe to 
the list itself, and use OE's filter rules. Not using OE myself (I avoid 
lookout entirely if I can), I don't know for sure how to configure it.


Cheers,
Wol
--
Anthony W. Youngman - anth...@thewolery.demon.co.uk



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread Mats Bengtsson



Francisco Vila wrote:

2009/5/28 Thomas weissnicht...@hotmail.de:
  

PS
Another not so smart question: how can I reply to a posting on this list?? my
outlook-express-newsreader doesn't recognize the list, and the web-interface
only allows to answer directly to an email ... not to the list (??)



Don't you have a reply-to-all function?

You can always cc to lilypond-user@gnu.org
  

Only if you are subscribed to the list!

   /Mats



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread Tim Slattery
Anthony W. Youngman lilyp...@thewolery.demon.co.uk wrote:

Why is he reading a *mailing* list using a *newsreader*? 

It's primarily a mailing list, true, but it's replicated on gmane's
news server: news.gmane.org:gmane.comp.gnu.lilypond.general

I use Agent newsreader to access it that way. I read it and post to it
just like any other Usenet newsgroup.

-- 
Tim Slattery
slatter...@bls.gov
http://members.cox.net/slatteryt



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread Francisco Vila
2009/5/29 Tim Slattery slatter...@bls.gov:
 Anthony W. Youngman lilyp...@thewolery.demon.co.uk wrote:

Why is he reading a *mailing* list using a *newsreader*?

 It's primarily a mailing list, true, but it's replicated on gmane's
 news server: news.gmane.org:gmane.comp.gnu.lilypond.general


 I use Agent newsreader to access it that way. I read it and post to it
 just like any other Usenet newsgroup.

Only if this 'replication' is made in both directions, you could post
to the list by posting to the newsgroup. Not if it isn't.


-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread Tim Slattery
Francisco Vila paconet@gmail.com wrote:

2009/5/29 Tim Slattery slatter...@bls.gov:
 Anthony W. Youngman lilyp...@thewolery.demon.co.uk wrote:

Why is he reading a *mailing* list using a *newsreader*?

 It's primarily a mailing list, true, but it's replicated on gmane's
 news server: news.gmane.org:gmane.comp.gnu.lilypond.general


 I use Agent newsreader to access it that way. I read it and post to it
 just like any other Usenet newsgroup.

Only if this 'replication' is made in both directions, you could post
to the list by posting to the newsgroup. Not if it isn't.

But it does. That's exactly what I'm doing.

-- 
Tim Slattery
slatter...@bls.gov
http://members.cox.net/slatteryt



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread Thomas
Dear James E. Bailey, 
thank you for your answer. 
 
Now I've deleted the screech-boink.ly part of the example file and it looks 
like this:

--
 \documentclass[a4paper]{article}


 \begin{document}


 Documents for @command{lilypond-book} may freely mix music and text.
 For example,


 \begin{lilypond}
 \relative c' {
   c2 g'2 \times 2/3 { f8 e d } c'2 g4
 }
 \end{lilypond}


 Options are put in brackets.


 \begin[fragment,quote,staffsize=26,verbatim]{lilypond}
   c'4 f16
 \end{lilypond}
  
 \end{document} 
-


I still get the same error message when I use the BOOK command in emacs 
lilypond-mode:


--
-*- mode: compilation; default-directory: ~/latex projekte/jazzguitar/ -*-
Compilation started at Fri May 29 21:45:57


lilypond-book c:/Dokumente und Einstellungen/work/latex 
projekte/jazzguitar/lbooktest1.tely
...
Compilation exited abnormally with code 2 at Fri May 29 21:45:58

---


what about that file ending .tely?? the file I try to compile is named 
booktest1.lytex. 


what does code 2 mean in the context of lilypond-book? 
it seems that compilations starts ... would be nice to get a little info from 
the 
programm why its exiting abnormally.

cheers 
thomas
  James E. Bailey derhindem...@googlemail.com schrieb im Newsbeitrag 
news:3974c08f-02d8-4dec-b333-f5249c6a9...@googlemail.com...


  Am 28.05.2009 um 22:12 schrieb Thomas:


Is there somebody out there working with emacs lilypond-mode??
I use the example file from the tutorial: 


--
 \documentclass[a4paper]{article}


 \begin{document}


 Documents for @command{lilypond-book} may freely mix music and text.
 For example,


 \begin{lilypond}
 \relative c' {
   c2 g'2 \times 2/3 { f8 e d } c'2 g4
 }
 \end{lilypond}


 Options are put in brackets.


 \begin[fragment,quote,staffsize=26,verbatim]{lilypond}
   c'4 f16
 \end{lilypond}


 Larger examples can be put into a separate file, and introduced with
 \verb+\lilypondfile+.


 \lilypondfile[quote,noindent]{screech-boink.ly}


 \end{document} 
-




I save it with .lytex extension and open it im emacs ... lilypond-mode is 
active. 
Then as far as I understand I have to press 'Command--Book' to process the 
file 
with lilypond-book, and then open a newly produced .tex file and run 
'Command-
Latex'.but the 'Book' comand gives me the following errormessage:




---
-*- mode: compilation; default-directory: ~/latex projekte/jazzguitar/ -*-
Compilation started at Thu May 28 21:26:46


lilypond-book c:/Dokumente und Einstellungen/work/latex 
projekte/jazzguitar/lbooktest1.tely
Usage: lilypond-book [OPTION]... FILE


Process LilyPond snippets in hybrid HTML, LaTeX, texinfo or DocBook 
document.


Examples:  
 ...
Compilation exited abnormally with code 2 at Thu May 28 21:26:46
-




the lilypond part of my .emacs file looks like that:


  Have you copied the file screech-boink.ly to an appropriate directory?
  James E. Bailey








--


  ___
  lilypond-user mailing list
  lilypond-user@gnu.org
  http://lists.gnu.org/mailman/listinfo/lilypond-user
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread James E. Bailey
Wish I could help you, but I have a macintosh, and on OSX 10.4,  
lilypond-book only works if you call it directly. (Well, I haven't  
tried using vim or jEdit, but I figure if the LilyPond.app (or emacs)  
can't call lilypond-book properly, then nothing can. I'd suggest  
ditching calling lilypond-book from within emacs, and just do it from  
the terminal. It probably works there without problems.



Am 29.05.2009 um 22:06 schrieb Todo Fantasias:

Now I've deleted the screech-boink.ly part of the example file  
and it looks like this:

--
 \documentclass[a4paper]{article}

 \begin{document}

 Documents for @command{lilypond-book} may freely mix music and  
text.

 For example,

 \begin{lilypond}
 \relative c' {
   c2 g'2 \times 2/3 { f8 e d } c'2 g4
 }
 \end{lilypond}

 Options are put in brackets.

 \begin[fragment,quote,staffsize=26,verbatim]{lilypond}
   c'4 f16
 \end{lilypond}

 \end{document}
-

I still get the same error message when I use the BOOK command in  
emacs lilypond-mode:


--
-*- mode: compilation; default-directory: ~/latex projekte/ 
jazzguitar/ -*-

Compilation started at Fri May 29 21:45:57

lilypond-book c:/Dokumente und Einstellungen/work/latex projekte/ 
jazzguitar/lbooktest1.tely

...
Compilation exited abnormally with code 2 at Fri May 29 21:45:58
---

what about that file ending .tely?? the file I try to compile is  
named booktest1.lytex.


what does code 2 mean in the context of lilypond-book?
it seems that compilations starts ... would be nice to get a little  
info from the

programm why its exiting abnormally.

cheers
thomas



Mehr Sicherheit und Datenschutz - der neue Internet Explorer 8 für  
MSN Jetzt sofort kostenlos downloaden!


James E. Bailey



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread Graham Percival
 lilypond-book c:/Dokumente und Einstellungen/work/latex projekte/
 jazzguitar/lbooktest1.tely

Umm, doesn't lilypond still die on directories with spaces on
windows?

Cheers,
- Graham

PS if anybody complains that it should be able to handle spaces on
windows, then yes, it should be.  Patches appreciated.

PPS if anybody complains that it should output a better warning
message, then yes, it should be.  Patches appreciated.



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread James E. Bailey


Am 30.05.2009 um 00:05 schrieb Graham Percival:

lilypond-book c:/Dokumente und Einstellungen/work/latex  
projekte/

jazzguitar/lbooktest1.tely


Umm, doesn't lilypond still die on directories with spaces on
windows?

Cheers,
- Graham

PS if anybody complains that it should be able to handle spaces on
windows, then yes, it should be.  Patches appreciated.

PPS if anybody complains that it should output a better warning
message, then yes, it should be.  Patches appreciated.




I wouldn't know. I limit my windows exposure to work-related  
incidents. Hence, anything windows-related is quickly ignored by me.


James E. Bailey



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread Graham Percival
On Sat, May 30, 2009 at 12:12:22AM +0200, James E. Bailey wrote:
 
 Umm, doesn't lilypond still die on directories with spaces
 on windows?
 
 I wouldn't know. I limit my windows exposure to work-related
 incidents. Hence, anything windows-related is quickly ignored by
 me.

I even limit my work-related incidents on Windows, but I have a
vague recollection from discussions on -user.

Cheers,
- Graham


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-29 Thread Henning Plumeyer
Am 30.05.2009, 00:05 Uhr, schrieb Graham Percival  
gra...@percival-music.ca:



lilypond-book c:/Dokumente und Einstellungen/work/latex projekte/
jazzguitar/lbooktest1.tely


Umm, doesn't lilypond still die on directories with spaces on
windows?


No, it doesn't.

But the quotes before the .tely look funny. Perhaps they should be after  
it.

Maybe lilypond-book has problems with that.

Lilypond has not:

lilypond.exe I:\Notensatz\Bremen2009-05\dir 1\Danket dem Herrn.ly

works.  



Henning



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


emacs lilypond-mode

2009-05-28 Thread Thomas
Is there somebody out there working with emacs lilypond-mode??
I use the example file from the tutorial: 

--
 \documentclass[a4paper]{article}
 
 \begin{document}
 
 Documents for @command{lilypond-book} may freely mix music and text.
 For example,
 
 \begin{lilypond}
 \relative c' {
   c2 g'2 \times 2/3 { f8 e d } c'2 g4
 }
 \end{lilypond}
 
 Options are put in brackets.
 
 \begin[fragment,quote,staffsize=26,verbatim]{lilypond}
   c'4 f16
 \end{lilypond}
 
 Larger examples can be put into a separate file, and introduced with
 \verb+\lilypondfile+.
 
 \lilypondfile[quote,noindent]{screech-boink.ly}
 
 \end{document} 
-


I save it with .lytex extension and open it im emacs ... lilypond-mode is 
active. 
Then as far as I understand I have to press 'Command--Book' to process the file 
with lilypond-book, and then open a newly produced .tex file and run 'Command-
Latex'.but the 'Book' comand gives me the following errormessage:


---
-*- mode: compilation; default-directory: ~/latex projekte/jazzguitar/ -*-
Compilation started at Thu May 28 21:26:46

lilypond-book c:/Dokumente und Einstellungen/work/latex 
projekte/jazzguitar/lbooktest1.tely
Usage: lilypond-book [OPTION]... FILE

Process LilyPond snippets in hybrid HTML, LaTeX, texinfo or DocBook document.

Examples:  
 ...
Compilation exited abnormally with code 2 at Thu May 28 21:26:46
-


the lilypond part of my .emacs file looks like that:


---
(autoload 'LilyPond-mode lilypond-mode)
(add-to-list 'load-path c:/Programme/ GNU Emacs 22.3/site-lisp/tex-site.el)
(add-to-list 'auto-mode-alist '(\\.ly$ . LilyPond-mode))
(setq auto-mode-alist
  (cons '(\\.ly$ . LilyPond-mode) auto-mode-alist))
(add-to-list 'auto-mode-alist '(\\.lytex$ . LilyPond-mode))
(setq auto-mode-alist
  (cons '(\\.lytex$ . LilyPond-mode) auto-mode-alist))

(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))
--

So what am I supposed to do to successfully compile and view the example file 
from the lilypond/lilypond-book tutorial with emacs lilypond-mode?
Although I already recieved some help on this list (thanks for that) I'm still 
stuck.

I would be gratefull for any help
Thomas

PS
Another not so smart question: how can I reply to a posting on this list?? my 
outlook-express-newsreader doesn't recognize the list, and the web-interface 
only allows to answer directly to an email ... not to the list (??)   







___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-28 Thread James E. Bailey


Am 28.05.2009 um 22:12 schrieb Thomas:


Is there somebody out there working with emacs lilypond-mode??
I use the example file from the tutorial:

--
 \documentclass[a4paper]{article}

 \begin{document}

 Documents for @command{lilypond-book} may freely mix music and  
text.

 For example,

 \begin{lilypond}
 \relative c' {
   c2 g'2 \times 2/3 { f8 e d } c'2 g4
 }
 \end{lilypond}

 Options are put in brackets.

 \begin[fragment,quote,staffsize=26,verbatim]{lilypond}
   c'4 f16
 \end{lilypond}

 Larger examples can be put into a separate file, and  
introduced with

 \verb+\lilypondfile+.

 \lilypondfile[quote,noindent]{screech-boink.ly}

 \end{document}
-


I save it with .lytex extension and open it im emacs ... lilypond- 
mode is

active.
Then as far as I understand I have to press 'Command--Book' to  
process the file
with lilypond-book, and then open a newly produced .tex file and  
run 'Command-

Latex'.but the 'Book' comand gives me the following errormessage:


---
-*- mode: compilation; default-directory: ~/latex projekte/ 
jazzguitar/ -*-

Compilation started at Thu May 28 21:26:46

lilypond-book c:/Dokumente und Einstellungen/work/latex
projekte/jazzguitar/lbooktest1.tely
Usage: lilypond-book [OPTION]... FILE

Process LilyPond snippets in hybrid HTML, LaTeX, texinfo or DocBook  
document.


Examples:
 ...
Compilation exited abnormally with code 2 at Thu May 28 21:26:46
-


the lilypond part of my .emacs file looks like that:


Have you copied the file screech-boink.ly to an appropriate directory?
James E. Bailey



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Compilation Errors using Emacs lilypond-mode

2009-05-24 Thread weiss nicht

Hallo, somehow things are more complicated in the lilypond/emacs world, even 
the newsgroups
But anyway, although I already recieved helpfull tips from the list (thanks 
Peter Chubb!)I still can't get started working with lilypond-mode since I don't 
understand the compilation process: I have a latex document like this, named 
guitarbook.ly:\documentclass[a4paper]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel} \begin{document}
\author{Thomas}
\title{Guitarbook}
\maketitle{}
\tableofcontents{} \chapter{Rhythm}
\label{cha:rhythm} \begin[quote,fragment,staffsize=26]{lilypond}
c' d' e' f' g'2 g'2
\end{lilypond}
\part{Improvisation and Melody}
\label{part:improvisation-melody} \end{document}
-the lilypond section in my .emacs file 
looks like this: 
(autoload 'LilyPond-mode lilypond-mode)
(add-to-list 'load-path c:/Programme/ GNU Emacs 22.3/site-lisp/tex-site.el)
(add-to-list 'auto-mode-alist '(\\.ly$ . LilyPond-mode))
(setq auto-mode-alist
  (cons '(\\.ly$ . LilyPond-mode) auto-mode-alist))
(add-to-list 'auto-mode-alist '(\\.lytex$ . LilyPond-mode))
(setq auto-mode-alist
  (cons '(\\.lytex$ . LilyPond-mode) auto-mode-alist)) (add-hook 
'LilyPond-mode-hook (lambda () 
(turn-on-font-lock)))- 
I want to use lilypond.book, so in the main menu I choose:Command..Book then I 
get:Compilation exited abnormally with code 2  When I 
tryCommand..LilyPondfirst, I get all kind of parsing errors because lilypond 
doesn't recognize the latex parts of the document. What is the correct order of 
compilation commands for a latex/lilypond document, using lilypond book?Are the 
errors I get due to wrong sequence of commands, or is there something wrong in 
the setup? forgive me my basic questions, but somehow I'm stuck with this and I 
really would like to get startedin the faszinationg lilypond/emacs worldthomas



_
http://redirect.gimas.net/?n=M0905xIE8_MSN4
Internet Explorer 8 jetzt für MSN  - kostenlos!___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Compilation Errors using Emacs lilypond-mode

2009-05-24 Thread Graham Percival
On Sun, May 24, 2009 at 12:38:22PM +0200, weiss nicht wrote:
 I have a latex document like this, named guitarbook.ly:

Try naming it guitarbook.lytex

I have no clue how emacs stuff works, but the convention is to
name lilypond-book files as .lytex (see the docs), so perhaps the
authors of the relevant emacs stuff assumed that if you pass it a
.ly, it's a standalone lilypond file, whereas a .lytex would be a
standalone lilypond-book file.

Cheers,
- Graham


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


emacs lilypond-mode

2009-05-22 Thread Thomas
Hallo, 
I'm new to emacs and lilypond, but I managed 
to set up lilypond mode successfully.

I'm still not able to use it ... 
and I can't find any usefull explanation on how 

to work with emacs lilypond mode in the pdf's
 and not even on the web 
(whats quite amazing). 

Is there any source with infos about emacs 
lilypond-mode? not only the setup, 
but how to use it?

I would appreciate any help. 

thomas  



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode

2009-05-22 Thread Peter Chubb
 Thomas == Thomas  weissnicht...@hotmail.de writes:

Thomas Hallo, I'm new to emacs and lilypond, but I managed to set up
Thomas lilypond mode successfully.

Oh Good.  Now when you edit a file with a .ly extension, do you see
`(LilyPond)' in the status line?  

Then you can do: \C-Hm (control-H m) to describe the mode.

--
Dr Peter Chubb  peter DOT chubb AT nicta.com.au
http://www.ertos.nicta.com.au   ERTOS within National ICT Australia
All things shall perish from under the sky/Music alone shall live, never to die


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


emacs LilyPond-mode and lilypond-templates package

2009-03-09 Thread Shelagh Manton
Last year I put together a package of templates to make it easy to use 
the templates in the documentation. I tried to make it easy to install. 
As you know LilyPond is a moving target but they still work for me as 
they stand.

They may prove useful to others. I know I had a great deal of fun putting 
them together.

They can be found at 
http://code.google.com/p/lilypond-templates/downloads/list

I put them up at google-code so that they didn't just disappear but to my 
surprise, someone has actually downloaded them. I decided that I would 
let people on the list know they existed. Let me know if they are of 
value and how they can be improved. If it is within my skill, I will have 
a go at them.

Shelagh






___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fwd: emacs lilypond-mode and the midi command

2009-03-08 Thread Daniel Hulme
 On Mar 7, 2009, at 4:05 AM, James E. Bailey wrote:
 On OSX, the lilypond mode for emacs doesn't properly escape  
 filenames.

On Sat, Mar 07, 2009 at 04:44:41PM -0600, Tim McNamara wrote:
 Addendum:  I was able to replicate this bheavior in Bash under Terminal.  
 The problem appears to be how Bash handles spaces in filenames.  Weird, 
 in this day and age you'd think that shells would be intelligent enough 
 to cope with this.
Guessing whether something is a filename or not is a really bad idea,
and can lead to very surprising behaviour. The accepted behaviour - that
spaces separate command-line arguments except when escaped or when the
whole argument is enclosed in quotes - is simple, consistent, and offers
few opportunities to accidentally delete all your files.

 There is a new revision of Bash out in the past few weeks, which
 perhaps gets around this.
I strongly doubt it. Any change like that would break backcompat and
startle all of its users.

[snip]
 If double quotes are put around the path, that seems to properly escape 
 them, although even this was flakey on my Mac:
That's not enough. What if your path has double quotes in it? Or
backslashes? Anything that generates shell commands always needs to
fully escape the arguments.

-- 
The  rules  of  programming  are  transitory;  only  Tao  is  eternal.
Therefore you  must contemplate Tao before you receive  enlightenment.
How will I know when I have received enlightenment?  asked the novice.
Your program will then run correctly, replied the master.


signature.asc
Description: Digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode and the midi command

2009-03-08 Thread Anthony W. Youngman
In message 1f7f572f-c5ec-46e7-a70d-075395915...@googlemail.com, James 
E. Bailey derhindem...@googlemail.com writes


On 07.03.2009, at 17:20, Tim McNamara wrote:



On Mar 7, 2009, at 4:05 AM, James E. Bailey wrote:

On OSX, the lilypond mode for emacs doesn't properly escape 
filenames.
open -a 'Mighty MIDI' /Users/jamesebailey/Documents/James Music/ 
Choral Music/Windhauch/Windhauch.midi
2009-03-07 10:59:31.767 open[465] No such file: /Users/ 
jamesebailey/Documents/James


I'm having trouble making sense of what you are trying to do with 
this command and from where you are trying to do it.
Sorry, I'm trying to use the midi command in lilypond mode from  within 
emacs. Since I'm on a macintosh, I change the timidity -ia and 
timidity in the lilypond.mode.el file to be open -a 'Mighty MIDI'. It 
works for opening the pdfs from within emacs. I use the emacs  shortcut 
to view the pdf and it opens. I've changed the default xpdf  to open -a 
'Skim' and everything works perfectly.


That open command looks incorrectly stated for Emacs on two   fronts. 
Are you typing this command in somewhere (Emacs or the   shell) or is 
this command being generated inside Emacs from one of   the 
lilypond-mode menus?

As previously stated, I'm typing this in the lilypond-mode.el file.


First, Emacs doesn't use an open command to open files, it uses the 
sequence Control-x Control-f (C-x C-f [and note the case]).  If 
lilypond-mode is generating that command, it seems guaranteed to fail.

it works for the pdfs


Are you *sure* it's exactly the same syntax?

Note that your pathname is *un*quoted and *contains* *a* *space*. This 
is GUARANTEED to fail if typed at the command line.


Not knowing MacOS, I can't tell you what's the correct way to quote it, 
but I'd try putting a backslash before the space.


Cheers,
Wol
--
Anthony W. Youngman - anth...@thewolery.demon.co.uk



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fwd: emacs lilypond-mode and the midi command

2009-03-08 Thread Anthony W. Youngman
In message 18ad5523-64b1-4582-af15-897fc137b...@bitstream.net, Tim 
McNamara tim...@bitstream.net writes

On Mar 7, 2009, at 4:05 AM, James E. Bailey wrote:

On OSX, the lilypond mode for emacs doesn't properly escape 
filenames.
open -a 'Mighty MIDI' /Users/jamesebailey/Documents/James Music/ 
Choral Music/Windhauch/Windhauch.midi
2009-03-07 10:59:31.767 open[465] No such file: /Users/ 
jamesebailey/Documents/James


I'm having trouble making sense of what you are trying to do with 
this command and from where you are trying to do it.


snip

Addendum:  I was able to replicate this bheavior in Bash under 
Terminal. The problem appears to be how Bash handles spaces in 
filenames. Weird, in this day and age you'd think that shells would  be 
intelligent enough to cope with this.  There is a new revision of  Bash 
out in the past few weeks, which perhaps gets around this.  I  wonder 
if lilypond-mode is for some reason calling to the shell and  running 
into a problem there; IMO it shouldn't, it should use the  standard 
Emacs commands.


Errr

Actually, I'd be rather horrified if bash was modified to handle spaces 
in filenames. space has been an illegal character in most filenames 
in most OSs since the dawn of computing - it's only MicroSoft who 
thought it was a great idea - and the grief it's caused ever since is 
immense. Making shells intelligent is only likely to add to the grief.


It's bad enough that you can't predict the behaviour of things like cp 
in nix just by looking at the command - I don't want bash behaving 
randomly too!


(Hint - the behaviour in cp is dependent upon, not least, whether the 
target already exists and whether it's a file or directory. Every other 
copy command I've ever used behaves consistently ... :-(


Cheers,
Wol
--
Anthony W. Youngman - anth...@thewolery.demon.co.uk



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fwd: emacs lilypond-mode and the midi command

2009-03-08 Thread Johan Vromans
Anthony W. Youngman lilyp...@thewolery.demon.co.uk writes:

 space has been an illegal character in most
 filenames in most OSs since the dawn of computing 

This is very much not true. Not being able to deal with spaces (and
therefore banning spaces as much as possible) is typical for command
line based OSs that use whitespace to separate command line args. Many
OSs predating Microsoft could deal with spaces. Amiga, Commodore, even
ancient DEC systems.

 and the grief it's caused ever since is immense.

Again, not true. 

 It's bad enough that you can't predict the behaviour of things like
 cp in nix just by looking at the command

It copies a source to a destination. If the destination is a file,
source get copied under that name. If it is a directory, source gets
copied into the directory. That's what everyone wants.

 Every
 other copy command I've ever used behaves consistently ... :-(

See http://en.wikipedia.org/wiki/Copy_(command) .

But this is getting off-topic...

-- Johan


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode and the midi command

2009-03-08 Thread James E. Bailey


On 08.03.2009, at 12:58, Anthony W. Youngman wrote:

In message 1f7f572f-c5ec-46e7-a70d-075395915...@googlemail.com,  
James E. Bailey derhindem...@googlemail.com writes


On 07.03.2009, at 17:20, Tim McNamara wrote:



On Mar 7, 2009, at 4:05 AM, James E. Bailey wrote:

On OSX, the lilypond mode for emacs doesn't properly escape  
filenames.
open -a 'Mighty MIDI' /Users/jamesebailey/Documents/James Music/  
Choral Music/Windhauch/Windhauch.midi
2009-03-07 10:59:31.767 open[465] No such file: /Users/  
jamesebailey/Documents/James


I'm having trouble making sense of what you are trying to do with  
this command and from where you are trying to do it.
Sorry, I'm trying to use the midi command in lilypond mode from   
within emacs. Since I'm on a macintosh, I change the timidity -ia  
and timidity in the lilypond.mode.el file to be open -a 'Mighty  
MIDI'. It works for opening the pdfs from within emacs. I use the  
emacs  shortcut to view the pdf and it opens. I've changed the  
default xpdf  to open -a 'Skim' and everything works perfectly.


That open command looks incorrectly stated for Emacs on two
fronts. Are you typing this command in somewhere (Emacs or the
shell) or is this command being generated inside Emacs from one  
of   the lilypond-mode menus?

As previously stated, I'm typing this in the lilypond-mode.el file.


First, Emacs doesn't use an open command to open files, it uses  
the sequence Control-x Control-f (C-x C-f [and note the case]).   
If lilypond-mode is generating that command, it seems guaranteed  
to fail.

it works for the pdfs


Are you *sure* it's exactly the same syntax?

Note that your pathname is *un*quoted and *contains* *a* *space*.  
This is GUARANTEED to fail if typed at the command line.


Not knowing MacOS, I can't tell you what's the correct way to quote  
it, but I'd try putting a backslash before the space.


The path quoted is not something I have control over, that is the  
output copied directly from emacs.


That is the problem: emacs does not correctly escape pathnames when  
upening a MIDI file.


I thought I made that clear, but everyone else here is discussing  
bash, and not how lilypond-mode opens a MID file.


Does anyone else have this problem? Can anyone else reproduce this  
issue (using the command midi C-c return or even Midi all C-c C- 
return) errors when opening a file with a space in the path?



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode or possibly Bash glitch

2009-03-08 Thread Tim McNamara


On Mar 7, 2009, at 10:45 AM, James E. Bailey wrote:



On 07.03.2009, at 17:29, Tim McNamara wrote:

When I try to compile a .ly file in lilypond-mode, it fails with  
the message:



-*- mode: compilation; default-directory: ~/Desktop/Downloads/ 
Music Charts/Lilypond Charts/Dead Tunes/Days Between/ -*-

Compilation started at Sat Mar  7 10:22:25

lilypond /Users/tim/Desktop/Downloads/Music\ Charts/Lilypond\  
Charts/Dead\ Tunes/Days\ Between/Days\ Between.ly

/bin/bash: line 1: lilypond: command not found


is lilypond in your path? Does emacs know about your path? In my  
~/.emacs, I have

(add-to-list 'load-path (expand-file-name elisp (getenv HOME)))
(setq exec-path (split-string /Users/jamesebailey/Applications/ 
LilyPond.app/Contents/Resources/bin:/bin:/sbin:/usr/bin:/usr/local/ 
bin:/usr/sbin path-separator))

(setenv PATH (mapconcat 'identity exec-path :))
(setenv MANPATH /Users/jamesebailey/share/man:/usr/share/man:/ 
usr/X11R6/man:/man)
(setenv INFOPATH /Users/jamesebailey/share/info:/usr/local/info:/ 
usr/local/share/info:/usr/share/info)


Hmmm.  I'll have to look closer at that.  I don't bother with X11 any  
more on my Macs so I don't need (and don't have) that stuff in  
my .emacs file.  I haven't found anything I need to use that requires  
the X11 environment in a long time.  However,


(setq load-path (append (list (expand-file-name/Applications/ 
LilyPond.app/Contents/Resources/share/emacs/site-lisp)) load-path))


doesn't get the job done since it only points at the Lisp for  
lilypond-mode.  I'll try adding the


/Applications/LilyPond.app/Contents/Resources/bin:/bin:/sbin:/usr/ 
bin:/usr/local/bin:/usr/sbin


statement.

Thanks for mentioning this.



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Emacs lilypond-mode or possibly Bash glitch

2009-03-08 Thread Tim McNamara


On Mar 7, 2009, at 10:45 AM, James E. Bailey wrote:



On 07.03.2009, at 17:29, Tim McNamara wrote:

When I try to compile a .ly file in lilypond-mode, it fails with  
the message:



-*- mode: compilation; default-directory: ~/Desktop/Downloads/ 
Music Charts/Lilypond Charts/Dead Tunes/Days Between/ -*-

Compilation started at Sat Mar  7 10:22:25

lilypond /Users/tim/Desktop/Downloads/Music\ Charts/Lilypond\  
Charts/Dead\ Tunes/Days\ Between/Days\ Between.ly

/bin/bash: line 1: lilypond: command not found


is lilypond in your path? Does emacs know about your path? In my  
~/.emacs, I have

(add-to-list 'load-path (expand-file-name elisp (getenv HOME)))
(setq exec-path (split-string /Users/jamesebailey/Applications/ 
LilyPond.app/Contents/Resources/bin:/bin:/sbin:/usr/bin:/usr/local/ 
bin:/usr/sbin path-separator))

(setenv PATH (mapconcat 'identity exec-path :))
(setenv MANPATH /Users/jamesebailey/share/man:/usr/share/man:/ 
usr/X11R6/man:/man)
(setenv INFOPATH /Users/jamesebailey/share/info:/usr/local/info:/ 
usr/local/share/info:/usr/share/info)


Compilation is still not working with those additions; the problem  
seems to be in Bash rather than in Emacs or LilyPond.  Your fix for  
viewing the PDFs does work, though, so that's nice.  Thanks for  
that!  Adding:


  /Applications/LilyPond.app/Contents/Resources/bin

and

  /Applications/LilyPond.app/Contents/MacOS  (which is there the  
lilypond executable lives inside LilyPond.app)


to $PATH in .bashrc and in my .emacs doesn't resolve the problem,  
even though which lilypond now returns the correct response in the  
shell.  I'll have to ponder this some more.  My skills at this are  
rusty because it's so rarely necessary to fiddle with things at this  
level.



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


emacs lilypond-mode and the midi command

2009-03-07 Thread James E. Bailey

On OSX, the lilypond mode for emacs doesn't properly escape filenames.
open -a 'Mighty MIDI' /Users/jamesebailey/Documents/James Music/ 
Choral Music/Windhauch/Windhauch.midi
2009-03-07 10:59:31.767 open[465] No such file: /Users/jamesebailey/ 
Documents/James


I remember this was a problem before with pdf opening, I just don't  
understand how the solution works, otherwise I would do it.
see http://lists.gnu.org/archive/html/lilypond-user/2008-09/ 
msg00301.html



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode and the midi command

2009-03-07 Thread Tim McNamara


On Mar 7, 2009, at 4:05 AM, James E. Bailey wrote:


On OSX, the lilypond mode for emacs doesn't properly escape filenames.
open -a 'Mighty MIDI' /Users/jamesebailey/Documents/James Music/ 
Choral Music/Windhauch/Windhauch.midi
2009-03-07 10:59:31.767 open[465] No such file: /Users/jamesebailey/ 
Documents/James


I'm having trouble making sense of what you are trying to do with  
this command and from where you are trying to do it.


That open command looks incorrectly stated for Emacs on two fronts.   
Are you typing this command in somewhere (Emacs or the shell) or is  
this command being generated inside Emacs from one of the lilypond- 
mode menus?


First, Emacs doesn't use an open command to open files, it uses the  
sequence Control-x Control-f (C-x C-f [and note the case]).  If  
lilypond-mode is generating that command, it seems guaranteed to fail.


Second, you're trying to open a MIDI file (.midi) rather than a  
LilyPond file (.ly); I don't know if opening anything but a .ly file  
will automatically enter lilypond-mode in Emacs (assuming you have  
set up the correct Lisp code in your .emacs file first to require  
lilypond-mode when a .ly file is opened).


I just fired up Emacs and opened a LilyPond file with spaces in the  
file name and also in three levels of directories with spaces in  
their names, too, without any problem and no escape characters being  
used.  The file opened and lilypond-mode was automatically entered.   
From within Emacs, try:


C-x C-f ~/Documents/James Music/Choral Music/Windhauch/Windhauc.midi

Does that work any better?

Which version of Emacs are you using?  The one that comes with OS X  
and is accessed through the command line in Terminal is hopelessly  
out of date.  If you haven't already, try the GUI versions (the  
latest Carbon Emacs or Aquamacs, for example) which are much more  
recent builds, under active development and easier by far to use.  Or  
you can compile your own, the -current versions in the Emacs CVS  
repository have the necessary code to build a Mac .app package; you  
just need to set the right flags (--without-X --with-Carbon IIRC;  
it's been a long time since I compiled a version of Emacs, the  
available builds are very good indeed).


HTH!


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Emacs lilypond-mode or possibly Bash glitch

2009-03-07 Thread Tim McNamara
When I try to compile a .ly file in lilypond-mode, it fails with the  
message:



-*- mode: compilation; default-directory: ~/Desktop/Downloads/Music  
Charts/Lilypond Charts/Dead Tunes/Days Between/ -*-

Compilation started at Sat Mar  7 10:22:25

lilypond /Users/tim/Desktop/Downloads/Music\ Charts/Lilypond\ Charts/ 
Dead\ Tunes/Days\ Between/Days\ Between.ly

/bin/bash: line 1: lilypond: command not found

Compilation exited abnormally with code 127 at Sat Mar  7 10:22:26


If I try to view an existing PDF, I get:

 /Users/tim/Desktop/Downloads/Music\ Charts/Lilypond\ Charts/Dead\  
Tunes/Days\ Between/Days\ Between.pdf
/bin/bash: line 1: /Users/tim/Desktop/Downloads/Music Charts/Lilypond  
Charts/Dead Tunes/Days Between/Days Between.pdf: Permission denied


Compilation exited abnormally with code 126 at Sat Mar  7 10:07:13

The latter looks to be a Bash problem- there should be no reason for  
there to be a permissions problem as this is operating all within the  
same account.  Permissions are:


drwxr-xr-x   7 tim  tim 238 Mar  5 22:26 .
drwxr-xr-x   5 tim  tim 170 Mar  5 20:50 ..
-rw-r--r--   1 tim  tim6148 Mar  5 21:33 .DS_Store
-rw-r--r--   1 tim  tim2702 Mar  6 11:41 Days Between.ly
-rw-r--r--   1 tim  tim 504 Mar  3 22:49 Days Between.ly~
-rw-r--r--   1 tim  tim  163044 Mar  6 11:41 Days Between.pdf
-rw-r--r--   1 tim  tim  575281 Mar  6 11:41 Days Between.ps




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: emacs lilypond-mode and the midi command

2009-03-07 Thread James E. Bailey


On 07.03.2009, at 17:20, Tim McNamara wrote:



On Mar 7, 2009, at 4:05 AM, James E. Bailey wrote:

On OSX, the lilypond mode for emacs doesn't properly escape  
filenames.
open -a 'Mighty MIDI' /Users/jamesebailey/Documents/James Music/ 
Choral Music/Windhauch/Windhauch.midi
2009-03-07 10:59:31.767 open[465] No such file: /Users/ 
jamesebailey/Documents/James


I'm having trouble making sense of what you are trying to do with  
this command and from where you are trying to do it.
Sorry, I'm trying to use the midi command in lilypond mode from  
within emacs. Since I'm on a macintosh, I change the timidity -ia and  
timidity in the lilypond.mode.el file to be open -a 'Mighty MIDI'. It  
works for opening the pdfs from within emacs. I use the emacs  
shortcut to view the pdf and it opens. I've changed the default xpdf  
to open -a 'Skim' and everything works perfectly.


That open command looks incorrectly stated for Emacs on two  
fronts.  Are you typing this command in somewhere (Emacs or the  
shell) or is this command being generated inside Emacs from one of  
the lilypond-mode menus?

As previously stated, I'm typing this in the lilypond-mode.el file.


First, Emacs doesn't use an open command to open files, it uses  
the sequence Control-x Control-f (C-x C-f [and note the case]).  If  
lilypond-mode is generating that command, it seems guaranteed to fail.

it works for the pdfs


Second, you're trying to open a MIDI file (.midi) rather than a  
LilyPond file (.ly); I don't know if opening anything but a .ly  
file will automatically enter lilypond-mode in Emacs (assuming you  
have set up the correct Lisp code in your .emacs file first to  
require lilypond-mode when a .ly file is opened).
lilypond mode works just fine. it's opening the midi file from within  
emacs that's the problem.






___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


  1   2   >