|
From: | Alexis |
Subject: | Re: Defining functions on the fly |
Date: | Mon, 15 Jun 2015 20:37:03 +1000 |
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
Seems (intern... is not evaluated at this point: (defvar pfxd "pfxd-") (defun (intern (concat pfxd "-foo")) ())
You're right, sorry! When i use `intern' like this, it's in the context of quasiquoting, e.g.:
(eval `(defun ,(intern (concat "ewmctrl-select-window-" chosen-char "-for-action")) () ,(concat "Select window '" chosen-char "' for an action.") (interactive) (ewmctrl--dispatch-action ,chosen-char)))
Alexis.
[Prev in Thread] | Current Thread | [Next in Thread] |