all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 15542@debbugs.gnu.org
Subject: bug#15542: 24.3.50; doc strings: cl-flet, cl-labels
Date: Sat, 8 Feb 2014 19:04:24 -0800 (PST)	[thread overview]
Message-ID: <c25b09fa-8656-4da4-bd5b-bec20658a7fa@default> (raw)
In-Reply-To: <87ob2i6yfr.fsf@building.gnus.org>

> > The doc strings should _describe the macros_.
> > And that includes specifying each parameter.
> 
> I don't really see how saying that "FUNC is a function"
> and "ARGLIST is an argument list" really would help anybody.
> Closing.

This is ridiculous.  There needs to be a description of
what these important macros are for or what their
parameters are.

Contrast this with pages of Common Lisp doc describing
every detail about them.

No, Emacs should not reproduce the Common Lisp doc.
That's not the point.  But it should give an overall
description that is better than what is there now.

And yes, each parameter should be described, including
BODY and FORM.

ARGLIST is not just "an argument list".  It is the
argument list for function FUNC (which should be called
FUNCTION).

Yes, when a parameter is named FUNCTION and its value
can be any function there is no need to also say that
the value is a function.  That much you got right.
Other than that (i.e., renaming the parameter to FUNCTION),
each of the other parameters needs to be described.

And the macros themselves need better descriptions.
"Temporary function bindings" is misleading in a couple
of ways, for instance.  Only one of them is that it is
not about _time_ when scoping is lexical.  It is better
(as was done for cl-flet) to speak of "local" rather
than "temporary".

The other is the ambiguity of the phrase "function
bindings" - that should be clarified to say bindings of
function names (symbols) to function definitions.

Or even better, just say what is said for cl-flet:
"make local function definitions" - no ambiguity about
what bindings are meant.

And what is this gobbledygook: "scoping is lexical,
but capturing them in closures will only work if
`lexical-binding' is in use."  What does "work" mean
here?  This is a description that only a mother could
love, i.e., it means something only to the person who
implemented the macro.

Tell us, if it is important, what lexical scoping is,
if bindings are not captured in closures that work.
And if it is not important then don't say it at all.






      reply	other threads:[~2014-02-09  3:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-06 21:13 bug#15542: 24.3.50; doc strings: cl-flet, cl-labels Drew Adams
2014-02-08  4:06 ` Lars Ingebrigtsen
2014-02-09  3:04   ` Drew Adams [this message]

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=c25b09fa-8656-4da4-bd5b-bec20658a7fa@default \
    --to=drew.adams@oracle.com \
    --cc=15542@debbugs.gnu.org \
    --cc=larsi@gnus.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.