unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Juri Linkov <juri@linkov.net>, martin rudalics <rudalics@gmx.at>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 26243@debbugs.gnu.org
Subject: bug#26243: 25.1; `dired-pop-to-buffer' warning
Date: Mon, 29 Jul 2019 17:53:52 -0700 (PDT)	[thread overview]
Message-ID: <1628bf91-2d28-486d-85e5-63ac32c1ede4@default> (raw)
In-Reply-To: <87sgqompjl.fsf@mail.linkov.net>

> Yes, either 'pop-to-buffer' or 'dired-mark-pop-up'.  If 'dired-mark-
> pop-up'
> doesn't suit the needs due to its narrow applicability, then a more
> general
> 'pop-to-buffer' should be used.  'dired-pop-to-buffer' was an ugly
> wrapper
> around 'pop-to-buffer' with some additions that now should be specified
> as ACTION args of 'display-buffer' (an example is in 'dired-mark-pop-
> up').
> I don't understand why Drew still uses 'dired-pop-to-buffer'.

I use `dired-pop-to-buffer' in more than one place
in my code (Dired+).  (I use a different definition
of it, but that's not really important here.  I also
use a different definition of `dired-mark-pop-up'.)

`dired-pop-to-buffer' shouldn't have been declared
"obsolete" in my opinion.  But in any case, surely
`dired-mark-pop-up' can't be used to do anything
like what it does.  (And no, `pop-to-buffer' isn't
an adequate replacement for it either.)

> some additions that now should be specified
> as ACTION args of 'display-buffer' (an example
> is in 'dired-mark-pop-up').

FWIW, we apparently disagree about whether using
`display-buffer' ACTION args is the way to do things.
We likely have different ideas about what is elegant
and what is ugly. ;-)  When a doc string resorts to
telling users things like this, I'd say we're already
veering off the elegant road:

 "use the Customization interface to add a new rule
  to `display-buffer-alist' where condition regexp is
  \"^ \\*Marked Files\\*$\", action argument symbol
  is `window-height' and its value is nil."






  reply	other threads:[~2019-07-30  0:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-24 18:21 bug#26243: 25.1; `dired-pop-to-buffer' warning Drew Adams
2019-07-26 11:13 ` Lars Ingebrigtsen
2019-07-29 15:16   ` martin rudalics
2019-07-29 22:41     ` Juri Linkov
2019-07-30  0:53       ` Drew Adams [this message]
2019-07-30 11:35       ` Lars Ingebrigtsen
2019-07-30 19:08         ` Drew Adams

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=1628bf91-2d28-486d-85e5-63ac32c1ede4@default \
    --to=drew.adams@oracle.com \
    --cc=26243@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=larsi@gnus.org \
    --cc=rudalics@gmx.at \
    /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).