- **labels**:  --> Fixed_2_19_63
- **status**: Started --> Fixed
- **Patch**: push -->  
- **Comment**:

Pushed to staging as
commit c3b51542671a9af5647d4cbc63f7c8ae98c1c2bd
Author: David Kastrup <d...@gnu.org>
Date:   Mon Jun 12 13:44:51 2017 +0200

    Issue 5145/2: Allow $... to specify a markup command
    
    This is a partial (though more flexible) substitute for \on-the-fly
    since it allows to replace
    
    \on-the-fly #(lambda (layout props args) ...)
    
    with
    
    $(let ((fun (lambda (layout props args) ...)))
       (set! (markup-command-signature fun) (list markup?))
       fun)
    
    Namely: ad-hoc written functions (probably most useful when written
    using macros) can be employed as markup commands when preceded with $
    as long as they have a suitable markup command signature attached.
    This feature is mainly added for consistency with music functions.




---

** [issues:#5145] Allow $... to specify a markup command**

**Status:** Fixed
**Labels:** Fixed_2_19_63 
**Created:** Mon Jun 12, 2017 03:16 PM UTC by David Kastrup
**Last Updated:** Fri Jun 16, 2017 11:12 PM UTC
**Owner:** David Kastrup


Allow $... to specify a markup command

This is a partial (though more flexible) substitute for \on-the-fly
since it allows to replace

\on-the-fly #(lambda (layout props args) ...)

with

$(let ((fun (lambda (layout props args) ...)))
   (set! (markup-command-signature fun) (list markup?))
   fun)

Namely: ad-hoc written functions (probably most useful when written
using macros) can be employed as markup commands when preceded with $
as long as they have a suitable markup command signature attached.
This feature is mainly added for consistency with music functions.

Lexer: factor out push_markup_predicates

http://codereview.appspot.com/322090043


---

Sent from sourceforge.net because testlilyissues-a...@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/testlilyissues/admin/issues/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Testlilyissues-auto mailing list
testlilyissues-a...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto
  • [Lilypond-... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto

Reply via email to