GNU bug report logs -
#23486
25.0.93; Modules: features missing from make_function
Previous Next
Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>
Date: Mon, 9 May 2016 16:39:02 UTC
Severity: normal
Tags: moreinfo
Found in version 25.0.93
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 23486 <at> debbugs.gnu.org (full text, mbox):
Philipp Stephani <p.stephani2 <at> gmail.com> writes:
> As an alternative, if people feel this would require too many
> parameters, I'd propose reverting the change that adds the documentation
> string. A docstring without arglist is not very useful. We could also
> remove the arity parameters and have the C function check the arity
> itself.
Looking at this a bit closer, I do think this adds too many parameters,
and in particular, requiring to pass in names for positional parameters
just makes no sense. The names are never used (except for displaying
documentation).
But removing the docstring is not great. IMO, the right solution here
is to use a subr-like object instead of a lambda, as suggested in a
FIXME in emacs-module.c:
/* FIXME: Use a bytecompiled object, or even better a subr. */
Then the arity could be checked with `subr-arity' or similar.
This bug report was last modified 4 years and 163 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.