Re: Problems with lilypond-invoke-editor

2024-04-11 Thread Ben Bradshaw
Sorry, I'll try and be more specific. I don't use a desktop environment
either, so I normally open emacs from a keybinding that uses the spawn
command in herbstluftwm (which I think is basically a bash exec). Then
after I compile a lilypond file with C-c C-c (and choose lilypond) then
choose view, zathura opens and when I point and click it gets those errors.
If I just close that instance of zathura, and then open a new one (from
dmenu), then point and click works.

I haven't had time to try xpdf yet, but knowing this I can adjust and open
zathura by itself instead of however emacs opens it through the command and
things work. Just a change of habit.

On Thu, Apr 11, 2024, 10:17 PM David Wright 
wrote:

> On Wed 10 Apr 2024 at 21:35:16 (-0600), Ben Bradshaw wrote:
> > Well I fixed having multiple lilyponds installed, and at first I thought
> it
> > worked. Zathura and xpdf at least work when I open them separately.
>
> I'm not sure exactly what you mean by open separately. Is this: typing
>  in a command line, or clicking on a viewer's icon, or (by file
> association) clicking on a PDF document?
>
> > I guess
> > it's a minor annoyance, but if I open zathura from the C-c C-c part of
> > emacs, then it doesn't work and I get those errors.
>
> Same again—how do you start emacs?
>
> > I have no clue why that
> > would make a difference, but it seems to be the case. Open the file in a
> > viewer separately and point and click works just fine. Use the lilypond
> > command view and it doesn't.
>
> I've only tested with xpdf and emacs, each one opened from the command
> line (because I don't use a desktop). Point-and-click works whether
> xpdf was started from the command line or from  ^C^C ViewPDF in emacs.
>
> > I guess I haven't tried to see if other pdf
> > viewers work from the command menu, but it seems like it wouldn't be a
> > zathura problem.
>
> I would try with xpdf, because it has a simpler configuration/mechanism
> than viewers like zathura and evince. If xpdf works correctly, I would
> suspect that there might by more Gnome-y stuff required to get zathura
> to work when launched by emacs with ^C^C, rather than by Gnome. But
> that's only a guess.
>
> Would you be able to adjust your workflow to begin by running zathura
> on the PDF, and just clicking on an item in the score to launch emacs?
> (Perhaps that's what you're already doing.)
>
> Cheers,
> David.
>


Re: Problems with lilypond-invoke-editor

2024-04-11 Thread David Wright
On Wed 10 Apr 2024 at 21:35:16 (-0600), Ben Bradshaw wrote:
> Well I fixed having multiple lilyponds installed, and at first I thought it
> worked. Zathura and xpdf at least work when I open them separately.

I'm not sure exactly what you mean by open separately. Is this: typing
 in a command line, or clicking on a viewer's icon, or (by file
association) clicking on a PDF document?

> I guess
> it's a minor annoyance, but if I open zathura from the C-c C-c part of
> emacs, then it doesn't work and I get those errors.

Same again—how do you start emacs?

> I have no clue why that
> would make a difference, but it seems to be the case. Open the file in a
> viewer separately and point and click works just fine. Use the lilypond
> command view and it doesn't.

