From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: RE: `pop-up-frames' and binding/setting user options [was: Documenting buffer display]
Date: Tue, 23 Oct 2018 11:01:16 -0700 (PDT) [thread overview]
Message-ID: <939e2acd-f654-40c1-b595-4ec1fe1aab4d@default> (raw)
In-Reply-To: <jwv36swo9e1.fsf-monnier+gmane.emacs.devel@gnu.org>
> > Sure, we both acknowledged that. But why would you
> > choose to use an `other-frame' command for those
> > specific bookmarks for which it is not TRT? That's
> > the question.
>
> Because the user doesn't want to have to think about it. So he always
> uses the same key-binding and then configures display-buffer-alist to
> adjust the behavior for those corner cases where another frame is not
> the right destination.
Nothing wrong with doing that. That's similar to
using `special-display-buffer-names'. (Not the same,
but similar.)
There are alternative ways to get such an effect
(including by doing the same thing for a different
one of the bookmark-jump commands). We have
same-window, other-window, and other-frame. Any
of them could have its effect overridden in the
way you suggest.
And there are other approaches, including using
a command that calls `bookmark-jump' passing a
DISPLAY-FUNC argument what the user wants. That's
much more trivial for a user to do than fiddling
with `display-buffer-alist' to accomplish the same
thing.
None of this seems to me to be an argument against
`pop-up-frames'. Nor does it seem to be an argument
against having more than one bookmark-jump command,
for a different display behaviors.
See Eli's message today for reasons for the latter.
More generally, see his msg for general arguments
in favor of not promoting user customization of
`display-buffer-alist' as the starting point for
adjusting specific buffer display, especially
command-specific actions.
His arguments are mine too in this regard.
And I add user conveniences such as `pop-up-frames'
and `special-display-*' options to things that we
should promote, not discourage, as user starting
points for getting some specific buffer display
and window selection behavior.
`display-buffer-alist' is great to have. But
specific this-window, other-window, and other-frame
commands, as well as options such as `pop-up-frames'
and `special-display-*', are better starting points
for most users.
I don't object to `display-buffer-alist'.
I object to promoting its use to the exclusion of
other, simpler ways of doing some of what it does.
I object to _immediately_ throwing users down that
rabbit hole.
I recognize that `display-buffer' is a complex
subject, and its complete and correct doc is
bound to be somewhat hard to grasp. I don't
have a problem with the doc being complete and
correct - au contraire.
What I object to is having the doc end up being
_only_ that, or even pushing users to that as
the starting point. As Eli said tactfully,
`display-buffer-alist' should not be the _first
resort_. Emacs provides some simpler ways to
do some of what it offers, and those are better
starting points, in general.
next prev parent reply other threads:[~2018-10-23 18:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-21 16:10 `pop-up-frames' and binding/setting user options [was: Documenting buffer display] Drew Adams
2018-10-21 17:01 ` Eli Zaretskii
2018-10-22 9:06 ` martin rudalics
2018-10-22 14:16 ` Drew Adams
2018-10-22 19:15 ` martin rudalics
2018-10-22 20:42 ` Drew Adams
2018-10-23 8:58 ` martin rudalics
2018-10-23 14:13 ` Drew Adams
2018-10-23 17:35 ` Stefan Monnier
2018-10-23 18:01 ` Drew Adams [this message]
2018-10-23 18:20 ` Stefan Monnier
2018-10-23 18:28 ` Stefan Monnier
2018-10-23 23:05 ` Drew Adams
2018-10-23 22:57 ` Drew Adams
2018-10-23 18:19 ` 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=939e2acd-f654-40c1-b595-4ec1fe1aab4d@default \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.