[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37840: Missing in the Emacs manuals:
From: |
Konrad Podczeck |
Subject: |
bug#37840: Missing in the Emacs manuals: |
Date: |
Mon, 28 Oct 2019 18:37:26 +0100 |
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
>
- bug#37840: Missing in the Emacs manuals:, Konrad Podczeck, 2019/10/20
- bug#37840: Missing in the Emacs manuals:, martin rudalics, 2019/10/22
- bug#37840: Missing in the Emacs manuals:, Konrad Podczeck, 2019/10/23
- bug#37840: Missing in the Emacs manuals:, martin rudalics, 2019/10/23
- bug#37840: Missing in the Emacs manuals:,
Konrad Podczeck <=
- bug#37840: Missing in the Emacs manuals:, martin rudalics, 2019/10/28
- bug#37840: Missing in the Emacs manuals:, Konrad Podczeck, 2019/10/28
- bug#37840: Missing in the Emacs manuals:, martin rudalics, 2019/10/29
- bug#37840: Missing in the Emacs manuals:, Konrad Podczeck, 2019/10/29
- bug#37840: Missing in the Emacs manuals:, martin rudalics, 2019/10/30
- bug#37840: Missing in the Emacs manuals:, Konrad Podczeck, 2019/10/30
- bug#37840: Missing in the Emacs manuals:, martin rudalics, 2019/10/31