I've only tested with xpdf and emacs, each one opened from the command
line (because I don't use a desktop). Point-and-click works whether
xpdf was started from the command line or from  ^C^C ViewPDF in emacs.

> I guess I haven't tried to see if other pdf
> viewers work from the command menu, but it seems like it wouldn't be a
> zathura problem.

I would try with xpdf, because it has a simpler configuration/mechanism
than viewers like zathura and evince. If xpdf works correctly, I would
suspect that there might by more Gnome-y stuff required to get zathura
to work when launched by emacs with ^C^C, rather than by Gnome. But
that's only a guess.

Would you be able to adjust your workflow to begin by running zathura
on the PDF, and just clicking on an item in the score to launch emacs?
(Perhaps that's what you're already doing.)

Cheers,
David.



Re: Problems with lilypond-invoke-editor

2024-04-10 Thread Ben Bradshaw
Well I fixed having multiple lilyponds installed, and at first I thought it
worked. Zathura and xpdf at least work when I open them separately. I guess
it's a minor annoyance, but if I open zathura from the C-c C-c part of
emacs, then it doesn't work and I get those errors. I have no clue why that
would make a difference, but it seems to be the case. Open the file in a
viewer separately and point and click works just fine. Use the lilypond
command view and it doesn't. I guess I haven't tried to see if other pdf
viewers work from the command menu, but it seems like it wouldn't be a
zathura problem.

On Sun, Apr 7, 2024 at 10:44 AM David Wright 
wrote:

> On Fri 05 Apr 2024 at 20:43:01 (-0600), Ben Bradshaw wrote:
> > I've been using frescobaldi mostly because I like the point and click
> > functionality. I just discovered today that you can configure that to
> work
> > with other PDF viewers and editors, which I would like to do, since I
> keep
> > trying to use emacs bindings inside frescobaldi
> > Anyways, I thought that I had everything figured out. But when I try and
> > click I get some stuff showing up in an emacs buffer.
> >
> > Traceback (most recent call last):
> >   File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
> > editor_commands = [list(map(replace_template, cmd)) for cmd in
> > editor_commands]
> >
> > ^
> >   File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
> > editor_commands = [list(map(replace_template, cmd)) for cmd in
> > editor_commands]
> >
> >   File "/usr/local/bin/lilypond-invoke-editor", line 79, in
> replace_template
> > return template % {
> >
> > ValueError: unsupported format character ':' (0x3a) at index 25
> >
> > Is this a problem with the program or my config? I'm using arch linux,
> > herbstluftwm window manager (followed the settings for GNOME 3 to get a
> > desktop entry, otherwise it would only launch firefox), zathura as PDF
> > viewer, emacs as LYEDITOR.
> >
> > Any help would be greatly appreciated so I can stop doing C-x C-s every
> > time I want to save!
>
> I'm not sure why you have /usr/local/bin/ occurring in your error
> messages as I don't see any string "local/" on the page:
>
>   https://archlinux.org/packages/extra/x86_64/lilypond/files/
>
> Is there any possibility that you have multiple versions of LP
> installed, and that one version is calling another?
>
> BTW you can bisect the problem and test lilypond-invoke-editor
> separately at the command line just by typing:
>
>   $ lilypond-invoke-editor textedit://:LL:CC:CC
>
>  is a .ly file, LL a line number, CC a column number
> (actual numbers not important), as in:
>
>   $ lilypond-invoke-editor textedit:///tmp/blue.ly:50:10:10
>
> Either of:
>
>   $ type  lilypond-invoke-editor
>   $ which lilypond-invoke-editor
>
> will tell you which executable is being run. But if your Gnome3
> settings include a path for that executable, you obviously need
> to test it with that path.
>
> Cheers,
> David.
>


Re: Problems with lilypond-invoke-editor

2024-04-07 Thread Ben Bradshaw
Hmm it could be. I downloaded the source code so I could get images in the
info files. I noticed yesterday actually that the source version was going
to /use/local . I'll try and set the prefix correctly when I compile and
see if I can get just one version of LP.

Thanks for catching that!

On Sun, Apr 7, 2024, 10:44 AM David Wright 
wrote:

> On Fri 05 Apr 2024 at 20:43:01 (-0600), Ben Bradshaw wrote:
> > I've been using frescobaldi mostly because I like the point and click
> > functionality. I just discovered today that you can configure that to
> work
> > with other PDF viewers and editors, which I would like to do, since I
> keep
> > trying to use emacs bindings inside frescobaldi
> > Anyways, I thought that I had everything figured out. But when I try and
> > click I get some stuff showing up in an emacs buffer.
> >
> > Traceback (most recent call last):
> >   File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
> > editor_commands = [list(map(replace_template, cmd)) for cmd in
> > editor_commands]
> >
> > ^
> >   File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
> > editor_commands = [list(map(replace_template, cmd)) for cmd in
> > editor_commands]
> >
> >   File "/usr/local/bin/lilypond-invoke-editor", line 79, in
> replace_template
> > return template % {
> >
> > ValueError: unsupported format character ':' (0x3a) at index 25
> >
> > Is this a problem with the program or my config? I'm using arch linux,
> > herbstluftwm window manager (followed the settings for GNOME 3 to get a
> > desktop entry, otherwise it would only launch firefox), zathura as PDF
> > viewer, emacs as LYEDITOR.
> >
> > Any help would be greatly appreciated so I can stop doing C-x C-s every
> > time I want to save!
>
> I'm not sure why you have /usr/local/bin/ occurring in your error
> messages as I don't see any string "local/" on the page:
>
>   https://archlinux.org/packages/extra/x86_64/lilypond/files/
>
> Is there any possibility that you have multiple versions of LP
> installed, and that one version is calling another?
>
> BTW you can bisect the problem and test lilypond-invoke-editor
> separately at the command line just by typing:
>
>   $ lilypond-invoke-editor textedit://:LL:CC:CC
>
>  is a .ly file, LL a line number, CC a column number
> (actual numbers not important), as in:
>
>   $ lilypond-invoke-editor textedit:///tmp/blue.ly:50:10:10
>
> Either of:
>
>   $ type  lilypond-invoke-editor
>   $ which lilypond-invoke-editor
>
> will tell you which executable is being run. But if your Gnome3
> settings include a path for that executable, you obviously need
> to test it with that path.
>
> Cheers,
> David.
>


Re: Problems with lilypond-invoke-editor

2024-04-07 Thread David Wright
On Fri 05 Apr 2024 at 20:43:01 (-0600), Ben Bradshaw wrote:
> I've been using frescobaldi mostly because I like the point and click
> functionality. I just discovered today that you can configure that to work
> with other PDF viewers and editors, which I would like to do, since I keep
> trying to use emacs bindings inside frescobaldi
> Anyways, I thought that I had everything figured out. But when I try and
> click I get some stuff showing up in an emacs buffer.
> 
> Traceback (most recent call last):
>   File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
> editor_commands = [list(map(replace_template, cmd)) for cmd in
> editor_commands]
> 
> ^
>   File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
> editor_commands = [list(map(replace_template, cmd)) for cmd in
> editor_commands]
>
>   File "/usr/local/bin/lilypond-invoke-editor", line 79, in replace_template
> return template % {
>
> ValueError: unsupported format character ':' (0x3a) at index 25
> 
> Is this a problem with the program or my config? I'm using arch linux,
> herbstluftwm window manager (followed the settings for GNOME 3 to get a
> desktop entry, otherwise it would only launch firefox), zathura as PDF
> viewer, emacs as LYEDITOR.
> 
> Any help would be greatly appreciated so I can stop doing C-x C-s every
> time I want to save!

I'm not sure why you have /usr/local/bin/ occurring in your error
messages as I don't see any string "local/" on the page:

  https://archlinux.org/packages/extra/x86_64/lilypond/files/

Is there any possibility that you have multiple versions of LP
installed, and that one version is calling another?

BTW you can bisect the problem and test lilypond-invoke-editor
separately at the command line just by typing:

  $ lilypond-invoke-editor textedit://:LL:CC:CC

 is a .ly file, LL a line number, CC a column number
(actual numbers not important), as in:

  $ lilypond-invoke-editor textedit:///tmp/blue.ly:50:10:10

Either of:

  $ type  lilypond-invoke-editor
  $ which lilypond-invoke-editor

will tell you which executable is being run. But if your Gnome3
settings include a path for that executable, you obviously need
to test it with that path.

Cheers,
David.



Problems with lilypond-invoke-editor

2024-04-05 Thread Ben Bradshaw
Hello,
I've been using frescobaldi mostly because I like the point and click
functionality. I just discovered today that you can configure that to work
with other PDF viewers and editors, which I would like to do, since I keep
trying to use emacs bindings inside frescobaldi
Anyways, I thought that I had everything figured out. But when I try and
click I get some stuff showing up in an emacs buffer.

Traceback (most recent call last):
  File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
editor_commands = [list(map(replace_template, cmd)) for cmd in
editor_commands]

^
  File "/usr/local/bin/lilypond-invoke-editor", line 122, in 
editor_commands = [list(map(replace_template, cmd)) for cmd in
editor_commands]
   
  File "/usr/local/bin/lilypond-invoke-editor", line 79, in replace_template
return template % {
   
ValueError: unsupported format character ':' (0x3a) at index 25

Is this a problem with the program or my config? I'm using arch linux,
herbstluftwm window manager (followed the settings for GNOME 3 to get a
desktop entry, otherwise it would only launch firefox), zathura as PDF
viewer, emacs as LYEDITOR.

Any help would be greatly appreciated so I can stop doing C-x C-s every
time I want to save!


Ben


Re: Problems with lilypond-invoke-editor

2006-03-12 Thread Han-Wen Nienhuys

Gianluca D. wrote:

Good morning to everybody!
I'm using lilypond v. 2.7.38 and I've got a weird problem with 
lilypond-invoke-editor. I use xpdf as pdf-viewer and it used to work fine 
with point-and-click, but know it gives me this error message:


lilypond-invoke-editor (GNU LilyPond) 2.7.38
ERROR: no code for module (scm editor)

Is there anyone who knows why or how could I fix it?
My Linux distribution is SuSE 10.0 - is the problem perhaps related to the 
distribution?


Thanks, should be fixed in the next release.

--

Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



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


Problems with lilypond-invoke-editor

2006-03-11 Thread Gianluca D.
Good morning to everybody!
I'm using lilypond v. 2.7.38 and I've got a weird problem with 
lilypond-invoke-editor. I use xpdf as pdf-viewer and it used to work fine 
with point-and-click, but know it gives me this error message:

lilypond-invoke-editor (GNU LilyPond) 2.7.38
ERROR: no code for module (scm editor)

Is there anyone who knows why or how could I fix it?
My Linux distribution is SuSE 10.0 - is the problem perhaps related to the 
distribution?

Thank you all!
Best regards,

Gianluca D.


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