From: Dmitry Bogatov <KAction@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Writing wrapper for defun/cl-defun
Date: Fri, 24 Jan 2014 23:30:08 +0400 [thread overview]
Message-ID: <20140124193008.GA31877@localhost> (raw)
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
reply other threads:[~2014-01-24 19:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140124193008.GA31877@localhost \
--to=kaction@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.