From a67eaab1d1d0fbd163def1f686721e4f7c4c64f9 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 10 Aug 2016 16:59:33 -0700 Subject: [PATCH] Add imalison:named-builder --- dotfiles/emacs.d/README.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 3c776103..93a531be 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -486,6 +486,14 @@ the original macro (which is passed as the second argument to (cons function-name (cons (quote ,builder-name) args))))) #+END_SRC +~imalison:named-builder~ runs ~imalison:named-builder-builder~ with the +convention that original macro to modify is the concatenation of the +new macro name and the -fn suffix. +#+BEGIN_SRC emacs-lisp +(defmacro imalison:named-builder (name) + `(imalison:named-builder-builder + ,name ,(intern (concat (symbol-name name) "-fn")))) +#+END_SRC *** Prefix Alternatives Prefix alternatives is a macro that builds an interactive function that selects one of a collection of functions that are provided to the