From: martin rudalics <rudalics@gmx.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Documenting buffer display
Date: Mon, 22 Oct 2018 21:14:52 +0200 [thread overview]
Message-ID: <5BCE21AC.6030904@gmx.at> (raw)
In-Reply-To: <838t2qt79v.fsf@gnu.org>
>> But asking again: How else would you address a complaint like
>>
>> Telling someone that they must instead use
>> `display-buffer' ACTION hoops to accomplish
>> the same thing leads them down the garden path,
>> on a wild goose chase, over the river & through
>> the woods, and around Robin Hood's barn. IMO.
>>
>> if not with the help of an example where every single step can be
>> executed right in place and the effect of that step seen right away?
>
> Was that complain before or after I reworked the doc strings?
After, I suppose. It's from a mail Drew posted yesterday.
> I recommend against the removal. People who are tired at night
> (myself included) are free not to read the doc string, but that
> doesn't mean there's something wrong with it. A flexible interface
> always requires a long documentation.
Sooner or later the number of recognized action alist entries will
become too large.
>> 'display-buffer' is a function that delegates
>> its work to action functions (Drew's garden path) and guides the
>> latter with the help of action alists which have now their separate
>> entry in the Elisp manual. The "further down" in the garden path an
>> information is found, the more Drew will complain. The "further up"
>> everybody else will complain.
>
> Complaints are not the only thing to guide us in this case.
Complaints are never a good guide. But here it's hard to find the
right balance of correctness and completeness on the one side and
conciseness on the other.
>> While this would be appropriate for 'switch-to-buffer-other-window' it
>> may be wrong for 'pop-to-buffer-same-window' as soon as the user has
>> customized 'display-buffer-alist'. We can't avoid the garden path of
>> 'display-buffer' here and elsewhere.
>
> I don't think we cannot avoid it, we just need to qualify what I wrote
> with the "not customized" caveat. Nothing a single sentence couldn't
> fix.
Trevor Murphy on emacs-devel
I just noticed that `find-dired' and friends use `switch-to-buffer' as
a subroutine. Since this does not go through the `display-buffer'
mechanism, it’s really hard for me to control where Emacs displays the
Find buffer. I’m currently advising `find-dired' to use
`pop-to-buffer' instead.
to which Stefan replied
There's pop-to-buffer-same-window.
Which means that people want 'pop-to-buffer-same-window' instead
because they can customize it to display the buffer in _another_
window. Which further means that a "not customized" caveat would be
counterproductive here.
Any explanation of what 'pop-to-buffer-same-window' does without
referring the reader to 'display-buffer' is misleading, at the very
least.
martin
next prev parent reply other threads:[~2018-10-22 19:14 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-20 12:20 Documenting buffer display martin rudalics
2018-10-20 13:21 ` Eli Zaretskii
2018-10-20 18:02 ` martin rudalics
2018-10-21 12:56 ` Eli Zaretskii
2018-10-22 9:06 ` martin rudalics
2018-10-22 13:55 ` Eli Zaretskii
2018-10-22 19:14 ` martin rudalics [this message]
2018-10-22 19:27 ` Eli Zaretskii
2018-10-23 8:58 ` martin rudalics
2018-10-23 11:26 ` Pierre-Yves Luyten
2018-10-23 13:45 ` martin rudalics
2018-10-23 17:40 ` Stefan Monnier
2018-10-23 14:04 ` Drew Adams
2018-10-23 18:18 ` martin rudalics
2018-10-23 15:18 ` Eli Zaretskii
2018-10-23 18:23 ` martin rudalics
2018-10-23 19:07 ` Eli Zaretskii
2018-10-24 9:44 ` martin rudalics
2018-10-24 14:48 ` Eli Zaretskii
2018-10-24 17:40 ` martin rudalics
2018-10-24 18:25 ` Eli Zaretskii
2018-10-25 20:42 ` Juri Linkov
2018-10-23 15:52 ` Alan Mackenzie
2018-10-23 18:25 ` martin rudalics
2018-11-08 19:25 ` martin rudalics
2018-10-22 1:39 ` Michael Welsh Duggan
2018-10-22 5:54 ` Eli Zaretskii
2018-10-20 15:22 ` Drew Adams
2018-10-20 18:02 ` martin rudalics
2018-10-20 18:24 ` Drew Adams
2018-10-21 8:22 ` martin rudalics
2018-11-04 9:06 ` martin rudalics
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=5BCE21AC.6030904@gmx.at \
--to=rudalics@gmx.at \
--cc=eliz@gnu.org \
--cc=emacs-devel@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.