From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 19571@debbugs.gnu.org
Subject: bug#19571: 25.0.50; `display-buffer-alist': ALIST is completely undefined
Date: Mon, 12 Jan 2015 18:07:27 +0200 [thread overview]
Message-ID: <83387g56f4.fsf@gnu.org> (raw)
In-Reply-To: <d336a089-dd44-4539-bdd3-3468b2c0b735@default>
> Date: Sun, 11 Jan 2015 21:14:47 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 19571@debbugs.gnu.org
>
> > > ALIST is mentioned only here:
> > >
> > > ACTION is a cons cell (FUNCTION . ALIST), where FUNCTION is a
> > > function or a list of functions. Each such function should
> > > accept two arguments: a buffer to display and an alist of the
> > > same form as ALIST. See `display-buffer' for details.
> > >
> > > "of the same form as ALIST"? Really? What form is that? Where is
> > > *anything* said about the form of ALIST?
> >
> > It's an alist. And you are referred to the documentation of
> > 'display-buffer' for details. I see nothing wrong with that.
>
> No, you are referred to `display-buffer' for ACTION - for info about
> everything in the ACTION paragraph.
Since (see above) "ACTION is a cons cell (FUNCTION . ALIST)",
describing ACTION also describes ALIST, which is part of ACTION. IOW,
"everything in the ACTION paragraph" includes ALIST.
> Nothing says that the ALIST here is related to the ALIST mentioned
> for `display-buffer', at all. Or if it is related somehow, nothing
> says how it is related.
The documentation of 'display-buffer' describes ACTION, and as part of
that describes ALIST. See below.
> The ALIST mentioned for `display-buffer' is described in its doc
> string only as "an arbitrary association list (alist)." Arbitrary.
That's not all 'display-buffer's doc has to say about ALIST. It also
says:
The `display-buffer' function builds a function list and an alist
by combining the functions and alists specified in
`display-buffer-overriding-action', `display-buffer-alist', the
ACTION argument, `display-buffer-base-action', and
`display-buffer-fallback-action' (in order). Then it calls each
function in the combined function list in turn, passing the
buffer as the first argument and the combined alist as the second
argument, until one of the functions returns non-nil.
This explicitly tells that ALIST is passed as argument to each
function in the list, and should be interpreted and handled by these
functions. And now it should be clear why ALIST is arbitrary: its
form and semantics are entirely up to the author of the called
functions.
> In that case, we are left wondering, not about some predefined but
> unspecified form that ALIST must have, but rather what could possibly
> even be meant by the "form" that it takes concretely. IOW, we wonder
> what kind of form conformance is required for the alist arg that
> FUNCTION must accept - in what way must it agree with the "form" of
> ALIST?
I don't understand the cause of your confusion about the form. The
form of an alist is well known (and the doc string of 'display-buffer'
even spells out its full name -- "association list" -- to make it even
more clear. What else should or could be said about the _form_ of an
alist whose components are up to the person or program that creates
that alist??
> But do with the doc string what you like. If you find it perfectly
> clear, more power to you. I'm just reporting that I find it
> confusing and not so helpful. HTH.
I'm sorry, but I don't see how your report could be used to improve
the docs. You claim that information is missing which is actually
there, and I pointed it out above. You didn't identify any confusing
parts in the docs, nor suggested improvements to the existing text.
Would you please re-read the doc strings with the above in mind, and
point out what's confusing and/or suggest how to improve the existing
documentation?
next prev parent reply other threads:[~2015-01-12 16:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<5526ae92-4543-48d1-b553-7524dd9ff984@default>
[not found] ` <<834mrw6542.fsf@gnu.org>
2015-01-12 5:14 ` bug#19571: 25.0.50; `display-buffer-alist': ALIST is completely undefined Drew Adams
2015-01-12 16:07 ` Eli Zaretskii [this message]
[not found] ` <<d336a089-dd44-4539-bdd3-3468b2c0b735@default>
[not found] ` <<83387g56f4.fsf@gnu.org>
2015-01-18 21:12 ` Drew Adams
2015-01-19 16:07 ` Eli Zaretskii
2015-01-12 2:12 Drew Adams
2015-01-12 3:38 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83387g56f4.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=19571@debbugs.gnu.org \
--cc=drew.adams@oracle.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).