From: "João Távora" <joaotavora@gmail.com>
To: Bob Rogers <rogers@rgrjr.com>
Cc: Ahmed Khanzada <me@enzu.ru>, emacs-devel@gnu.org
Subject: Re: Plan of attack or division of labor for documenting cl-lib
Date: Sat, 2 Dec 2023 21:54:17 +0000 [thread overview]
Message-ID: <CALDnm53CTJUnp=0v534nex3vpncprDYLSAzSEvg=GSu0tamx+A@mail.gmail.com> (raw)
In-Reply-To: <25963.37003.97339.88214@orion.rgrjr.com>
On Sat, Dec 2, 2023 at 8:16 PM Bob Rogers <rogers@rgrjr.com> wrote:
> I was wondering if we should portion out work so that no one duplicates
> effort?
> Good idea.
Yes. Various notes, in no particular order of importance:
* I've got a number of docstring already done in a branch
called feature/cl-lib-improvements, mostly to cl-seq.el
* In this branch I'm not only doing docstring improvements,
but also reworking some internals, adding tests, and improving
performance of some utilities.
* I propose we continue work on this branch, as it is easy
to check (via vc-print-log, vc-version-history, or whatever
your preferred Git tool is) what has already been done and
by whom.
* To simplify things, I've pushed this branch over to my GitHub
fork of Emacs
https://github.com/joaotavora/emacs
I can grant commit privileges to anyone who messages me
privately with an interest in contributing this work. Of
course, you can also contribute patches to this branch via
email (either via the bug tracker or by messaging me).
* After all the work has been done, or has reached some
kind of milestone, we can integrate it in Emacs proper.
* It is important to check that you have your FSF copyright
assignments in place.
* It is also useful to note that there is a open-source
version of the Common Lisp specification with a license
that is much more permissive than LispWork's Hyperspec.
I haven't yet checked the license to see if it is GPL compatible
and thus if we can derive some work from it. Here is the URL:
https://cl-community-spec.github.io/pages/index.html
even if the license isn't compatible it is a nice resource
nonetheless.
* When editing docstrings, I'd say it's a good idea to edit
them (even if they've been already been touched by someone
else) so that the language and formulations of common elements
are consistent. For example, I've been editing the last
line of docstrings so they look like:
(fn FUNCTION SEQ &key FROM-END START END INITIAL-VALUE KEY...)
instead of
(fn FUNCTION SEQ [KEYWORD VALUE]...)"
And then I try relatively hard to describe the keyword arguments
(of 'cl-reduce', in this case) in the order that they appear in
this list.
* Sometimes I also add this formulaic reference to the manual:
TEST and KEY are keyword arguments. See info node
`(cl) Program Structure > Argument Lists' for details.
But I've not yet decided if it's a good idea to repeat this
in every docstring. Maybe, given the apparent unfamiliarity
with keyword arguments by some Emacs developers.
* Be very careful when describing these utils as some of
them aren't perfect implementations of the CL spec and we
may need to remain bug-compatible. cl-loop is a notable example,
but other more innocent-looking utils like cl-mismatch are
affected. In other cases, our utils go some unneeded extra miles
like cl-set-difference guaranteeing relative order. In this
last case we shouldn't describe that in the docstring, IMO, but
that feature must stay. In the case of cl-mismatch I'm thinking
we should fix the bugs and deal with any flak.
* Unit tests are very welcome too. Place them in
test/lisp/emacs-lisp/cl-lib-tests.el
test/lisp/emacs-lisp/cl-seq-tests.el
test/lisp/emacs-lisp/cl-macs-tests.el
Let me know what you think of this plan,
João
next prev parent reply other threads:[~2023-12-02 21:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-02 14:46 Plan of attack or division of labor for documenting cl-lib Ahmed Khanzada
2023-12-02 20:16 ` Bob Rogers
2023-12-02 21:54 ` João Távora [this message]
2023-12-03 0:50 ` Bob Rogers
[not found] ` <25963.53547.739157.559536@orion.rgrjr.com>
2023-12-03 19:55 ` Ahmed Khanzada
2023-12-04 3:10 ` Richard Stallman
2023-12-04 4:57 ` tomas
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='CALDnm53CTJUnp=0v534nex3vpncprDYLSAzSEvg=GSu0tamx+A@mail.gmail.com' \
--to=joaotavora@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=me@enzu.ru \
--cc=rogers@rgrjr.com \
/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.