|
From: | Emanuel Berg |
Subject: | Re: pattern-identification-data-extraction-format-string |
Date: | Wed, 25 Mar 2015 01:58:29 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Philipp Stephani <p.stephani2@gmail.com> writes: > Using the 's' package you could simplify this to: > > (require 's) (defun match-data-format (data match > format-str) (apply #'message format-str (cdr > (s-match match data)))) I never heard of the 's' package but this functionality should in some form be included as a default function! Apart from being useful it is great PR for Elisp. It would be the first thing I'd show a C programmer, for example. -- underground experts united
[Prev in Thread] | Current Thread | [Next in Thread] |