all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to replace format-like codes in a string?
@ 2016-11-11  8:25 Marcin Borkowski
  2016-11-11  8:48 ` Joost Kremers
  0 siblings, 1 reply; 4+ messages in thread
From: Marcin Borkowski @ 2016-11-11  8:25 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-13 10:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-11  8:25 How to replace format-like codes in a string? Marcin Borkowski
2016-11-11  8:48 ` Joost Kremers
2016-11-11 12:19   ` Marcin Borkowski
2016-11-13 10:29     ` Joost Kremers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.