all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Juri Linkov <juri@jurta.org>
Cc: 1806@debbugs.gnu.org
Subject: bug#1806: dired-pop-to-buffer in wrong place
Date: Thu, 04 Oct 2012 09:44:53 +0200	[thread overview]
Message-ID: <506D3E75.4090403@gmx.at> (raw)
In-Reply-To: <87y5jnqmma.fsf@mail.jurta.org>

 > Do you think this is a good formulation:
 >
 > === modified file 'lisp/dired.el'
 > --- lisp/dired.el	2012-09-30 12:11:18 +0000
 > +++ lisp/dired.el	2012-10-03 23:28:07 +0000
 > @@ -248,6 +248,10 @@ (defvar dired-shrink-to-fit t
 >  ;; I see no reason ever to make this nil -- rms.
 >  ;;  (> baud-rate search-slow-speed)
 >    "Non-nil means Dired shrinks the display buffer to fit the marked files.")
 > +(make-obsolete-variable 'dired-shrink-to-fit
 > +			"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." "24.3")

I think it's OK.  Though we should decide generally whether we (1) want
an exact match for such buffers (that is, including space and asterisks)
and (2) whether obsoletion strings can be that long (I have not found
any when I searched recently).

 >  (defvar dired-file-version-alist)
 >
 > @@ -2940,6 +2943,7 @@ (defun dired-mark-prompt (arg files)
 >
 >  (defun dired-pop-to-buffer (buf)
 >    "Pop up buffer BUF in a way suitable for Dired."
 > +  (declare (obsolete dired-mark-pop-up "24.3"))
 >    (let ((split-window-preferred-function
 >  	 (lambda (window)
 >  	   (or (and (let ((split-height-threshold 0))
 > @@ -2981,6 +2985,11 @@ (defun dired-mark-pop-up (buffer-or-name
 >  window is not shown if there is just one file, `dired-no-confirm'
 >  is t, or OP-SYMBOL is a member of the list in `dired-no-confirm'.
 >
 > +By default Dired shrinks the display buffer to fit the marked files.
 > +To disable this, 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.
 > +
 >  FILES is the list of marked files.  It can also be (t FILENAME)
 >  in the case of one marked file, to distinguish that from using
 >  just the current file.

We should add the detailed code somewhere, probably to the Elisp manual.
As an example, I didn't know that using an ACTION argument where the
FUNCTION component is nil would work in the first place.

 > PS: Also I noticed that there are no new actions in the Customization
 > interface for `display-buffer-alist'.  I guess you omitted the action
 > `display-buffer-at-bottom' because it's not yet ready for prime time.
 > But is there a reason to not add `display-buffer-below-selected' to
 > `display-buffer--action-function-custom-type'?

No.  I didn't recall that option any more (although I must have done so
earlier because I added `display-buffer-in-previous-window' to it).

There are further issues.

(1) Document alist entries like `window-height' and `window-width'
somehwere without blowing up the doc-string of `display-buffer'.

(2) Decide whether and how we can use `window-height' and `window-width'
to replace `split-height-threshold' and `split-width-threshold'.  Or
maybe find some other substitute.

(3) Include alist entries to specify a minimum height/width for a window
to reuse (there's a request for such a feature in a bug report).

(4) As soon as we switch to pixel sizes allow to specify all these
options in terms of pixels too.

(5) Handle the delayed evaluation of `fit-window-to-buffer' in
`vc-diff-finish' somehow.  Currently, we can't pass this to
`display-buffer' because we don't know the final size of the buffer when
we call it.  So this means that we have to find out whether
`display-buffer' would have called `fit-window-to-buffer' in the first
place and, if so, call `fit-window-to-buffer' when we know the final
buffer size.  Tedious to do.

(6) Related: Move `display-buffer-mark-dedicated' to the alists.

martin





  parent reply	other threads:[~2012-10-04  7:44 UTC|newest]

Thread overview: 166+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-06 15:29 bug#1806: dired-pop-to-buffer in wrong place Juri Linkov
2009-01-06 17:33 ` martin rudalics
2009-01-06 17:54   ` Juri Linkov
2009-01-06 18:25     ` martin rudalics
2009-01-06 21:09       ` Juri Linkov
2009-01-07 10:27         ` martin rudalics
2009-01-07 12:09           ` Juri Linkov
2009-01-07 15:34             ` martin rudalics
2009-01-07 17:47               ` Juri Linkov
2009-01-07 20:00                 ` martin rudalics
2009-01-08  7:42                 ` martin rudalics
2009-01-08 22:55                   ` Juri Linkov
2009-01-09  9:30                     ` martin rudalics
2009-01-13 23:46                       ` Juri Linkov
2009-01-14 14:20                         ` martin rudalics
2009-01-14 18:00                           ` Stefan Monnier
2009-01-14 21:55                             ` martin rudalics
2009-01-14 22:19                               ` Stefan Monnier
2009-01-15 10:36                                 ` martin rudalics
2009-01-15 14:59                                   ` Stefan Monnier
2009-01-15 22:59                                     ` Juri Linkov
2009-01-16  2:19                                       ` Stefan Monnier
2009-01-20 15:59                                         ` martin rudalics
2009-01-21  2:51                                           ` Stefan Monnier
2009-04-28 22:58                                           ` Juri Linkov
2009-04-29  7:13                                             ` martin rudalics
2009-04-29  9:54                                               ` Juri Linkov
2009-04-29 12:39                                                 ` martin rudalics
2009-04-30 11:47                                                   ` Juri Linkov
2009-04-29 15:28                                               ` Stefan Monnier
2009-04-30  9:06                                                 ` martin rudalics
2009-04-30 18:29                                                   ` Stefan Monnier
2009-05-01 10:04                                                     ` martin rudalics
2009-05-01 17:24                                                       ` Stefan Monnier
2009-05-02  6:59                                                         ` martin rudalics
2009-05-04 13:52                                                           ` Stefan Monnier
2009-05-04 16:40                                                             ` martin rudalics
2009-05-02 11:48                                                       ` Juri Linkov
2009-05-02 13:09                                                         ` martin rudalics
2009-05-02 13:54                                                           ` Juri Linkov
2009-05-02 18:53                                                             ` martin rudalics
2009-05-02 20:57                                                               ` Juri Linkov
2009-05-02 22:39                                                         ` Juri Linkov
2009-05-03  7:50                                                           ` martin rudalics
2009-05-03 11:46                                                             ` Juri Linkov
2009-05-03 19:02                                                               ` martin rudalics
2009-05-05  7:04                                                 ` martin rudalics
2009-05-17 19:54                                                   ` Juri Linkov
2009-05-18  8:11                                                     ` martin rudalics
2009-05-18 10:59                                                       ` Roland Winkler
2009-05-18 12:14                                                         ` martin rudalics
2009-05-18 15:04                                                           ` Roland Winkler
2009-05-18 19:44                                                             ` Stefan Monnier
2009-05-19  0:09                                                             ` Juri Linkov
2009-05-18  8:11                                                     ` martin rudalics
2009-05-18 18:49                                                       ` Glenn Morris
2009-05-19  0:19                                                         ` Juri Linkov
2009-10-03  2:20                                                         ` Glenn Morris
2009-10-05 21:45                                                           ` Juri Linkov
2009-10-05 22:27                                                             ` Stephen Berman
2009-10-06  2:53                                                               ` Glenn Morris
2009-10-06  8:17                                                                 ` Stephen Berman
2009-10-06 22:38                                                                 ` Juri Linkov
2009-10-06  2:52                                                             ` Glenn Morris
2009-10-06  3:55                                                               ` Stefan Monnier
2009-10-06  7:22                                                                 ` Glenn Morris
2009-10-06  8:19                                                                   ` Stefan Monnier
2009-10-07  2:58                                                                     ` Glenn Morris
2009-10-07  5:54                                                                       ` Stefan Monnier
2009-10-06  8:56                                                                   ` martin rudalics
2009-10-06 16:19                                                                     ` Glenn Morris
2009-10-06 16:46                                                                       ` Stefan Monnier
2009-10-06 22:38                                                                       ` Juri Linkov
2009-10-07  2:58                                                                         ` Glenn Morris
2009-10-12 20:32                                                                           ` Juri Linkov
2009-10-12 22:57                                                                             ` Glenn Morris
2009-10-13 22:37                                                                               ` Juri Linkov
2009-10-14 20:35                                                                                 ` Juri Linkov
2009-10-15  5:39                                                                                   ` martin rudalics
2009-10-15 22:29                                                                                     ` Juri Linkov
2009-10-16  0:30                                                                                       ` Stefan Monnier
2009-10-16  7:05                                                                                         ` martin rudalics
2009-10-16 13:09                                                                                           ` Stefan Monnier
2009-10-16 13:25                                                                                             ` martin rudalics
2009-10-16 15:37                                                                                               ` Stefan Monnier
2009-10-16 16:35                                                                                                 ` martin rudalics
2009-10-16 20:41                                                                                                   ` Stefan Monnier
2009-10-17  9:03                                                                                                     ` martin rudalics
2009-10-18  1:40                                                                                                       ` Stefan Monnier
2009-10-18 10:24                                                                                                         ` martin rudalics
2009-10-18 14:45                                                                                                           ` Stefan Monnier
2009-10-18 15:34                                                                                                             ` martin rudalics
2009-10-19  2:08                                                                                                               ` Stefan Monnier
2009-10-19  7:36                                                                                                                 ` martin rudalics
2009-10-19 14:01                                                                                                                   ` Stefan Monnier
2009-10-19 15:16                                                                                                                     ` martin rudalics
2009-10-19 18:35                                                                                                                       ` Stefan Monnier
2009-10-20  7:35                                                                                                                         ` martin rudalics
2009-10-20 13:30                                                                                                                           ` Stefan Monnier
2009-10-20 15:14                                                                                                                             ` martin rudalics
2009-10-20 19:45                                                                                                                               ` Stefan Monnier
2009-10-16  7:05                                                                                       ` martin rudalics
2009-10-16  9:38                                                                                         ` Juri Linkov
2009-10-16 12:04                                                                                           ` martin rudalics
2009-10-16 16:10                                                                                             ` Glenn Morris
2009-10-16 13:15                                                                                           ` Stefan Monnier
2009-10-06 18:26                                                                     ` Glenn Morris
2009-10-06 22:38                                                                       ` Juri Linkov
2009-05-19  0:18                                                       ` Juri Linkov
2009-05-19  2:04                                                         ` Stefan Monnier
2009-01-14 23:37                               ` Juri Linkov
2009-01-15 10:37                                 ` martin rudalics
2009-01-15 23:00                                   ` Juri Linkov
2009-01-16 14:52                                     ` martin rudalics
2009-01-14 21:28                           ` Juri Linkov
2009-01-14 22:01                             ` martin rudalics
2009-01-14 23:16                               ` Stefan Monnier
     [not found]               ` <jwv63kpg30v.fsf-monnier+emacsbugreports@gnu.org>
2009-01-08 19:25                 ` martin rudalics
2009-01-08 22:59                   ` Juri Linkov
     [not found]                   ` <jwvy6xl9mz4.fsf-monnier+emacsbugreports@gnu.org>
2009-01-09  9:30                     ` martin rudalics
2009-01-09 17:19                       ` Stefan Monnier
2009-01-14 14:20                         ` martin rudalics
2009-01-14 18:00                           ` Stefan Monnier
2011-10-04 22:57                             ` Glenn Morris
2011-10-04 23:55                               ` Juri Linkov
2011-10-05 22:13                                 ` Chong Yidong
2011-10-05 23:23                                   ` Juri Linkov
2011-10-06  2:03                                     ` Chong Yidong
2011-10-06 15:20                                       ` Juri Linkov
2011-10-10 20:51                                         ` Juri Linkov
2009-01-08 14:31             ` Roland Winkler
2009-01-08 11:52           ` Carsten Dominik
2009-01-08 19:25             ` martin rudalics
2009-01-06 22:07     ` Stefan Monnier
2009-01-06 23:27       ` Juri Linkov
2009-01-07  4:23         ` Stefan Monnier
2012-09-22 13:24 ` martin rudalics
2012-09-22 23:54   ` Juri Linkov
2012-09-23  9:22     ` martin rudalics
2012-09-24  8:22       ` Juri Linkov
2012-09-24  9:40         ` martin rudalics
2012-09-25  8:05           ` Juri Linkov
2012-09-25  9:59             ` martin rudalics
2012-09-26  6:24               ` Juri Linkov
2012-09-26  8:48                 ` martin rudalics
2012-09-26 10:10                   ` Juri Linkov
2012-09-26 11:03                     ` martin rudalics
2012-09-27  8:01                       ` Juri Linkov
2012-09-27 17:32                         ` martin rudalics
2012-09-27 19:24                           ` Juri Linkov
2012-09-28  6:32                             ` martin rudalics
2012-09-28  9:38                               ` Juri Linkov
2012-09-28 13:14                                 ` martin rudalics
2012-09-28 15:27                                   ` Juri Linkov
2012-09-30 10:47                                     ` martin rudalics
2012-09-30 13:40                                       ` Juri Linkov
2012-10-03 23:29                                       ` Juri Linkov
2012-10-04  3:55                                         ` Drew Adams
2012-10-04  7:45                                           ` martin rudalics
2012-10-04 14:04                                             ` Drew Adams
2012-10-04  7:44                                         ` martin rudalics [this message]
2012-10-04  8:51                                           ` Juri Linkov
2012-10-04 13:17                                             ` martin rudalics
2012-09-26  3:16           ` Chong Yidong
2012-09-26  8:48             ` martin rudalics
2012-09-26 11:22               ` Juanma Barranquero

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=506D3E75.4090403@gmx.at \
    --to=rudalics@gmx.at \
    --cc=1806@debbugs.gnu.org \
    --cc=juri@jurta.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.