From: Drew Adams <drew.adams@oracle.com>
To: 15547@debbugs.gnu.org
Subject: bug#15547: 24.3.50; doc string of `isearch-cmds'
Date: Sat, 8 Feb 2014 18:42:41 -0800 (PST) [thread overview]
Message-ID: <10ad2e6b-7393-4ecd-9672-527484aee22d@default> (raw)
In-Reply-To: <60fb0470-bd15-447f-8e03-9ffc8eb57d0e@default>
> > > 1. The first element of the vector is missing from the
> > > description. It is the symbol `cl-struct-isearch--state'.
> > > The vector has 13 elements, not 12.
>
> I don't think it should say "vector" at all. It's a list of
> structs. That the structs are implemented internally as vectors
> should be irrelevant. I'll change the doc string.
No, it is not irrelevant. See below, about correspondences
with important Isearch variables, as one indication.
> > > 2. It would be a little clearer to say that the value is a *list*
> > > that is *used* as a stack.
>
> Uhm... I don't think that's necessary.
>
> > > 3. Better to just say "vectors", not "sets", since
> > > the order is important (and the reader is right-away presented
^^^^^^^^^^^^^^^^^^^^^^
> > > with the vector description).
These are vectors. They are sequences; they have order.
> > And I forgot perhaps the most important of all: please describe
> > each of the vector elements. Say what they correspond to, e.g.,
^^^^^^^^^^^^^^^^^^^^^^^
> > `isearch--state-barrier' corresponds to variable `isearch-barrier'
> > (which has a doc string describing it).
Without knowing those correspondences the code is impenetrable, and
anyone trying to make use of it (e.g., adapt parts of it) is at a
loss.
More generally, any Lisp programmer working with isearch code
these days needs to understand the things I reported that are
not clear.
There are many people out there who write their own code that
involves adaptation (and sometimes improvement) of distributed
Emacs code. They invent new features and sometimes better
ways of doing things. That is the point of free software, and
Emacs in particular.
Adding, rather than removing, obstacles to understanding is
perverse. It is akin to obfuscating code. The Isearch code
is particularly dense and deserves better documentation.
Users deserve better.
next prev parent reply other threads:[~2014-02-09 2:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-07 4:04 bug#15547: 24.3.50; doc string of `isearch-cmds' Drew Adams
2013-10-07 4:55 ` Drew Adams
2014-02-09 2:42 ` Drew Adams [this message]
2014-02-08 3:59 ` Lars Ingebrigtsen
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=10ad2e6b-7393-4ecd-9672-527484aee22d@default \
--to=drew.adams@oracle.com \
--cc=15547@debbugs.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.