2

This question already has an answer here:

On python, you can repeat a value several times inside a string when formatting it:

>>> print "Hello, {name}, how are you, {name}?".format(name="George")
    "Hello, George, how are you, George?"

But I don't know how to achieve this with elisp. I'm trying to make a function that returns the GPLv3 copyright text (This file is part of Foobar. Foobar is free software:) with the name of any projectile project on it.

marked as duplicate by Adobe, ffevotte, Andrew Swann, itsjeyd, Kaushal Modi May 21 '15 at 11:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

Still another solution:

(let ((name "George"))
  (format "%s" (concat "Hello, " name ", how are you, " name "?")))

Not the answer you're looking for? Browse other questions tagged or ask your own question.