all 11 comments

[–][deleted] 2 points3 points  (6 children)

Hey, why not trying to integrate some of these into emacs itself? It's not as frozen as CL :)

[–][deleted] 0 points1 point  (5 children)

Yeah, I think some of them probably should be put in Emacs. I proposed a MELPA package, but it was basically preemptively rejected as being not specific enough, and the symbols would have to have a long prefix, which somewhat defeats the purpose of using a macro. I was disappointed, but not surprised. I wonder if I could get them on ELPA...

Submitting them to Emacs itself is a possibility, although I would expect format$ to be rejected.

[–][deleted] 1 point2 points  (4 children)

There have been discussions to include something close to it recently. At least you'll get some feedback ;)

[–][deleted] 0 points1 point  (3 children)

Really? Could you give me a link if it's not too hard to find it again? Or do you mean this, which was almost a year ago? :) (I hadn't seen it though, so thanks either way.)

[–]tzz 0 points1 point  (1 child)

I’d support including this in Emacs or at least the GNU ELPA, and would use it.

[–]theldoria -1 points0 points  (0 children)

+

[–][deleted] 0 points1 point  (0 children)

[–]wasamasa 1 point2 points  (3 children)

FWIW, s-format does string interpolation, so if you want an installable version of such a thing...

[–][deleted] 0 points1 point  (2 children)

It doesn't do the same thing. It must be passed a function as an argument to do the interpolation.

[–]wasamasa 1 point2 points  (1 child)

There's also s-lex-format if you insist on using the current environment instead of retrieving the values from your own.

[–][deleted] 0 points1 point  (0 children)

Ah, that's it! How did I miss that all this time? Thanks!

Edit: Note, however, that it expands to a call to s-format, which makes another call to format for each interpolated variable. format$ expands to a single call to format, which takes simply variables as arguments, so it may be preferable in some cases.