[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] Scheme script debugging
From: |
Andreas Schneider |
Subject: |
Re: [Denemo-devel] Scheme script debugging |
Date: |
Thu, 23 May 2013 19:44:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
Am 23.05.2013 10:31, schrieb Richard Shann:
> Yes, commands like Notes/Rests->Comment use that. You can even include
> snippets of music to be typeset by LilyPond with one of them.
I tried to imitate Score -> Comment by including DENEMO_OVERRIDE_EDITOR,
but it does not work. I realize that Score -> Comment does not call
d-GetUserInput directly. Notes/Rests -> Comment does not show the editor
I want.
>> What I still do not understand is the button. I have View -> Titles
>> Buttons etc activated. When I execute the script, the button MarkupAtEnd
>> appears for a short time (something like a second) and then disappears
>> again.
> Wow! Can you post the exact script you have ended with for me to try?
After having a closer look, I saw that the button appears when the
script starts, is present when I type in the d-GetUserInput window, and
disappears afterwards (probably at finishing the script). Here's the source:
;;;MarkupAtEnd
(let ((tag "MarkupAtEnd")(themarkup #f))
(d-DirectivePut-movementcontrol-override tag (logior
DENEMO_OVERRIDE_GRAPHIC DENEMO_OVERRIDE_EDITOR))
(d-DirectivePut-movementcontrol-display tag "MarkupAtEnd")
(disp "checking previous markup ...")
(if (d-Directive-movementcontrol? tag)
(set! themarkup (d-DirectiveGet-movementcontrol-postfix
tag))
(set! themarkup (""))
)
(set! themarkup (d-GetUserInput (_ "MarkupAtEnd") (_ "Edit
markup:") themarkup))
(disp themarkup)
(d-DirectivePut-movementcontrol-postfix tag themarkup)
(d-DirectivePut-movementcontrol-override tag DENEMO_OVERRIDE_AFFIX)
(d-SetSaved #f)
)
Andreas
- Re: [Denemo-devel] Scheme script debugging, (continued)
- Re: [Denemo-devel] Scheme script debugging, Andreas Schneider, 2013/05/21
- Re: [Denemo-devel] Scheme script debugging, Richard Shann, 2013/05/21
- Re: [Denemo-devel] Scheme script debugging, Andreas Schneider, 2013/05/22
- Re: [Denemo-devel] Scheme script debugging, Richard Shann, 2013/05/22
- Re: [Denemo-devel] Scheme script debugging, Richard Shann, 2013/05/22
- Re: [Denemo-devel] Scheme script debugging, Andreas Schneider, 2013/05/22
- Re: [Denemo-devel] Scheme script debugging, Richard Shann, 2013/05/22
- Re: [Denemo-devel] Scheme script debugging, Richard Shann, 2013/05/22
- Re: [Denemo-devel] Scheme script debugging, Andreas Schneider, 2013/05/23
- Re: [Denemo-devel] Scheme script debugging, Richard Shann, 2013/05/23
- Re: [Denemo-devel] Scheme script debugging,
Andreas Schneider <=
- Re: [Denemo-devel] Scheme script debugging, Richard Shann, 2013/05/23
- Re: [Denemo-devel] Scheme script debugging, Andreas Schneider, 2013/05/23
- Re: [Denemo-devel] Scheme script debugging, Richard Shann, 2013/05/23
- Re: [Denemo-devel] Scheme script debugging, Andreas Schneider, 2013/05/23
- Re: [Denemo-devel] Scheme script debugging, Richard Shann, 2013/05/23
- Re: [Denemo-devel] Scheme script debugging, Andreas Schneider, 2013/05/23
- Re: [Denemo-devel] Scheme script debugging, Richard Shann, 2013/05/23
- Re: [Denemo-devel] Scheme script debugging, Andreas Schneider, 2013/05/24
- Re: [Denemo-devel] Scheme script debugging, Richard Shann, 2013/05/24
- Message not available
- Message not available
- Re: [Denemo-devel] Scheme script debugging, Andreas Schneider, 2013/05/28