* Writing wrapper for defun/cl-defun
@ 2014-01-24 19:30 Dmitry Bogatov
0 siblings, 0 replies; only message in thread
From: Dmitry Bogatov @ 2014-01-24 19:30 UTC (permalink / raw)
To: help-gnu-emacs
Hello!
Currently, cl-defun allows keywords only after positional arguments.
I would like to generalize it. I managed to solve this following way:
1. put to value-slot of symbol actual function definition via
(cl-function)
2. define function-slot as macro, that rearranges arguments and
`funcall` them to value-slot.
Problem is that, for defmacro not to stay on my way, I have to define it
(defmacro ,name (&rest args)).
So in documentation (C-h f)<describe-function> I lose signature
information. Is it any way restore it or more intellegent way to archive
the same, something like Python __doc__ attribute?
PS. Please, keep me in CC, I am not subscribed.
--
Best regards, Dmitry Bogatov <KAction@gnu.org>,
Free Software supporter, esperantisto and netiquette guardian.
git://kaction.name/rc-files.git
GPG: 54B7F00D
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-24 19:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-24 19:30 Writing wrapper for defun/cl-defun Dmitry Bogatov
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.