[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dot-separated list as music function argument
From: |
David Kastrup |
Subject: |
Re: Dot-separated list as music function argument |
Date: |
Tue, 08 Jul 2014 18:45:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Thomas Morley <address@hidden> writes:
> use the predicate symbol-list-or-symbol?
> Below a working version, displaying some info as well:
>
> \version "2.19.8"
>
> ed =
> #(define-music-function (parser location grob mus)
> (symbol-list-or-symbol? ly:music?)
> ;; displaying some info:
> (format #t "\nI'm the list: \t\t\t~a
> My first entry is: \t~a
> My next entry is: \t~a
> My first entry is a symbol? \t~a
> My next entry is a symbol? \t~a"
> grob
> (car grob)
Uh, you should _not_ be using symbol-list-or-symbol? if your code is not
prepared to accept a single symbol. In that case, use just symbol-list?
as predicate.
--
David Kastrup
- Dot-separated list as music function argument, Simon Albrecht, 2014/07/08
- Re: Dot-separated list as music function argument, Abraham Lee, 2014/07/08
- Re: Dot-separated list as music function argument, Janek WarchoĊ, 2014/07/08
- Re: Dot-separated list as music function argument, Thomas Morley, 2014/07/08
- Re: Dot-separated list as music function argument, David Kastrup, 2014/07/08
- Re: Dot-separated list as music function argument, Jan-Peter Voigt, 2014/07/09