Subject: Re: bug#26169: 25.1; ses.el string cell recalculate message

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 25 Aug 2020 22:27:29 +0200

Vincent Belaïche <[email-masked]> writes:

> Or we could have some extended format string, like this:
>
> "%?n{%.7g%}%?s{%s%}%?*{%S%}"
>
> where whatever is between %?xxxx{ and %} is conditioned by some
> predicate xxxx that can be n for numberp, s for stringp, and * for
> "none of those at the same level", and some parser would compile this
> format string into
>
> (cond
>    ((numberp x) (format "%.7g" x))
>    ((stringp x) (format "%s" x))
>    (t (format "%S" x))

Hm...  or it could just be an alist like

((numberp "%.7g")
 (stringp "%s")
 (t "%S"))

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no