[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about display-buffer-overriding-action

From: Michael Heerdegen
Subject: Re: Question about display-buffer-overriding-action
Date: Thu, 17 Mar 2022 23:14:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eduardo Ochs <> writes:

> This is not a universal solution. It doesn't work for man,

Maybe it works for women?

> Try:
>   (let ((display-buffer-alist '((".*" display-buffer-same-window))))
>     (man "cat"))
> [...]

Note that `man' is a special (and rare) case: Emacs `man' works
asynchronously; when the buffer has been rendered and the result gets
displayed, your `let' is long gone.

See `Man-notify-when-ready' and `Man-notify-method' for how the buffer
gets displayed.

You probably need an appropriate man buffer specific entry in the
top-level binding of `display-buffer-alist' to get what you want.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]