History of 2016-11-19 format-spec

08:44 UTC Revision 1 . . . . Marcin BorkowskiLast week I was coding something Emacs-y, and felt the need of a format-like function. It would get a string with embedded “control codes”, like %t% or %h, and then output a string with these “control codes” replaced by actual content. Writing something like that is not particularly difficult, but since I wanted to be able to also escape the percent sign by writing %%, I didn’t really feel like reinventing the wheel (and doing it elegantly and efficiently might be a tad tricky anyway). I asked a question on the help-gnu-emacs mailing list, and voilà! Here is the format-spec function.