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
Diff:
Passes make, make check and a full make doc
Patch on countdown for June 17th.
Patch counted down - please push.
Pushed to staging as
commit c3b51542671a9af5647d4cbc63f7c8ae98c1c2bd
Author: David Kastrup dak@gnu.org
Date: Mon Jun 12 13:44:51 2017 +0200
commit da2cbdd4623e5ea51a2a99de4f2935b37195136e
Author: David Kastrup dak@gnu.org
Date: Mon Jun 12 13:21:55 2017 +0200
Last edit: David Kastrup 2017-06-17