all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'martin rudalics'" <rudalics@gmx.at>
Cc: 7533@debbugs.gnu.org
Subject: bug#7533: 24.0.50; `dired-mark-pop-up': delete frame afterwards if `pop-up-frames'
Date: Fri, 6 Apr 2012 07:44:08 -0700	[thread overview]
Message-ID: <B5D966871D904817AFA2B0CA677F73A6@us.oracle.com> (raw)
In-Reply-To: <4F7EF782.6020103@gmx.at>

>  > emacs -Q
>  > (setq special-display-regexps '("[ ]?[*][^*]+[*]"))
>  > (setq pop-up-frame t)
> 
> I suppose you mean (setq pop-up-frames t)

Yes.

> but apparently this variable is no more supported by `display-buffer'
> (I'm not sure whether that's by design).

I don't know what you mean by that.  Dunno whether it is supported by
`display-buffer, but I do still use `pop-up-frames' and it works fine in general
(apart from this bug, AFAIK).  And I thought you took care to ensure that it
did, for Emacs 24.

>  > C-x d whatever-dir
>  > Mark 4 files for deletion.  Hit `x'.  Answer `yes'.
>  > The *Deletions* frame remains displayed.
> 
> Would the attached patch fix it?

For my own complete setup, yes.  But that's no doubt because I take other
measures elsewhere.

For the recipe I gave, however (see above), no.  The separate `*Deletions*'
frame popped up just becomes iconified.  It is still available as a frame (and
as a buffer).  It is still in the list of frames, and it is thus shown in the MS
Windows task bar.

And on Windows at least, iconification is quite distracting.  The frame does not
simply disappear (and simultaneously get added to the task bar).  The frame
zooms down to the task bar in an animated fashion.  Quite annoying.

There is no need for either the frame or the window - or the buffer for that
matter, after the deletions are done (or the copies or whatever
`dired-mark-pop-up' was used for).

By Occam's razor, no need means Emacs should not keep these things around
vestigially - especially not so that users encounter them. 

> This is NOT a generic fix - it might fail miserably if the buffer in
> question is shown in two windows simultaneously.  Apparently 
> this is no great issue in the case at hand since
> `dired-pop-to-buffer' already calls `get-buffer-window'.
> I earlier provided a variable called `display-buffer-window'
> for this and related issues but Stefan didn't like it.

FWIW, the fix I sent still works.  Perhaps it can be improved upon to satisfy
whatever other needs you see that it does not quite satisfy?

One way or another, the regression needs to be fixed.  Things were OK back in
Emacs 22.  There should be no reason why we cannot make them OK again in this
regard.

In Emacs 22 the buffer was not shown in a separate frame, disrespecting
`special-display-regexps'.  I prefer (slightly) that the latter be respected, so
that the buffer is shown in a separate frame.  But only if the frame, like a
pop-up window, is completely removed when done.

Given the choice between your fix and the Emacs 22 behavior, I vastly prefer the
latter: no distraction, simple, over and done with, never see `*Deletions*' or
whatever again.

Thanks for trying to fix this, Martin.  I hope we can find a solution that is
satisfactory.  The fix I sent is good enough for me, but I understand if it is
not good enough for you.






  reply	other threads:[~2012-04-06 14:44 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-02 18:35 bug#7533: 24.0.50; `dired-mark-pop-up': delete frame afterwards if `pop-up-frames' Drew Adams
2010-12-02 19:05 ` martin rudalics
2010-12-02 19:22   ` Drew Adams
2010-12-03  8:17     ` martin rudalics
2010-12-03 16:22       ` Drew Adams
2010-12-03 18:16         ` martin rudalics
2010-12-03 18:33           ` Drew Adams
2010-12-03 18:41             ` martin rudalics
2010-12-04 22:44               ` Chong Yidong
2010-12-16 18:27                 ` Drew Adams
2010-12-17  6:32                   ` martin rudalics
2010-12-17 15:32                     ` Drew Adams
2010-12-17 16:12                       ` martin rudalics
2010-12-17 16:55                         ` Drew Adams
2010-12-17 18:09                           ` martin rudalics
2010-12-17 18:40                             ` Drew Adams
2010-12-21  6:48                           ` Chong Yidong
2010-12-03 20:27       ` Stefan Monnier
2012-04-05 20:23         ` Drew Adams
2012-04-06 14:02           ` martin rudalics
2012-04-06 14:44             ` Drew Adams [this message]
2012-04-06 14:53               ` martin rudalics
2012-04-06 15:34                 ` Drew Adams
2012-04-06 15:47                   ` martin rudalics
2012-04-06 16:10                     ` Drew Adams
2012-04-06 16:56                       ` martin rudalics
2012-04-06 17:08                         ` Drew Adams
2012-04-18 14:32                           ` Drew Adams
2012-05-25 20:52                             ` Drew Adams
2012-05-26 17:55                               ` bug#7533: 24.0.50; `dired-mark-pop-up': delete frame afterwards if `pop-up-frames' [PATCH] Drew Adams
2012-05-27 13:21                                 ` martin rudalics
2012-05-27 14:33                                   ` Drew Adams
2011-01-18 22:14 ` bug#7533: 24.0.50; `dired-mark-pop-up': delete frame afterwards if `pop-up-frames' Drew Adams
2012-09-05 14:30 ` martin rudalics
2012-09-05 14:33   ` Drew Adams
2012-10-03  9:11     ` martin rudalics
2012-10-03 15:52     ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B5D966871D904817AFA2B0CA677F73A6@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=7533@debbugs.gnu.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 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.