help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Using key q to quit temporary buffer window


From: Marcin Borkowski
Subject: Re: Using key q to quit temporary buffer window
Date: Tue, 23 Aug 2022 17:11:12 +0200
User-agent: mu4e 1.1.0; emacs 29.0.50

On 2022-08-23, at 06:38, wilnerthomas--- via Users list for the GNU Emacs text 
editor <help-gnu-emacs@gnu.org> wrote:

> I am printing some text in a temporary buffer
>
> (defconst principles "Text for display in temporary buffer")
>
> (with-output-to-temp-buffer "*andromeda*"
>  (print principles)
>
> Is it technically possible to use the key `q' to quit the temporary buffer 
> window as one can do
> with the `*Backtrace*' window?

AFAIK, it already works this way - thing is, the temp buffer window is
not selected by default.

I'd probably look at `display-buffer'.

Hth,

-- 
Marcin Borkowski
http://mbork.pl



reply via email to

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