[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to replace format-like codes in a string?
From: |
Marcin Borkowski |
Subject: |
How to replace format-like codes in a string? |
Date: |
Fri, 11 Nov 2016 09:25:07 +0100 |
User-agent: |
mu4e 0.9.17; emacs 26.0.50.3 |
Hi list,
I want to write a function like `format', which gets a string with some
codes embedded (like "%a", "%b" etc., and "%%" to get a percentage
sign), and convert them to something (say, "%a" to the value of var-a,
"%b" to var-b etc.). Is there any facility in Elisp to help with that
or do I have to do a search-and-replace manually?
Best,
--
Marcin Borkowski
- How to replace format-like codes in a string?,
Marcin Borkowski <=