unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Konrad Podczeck <konrad.podczeck@univie.ac.at>
To: martin rudalics <rudalics@gmx.at>
Cc: 37840@debbugs.gnu.org
Subject: bug#37840: Missing in the Emacs manuals:
Date: Mon, 28 Oct 2019 18:37:26 +0100	[thread overview]
Message-ID: <E3E2801C-625B-44D3-B1AA-A365488737C2@univie.ac.at> (raw)
In-Reply-To: <38fdbe2c-5f1a-3b37-da5f-e2fa6411d8e1@gmx.at>

Thanks for your reply. With the "switch-to-buffer-obey-display-actions" option, opening of files works according to "display-buffer-alist". However, now the following problem appears. E.g., I have 

      ("[ ]?mail[ ]?" (display-buffer-reuse-window display-buffer-pop-up-frame)
        (reusable-frames nil)
        (pop-up-frame-parameters
        (tool-bar-lines . 1)
	(left . 859)
	(left-fringe . 2)
        (top . 183)
	(height . 32)
	(width . (text-pixels . 837))
	(font . "SF MONO-18")
        (line-spacing . 3)
        ))


in "display-buffer-alist". Now if I have some buffer.foo open in its own frame, and then issue C-x m, a new message buffer pops up in its own frame, as it should be. However, after finally issuing C-c C-c to send the mail, the frame which contained the mail buffer does not disappear (as it was the case with the old special-display.regexp stuff), rather this frame shows a second instance of buffer.foo.

Thanks, 

Konrad





> Am 23.10.2019 um 09:46 schrieb martin rudalics <rudalics@gmx.at>:
> 
> > Thanks for your reply. Working on the stuff, I encountered the following problem: If, in “ display-buffer-alist”, I have the entry:
> >
> >        ("[ ]?Packages[ ]?" (display-buffer-reuse-window display-buffer-pop-up-frame)
> >         (pop-up-frame-parameters
> >          (tool-bar-lines . 1)
> > 	(left . 1)
> > 	(left-fringe . 2)
> >          (top . 0)
> > 	(height . 65)
> > 	(width . 149)
> > 	(font . "SF MONO-18")
> >          (line-spacing . 3)
> > 	))
> >
> > then, contrary to what is promised, this does not pop up a new
> > frame.
> 
> There's no promise that 'display-buffer-alist' controls the behavior
> of 'switch-to-buffer'.  The latter should be used interactively (via
> C-x b) only.  But since that's practically impossible given the sheer
> mass of occurrences of 'switch-to-buffer' in the Emacs code base, Juri
> added the 'switch-to-buffer-obey-display-actions' option.  If that is
> non-nil, your use case should work.
> 
> > I figured out that the problem goes away if, in
> > “packages.el”, I replace in the defun “list-packages” the code
> > (switch-to-buffer buf) by (pop-to-buffer buf). My question is how to
> > do this on the level of customizing “display-buffer-alist”. I didn’t
> > find anything in this regard in the manuals.
> 
> 'switch-to-buffer' preferably shows its buffer in the same (selected)
> window.  'pop-to-buffer' has no such preference.
> 
> martin
> 






  reply	other threads:[~2019-10-28 17:37 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-21  0:39 bug#37840: Missing in the Emacs manuals: Konrad Podczeck
2019-10-22  8:43 ` martin rudalics
2019-10-23  7:25   ` Konrad Podczeck
2019-10-23  7:46     ` martin rudalics
2019-10-28 17:37       ` Konrad Podczeck [this message]
2019-10-28 18:13         ` martin rudalics
2019-10-28 19:04           ` Konrad Podczeck
2019-10-29  9:28             ` martin rudalics
2019-10-30  0:56               ` Konrad Podczeck
2019-10-30  8:14                 ` martin rudalics
2019-10-30 20:37                   ` Konrad Podczeck
2019-10-31  7:59                     ` martin rudalics
2019-11-02 21:47                       ` Konrad Podczeck
2019-11-04  9:06                         ` martin rudalics
2019-11-04 11:20                           ` Konrad Podczeck
2019-11-04 18:27                             ` martin rudalics
     [not found]                               ` <A8BBF7A4-BFE0-44BB-BCB3-B26477FFC946@univie.ac.at>
2019-11-04 19:10                                 ` martin rudalics
2019-11-06 22:41                                   ` Juri Linkov
2019-11-07  8:39                                     ` martin rudalics
2019-11-07 21:58                                       ` Juri Linkov
2019-11-08  9:20                                         ` martin rudalics
2019-11-08 11:04                                           ` Konrad Podczeck
2019-11-08 18:27                                             ` martin rudalics
2019-11-08 21:12                                               ` Konrad Podczeck
2019-11-09  9:01                                                 ` martin rudalics
2019-11-10 16:44                                                   ` Konrad Podczeck
2019-11-10 18:33                                                     ` martin rudalics
2019-11-14 10:03                                                       ` Eli Zaretskii
2019-11-14 18:18                                                         ` martin rudalics
2019-11-14 18:35                                                           ` Eli Zaretskii
2019-11-15  8:50                                                             ` martin rudalics
2019-11-22 13:09                                                       ` Konrad Podczeck
2019-11-22 17:49                                                         ` martin rudalics
2019-11-22 19:22                                                           ` Eli Zaretskii
2019-11-23  1:42                                                             ` Konrad Podczeck
2019-11-23  8:16                                                               ` martin rudalics
2019-11-25 23:47                                                                 ` Konrad Podczeck
2019-11-26  9:32                                                                   ` martin rudalics
2019-12-02  1:35                                                                     ` Konrad Podczeck
2019-12-02  9:41                                                                       ` martin rudalics
2019-11-23  8:15                                                             ` martin rudalics
2019-11-23  9:49                                                               ` Eli Zaretskii
2019-11-26  9:31                                                                 ` martin rudalics
2019-11-26  9:42                                                                   ` martin rudalics
2020-09-20 11:12                                                                 ` Lars Ingebrigtsen
2019-11-10 20:11                                           ` Juri Linkov

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=E3E2801C-625B-44D3-B1AA-A365488737C2@univie.ac.at \
    --to=konrad.podczeck@univie.ac.at \
    --cc=37840@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 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).