bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Ingebrigtsen
Subject: bug#26169: 25.1; ses.el string cell recalculate message
Date: Tue, 25 Aug 2020 22:27:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Vincent Belaïche <vincent.belaiche@gmail.com> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]