all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Opening special buffers "*Messages*" and "*scratch*" in new frames
@ 2024-06-11  9:29 Dr Rainer Woitok
  2024-06-11  9:46 ` Philip Kaludercic
  2024-06-11 10:08 ` Joost Kremers
  0 siblings, 2 replies; 4+ messages in thread
From: Dr Rainer Woitok @ 2024-06-11  9:29 UTC (permalink / raw)
  To: Help-Gnu-Emacs

Greetings,

a few weeks back  there was some discussion  on this list  about opening
special buffers in new frames.   This motivated me  to add the following
lines to my Emacs configuration file:

   (setq display-buffer-alist
         (list (cons "\\(^ [*]\\)\\|\\(^[*]Completions[*]\\)"
                     display-buffer--same-window-action)

               ; (cons "^[*]\\(Messages\\|scratch\\)[*]"
               ;       '(display-buffer-pop-up-frame
               ;         (reusable-frames . t)))

               (cons "^[*]"
                     '((display-buffer-reuse-window
                        display-buffer-pop-up-frame)
                       (reusable-frames     . t  )
                       (inhibit-same-window . nil))))

         switch-to-buffer-in-dedicated-window 'pop
         switch-to-buffer-obey-dislay-actions t)

However,  regardless of whether or not  the three commented-out lines a-
bove were uncommented,  buffers "*Messages*" and "*scratch*" were always
opened in the current window of the current frame.

But explicitly running "C-x 5 b *Messages*"  or "C-x 5 b *scratch*" work
as expected.

What did I do wrong?

Sincerely,
  Rainer



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Opening special buffers "*Messages*" and "*scratch*" in new frames
  2024-06-11  9:29 Opening special buffers "*Messages*" and "*scratch*" in new frames Dr Rainer Woitok
@ 2024-06-11  9:46 ` Philip Kaludercic
  2024-06-11 10:17   ` Dr Rainer Woitok
  2024-06-11 10:08 ` Joost Kremers
  1 sibling, 1 reply; 4+ messages in thread
From: Philip Kaludercic @ 2024-06-11  9:46 UTC (permalink / raw)
  To: Dr Rainer Woitok; +Cc: Help-Gnu-Emacs

Dr Rainer Woitok <rainer.woitok@gmail.com> writes:

> Greetings,
>
> a few weeks back  there was some discussion  on this list  about opening
> special buffers in new frames.   This motivated me  to add the following
> lines to my Emacs configuration file:
>
>    (setq display-buffer-alist
>          (list (cons "\\(^ [*]\\)\\|\\(^[*]Completions[*]\\)"
>                      display-buffer--same-window-action)
>
>                ; (cons "^[*]\\(Messages\\|scratch\\)[*]"
>                ;       '(display-buffer-pop-up-frame
>                ;         (reusable-frames . t)))
>
>                (cons "^[*]"
>                      '((display-buffer-reuse-window
>                         display-buffer-pop-up-frame)
>                        (reusable-frames     . t  )
>                        (inhibit-same-window . nil))))
>
>          switch-to-buffer-in-dedicated-window 'pop
>          switch-to-buffer-obey-dislay-actions t)
                                 ^ is this a typo ("dislay" vs
                                 "display") in your message or in your
                                 config?
>
> However,  regardless of whether or not  the three commented-out lines a-
> bove were uncommented,  buffers "*Messages*" and "*scratch*" were always
> opened in the current window of the current frame.
>
> But explicitly running "C-x 5 b *Messages*"  or "C-x 5 b *scratch*" work
> as expected.
>
> What did I do wrong?
>
> Sincerely,
>   Rainer
>
>

-- 
	Philip Kaludercic on peregrine



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Opening special buffers "*Messages*" and "*scratch*" in new frames
  2024-06-11  9:29 Opening special buffers "*Messages*" and "*scratch*" in new frames Dr Rainer Woitok
  2024-06-11  9:46 ` Philip Kaludercic
@ 2024-06-11 10:08 ` Joost Kremers
  1 sibling, 0 replies; 4+ messages in thread
From: Joost Kremers @ 2024-06-11 10:08 UTC (permalink / raw)
  To: Dr Rainer Woitok; +Cc: Help-Gnu-Emacs

On Tue, Jun 11 2024, Dr Rainer Woitok wrote:
>                ; (cons "^[*]\\(Messages\\|scratch\\)[*]"
>                ;       '(display-buffer-pop-up-frame
>                ;         (reusable-frames . t)))
[...]
> What did I do wrong?

I can't find anything wrong with it. If I try this in `emacs -Q`, it works as
expected: `C-h e` pops up a new frame, and so does `M-x pop-to-buffer RET
*scratch* RET`.


-- 
Joost Kremers
Life has its moments



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Opening special buffers "*Messages*" and "*scratch*" in new frames
  2024-06-11  9:46 ` Philip Kaludercic
@ 2024-06-11 10:17   ` Dr Rainer Woitok
  0 siblings, 0 replies; 4+ messages in thread
From: Dr Rainer Woitok @ 2024-06-11 10:17 UTC (permalink / raw)
  To: Philip Kaludercic; +Cc: Help-Gnu-Emacs

Philip,

On Tue, 11 Jun 2024 09:46:34 +0000 you wrote:

> ...
> >          switch-to-buffer-obey-dislay-actions t)
>                                  ^ is this a typo ("dislay" vs
>                                  "display") in your message or in your
>                                  config?

OMG !! Thanks Philip.   Yes, this is (or better WAS) a typo in my confi-
guration file ... :-D

Sincerely,
  Rainer



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-11 10:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-11  9:29 Opening special buffers "*Messages*" and "*scratch*" in new frames Dr Rainer Woitok
2024-06-11  9:46 ` Philip Kaludercic
2024-06-11 10:17   ` Dr Rainer Woitok
2024-06-11 10:08 ` Joost Kremers

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.