* help et. al - use different frame instead of splitting frame?
@ 2024-05-14 18:51 Christopher Howard
2024-05-15 2:38 ` [External] : " Drew Adams
2024-05-15 5:35 ` Yuri Khan
0 siblings, 2 replies; 5+ messages in thread
From: Christopher Howard @ 2024-05-14 18:51 UTC (permalink / raw)
To: Help Gnu Emacs Mailing List
Hi, use Emacs with multiple frames, one on each monitor, and typically one window per frame. Now that I have lots of frame space, I find it annoying when functions like (describe-function) split the frame I am on. I am wondering if it is possible to change something so that functions like that instead display the buffer in a different frame.
Looking for someplace to start, I dove down into `describe-function' source code and eventually found myself trying to hack temp-buffer-window-show, so that its display-buffer call got passed another frame, i.e., from `get-other-frame'. Aside from thinking there must be some simpler solution, I also couldn't get this to work consistently. It worked on the first call to describe-function but not after that.
I also looked a bit into override temp-buffer-show-function but changing this variable didn't seem to have any effect.
--
📛 Christopher Howard
🚀 gemini://gem.librehacker.com
🌐 http://gem.librehacker.com
בראשית ברא אלהים את השמים ואת הארץ
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [External] : help et. al - use different frame instead of splitting frame?
2024-05-14 18:51 help et. al - use different frame instead of splitting frame? Christopher Howard
@ 2024-05-15 2:38 ` Drew Adams
2024-06-24 6:19 ` Björn Bidar
[not found] ` <87v81ylv5f.fsf@>
2024-05-15 5:35 ` Yuri Khan
1 sibling, 2 replies; 5+ messages in thread
From: Drew Adams @ 2024-05-15 2:38 UTC (permalink / raw)
To: Christopher Howard, Help Gnu Emacs Mailing List
> I find it annoying when functions like (describe-function)
> split the frame I am on. I am wondering if it is possible
> to change something so that functions like that instead
> display the buffer in a different frame.
Just customize `special-display-buffer-names'
or `special-display-regexps'.
E.g., I use `special-display-buffer-names'
to put *Help* and *Completions* buffers in
their own frames that look different. I put
other *...* buffers in frames with a third
look by setting `special-display-regexps' to
("[ ]?[*][^*]+[*]").
A "special-display" buffer is shown in its own
dedicated frame (you can get more refined than
that, if you like).
Emacs will tell you that these options are
obsolete. But they're simple to use and they
still work perfectly fine.
If you instead want to complicate your life,
you can do what those options do and much,
more by customizing `display-buffer-alist'
or its ilk. See the Elisp manual, node
`Displaying Buffers' and all of its progeny.
https://www.gnu.org/software/emacs/manual/html_node/elisp/Displaying-Buffers.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: help et. al - use different frame instead of splitting frame?
2024-05-14 18:51 help et. al - use different frame instead of splitting frame? Christopher Howard
2024-05-15 2:38 ` [External] : " Drew Adams
@ 2024-05-15 5:35 ` Yuri Khan
1 sibling, 0 replies; 5+ messages in thread
From: Yuri Khan @ 2024-05-15 5:35 UTC (permalink / raw)
To: Christopher Howard; +Cc: Help Gnu Emacs Mailing List
On Wed, 15 May 2024 at 08:57, Christopher Howard
<christopher@librehacker.com> wrote:
> Hi, use Emacs with multiple frames, one on each monitor, and typically one window per frame. Now that I have lots of frame space, I find it annoying when functions like (describe-function) split the frame I am on. I am wondering if it is possible to change something so that functions like that instead display the buffer in a different frame.
>
> Looking for someplace to start, I dove down into `describe-function' source code and eventually found myself trying to hack temp-buffer-window-show
You either went too deep or not deep enough ;)
The place you want is called display-buffer-alist and it’s a variable
containing rules for activating various windows. See the manual and
one of several tutorials on it, like this one:
https://www.masteringemacs.org/article/demystifying-emacs-window-manager
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [External] : help et. al - use different frame instead of splitting frame?
2024-05-15 2:38 ` [External] : " Drew Adams
@ 2024-06-24 6:19 ` Björn Bidar
[not found] ` <87v81ylv5f.fsf@>
1 sibling, 0 replies; 5+ messages in thread
From: Björn Bidar @ 2024-06-24 6:19 UTC (permalink / raw)
To: Drew Adams; +Cc: Christopher Howard, Help Gnu Emacs Mailing List
Drew Adams <drew.adams@oracle.com> writes:
>> I find it annoying when functions like (describe-function)
>> split the frame I am on. I am wondering if it is possible
>> to change something so that functions like that instead
>> display the buffer in a different frame.
>
> Just customize `special-display-buffer-names'
> or `special-display-regexps'.
>
> E.g., I use `special-display-buffer-names'
> to put *Help* and *Completions* buffers in
> their own frames that look different. I put
> other *...* buffers in frames with a third
> look by setting `special-display-regexps' to
> ("[ ]?[*][^*]+[*]").
>
> A "special-display" buffer is shown in its own
> dedicated frame (you can get more refined than
> that, if you like).
>
> Emacs will tell you that these options are
> obsolete. But they're simple to use and they
> still work perfectly fine.
>
> If you instead want to complicate your life,
> you can do what those options do and much,
> more by customizing `display-buffer-alist'
> or its ilk. See the Elisp manual, node
> `Displaying Buffers' and all of its progeny.
>
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Displaying-Buffers.html
Another option is to use pop-up-frames instead if you want to go fully
frames instead of windows.
Pop-up-frames will make every new window open a new frame instead.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [External] : help et. al - use different frame instead of splitting frame?
[not found] ` <87v81ylv5f.fsf@>
@ 2024-06-24 14:31 ` Drew Adams
0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2024-06-24 14:31 UTC (permalink / raw)
To: Björn Bidar; +Cc: Christopher Howard, Help Gnu Emacs Mailing List
> Another option is to use pop-up-frames instead if you want to go fully
> frames instead of windows.
>
> Pop-up-frames will make every new window open a new frame instead.
Yes, but all of the frames will use the same
parameters, from `default-frame-alist'.
Using `special-display-*' your "special"
frames can have different parameters from
the other, regular frames.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-06-24 14:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14 18:51 help et. al - use different frame instead of splitting frame? Christopher Howard
2024-05-15 2:38 ` [External] : " Drew Adams
2024-06-24 6:19 ` Björn Bidar
[not found] ` <87v81ylv5f.fsf@>
2024-06-24 14:31 ` Drew Adams
2024-05-15 5:35 ` Yuri Khan
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.