GNU bug report logs - #15542
24.3.50; doc strings: cl-flet, cl-labels

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 6 Oct 2013 21:15:02 UTC

Severity: minor

Found in version 24.3.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15542 in the body.
You can then email your comments to 15542 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15542; Package emacs. (Sun, 06 Oct 2013 21:15:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 06 Oct 2013 21:15:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; doc strings: cl-flet, cl-labels
Date: Sun, 6 Oct 2013 14:13:37 -0700 (PDT)
The doc strings should _describe the macros_.
And that includes specifying each parameter.

In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-09-30 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15542; Package emacs. (Sat, 08 Feb 2014 04:08:01 GMT) Full text and rfc822 format available.

Message #8 received at 15542 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 15542 <at> debbugs.gnu.org
Subject: Re: bug#15542: 24.3.50; doc strings: cl-flet, cl-labels
Date: Fri, 07 Feb 2014 20:06:00 -0800
Drew Adams <drew.adams <at> oracle.com> writes:

> 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.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




bug closed, send any further explanations to 15542 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 08 Feb 2014 04:08:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15542; Package emacs. (Sun, 09 Feb 2014 03:05:02 GMT) Full text and rfc822 format available.

Message #13 received at 15542 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 15542 <at> debbugs.gnu.org
Subject: RE: bug#15542: 24.3.50; doc strings: cl-flet, cl-labels
Date: Sat, 8 Feb 2014 19:04:24 -0800 (PST)
> > 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.





Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 09 Feb 2014 23:09:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 15542 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 10 Feb 2014 07:55:05 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 10 Mar 2014 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 160 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.