From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa Newsgroups: gmane.emacs.help Subject: Re: Using key q to quit temporary buffer window Date: Wed, 24 Aug 2022 00:32:14 +0000 Message-ID: <8q1MT9wQKT8NpPSpQfiCQIUrL39RrDtEvfUbbYGfwwGiy0ypNg0HSPL0FfNBb5T-lZXlT4TYQjKY1f3Fu8bNnUIs-zhmsTxVoVRCLtQTuOE=@proton.me> References: <8735dnc7vz.fsf@mbork.pl> Reply-To: uzibalqa Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4715"; mail-complaints-to="usenet@ciao.gmane.io" Cc: wilnerthomas@tutanota.com, Help Gnu Emacs To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 24 02:33:02 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQeKL-0000yl-Nl for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 02:33:01 +0200 Original-Received: from localhost ([::1]:38656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQeKK-00012d-6R for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Aug 2022 20:33:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQeJr-00012T-1j for help-gnu-emacs@gnu.org; Tue, 23 Aug 2022 20:32:31 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]:59739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQeJn-0004Wj-9i for help-gnu-emacs@gnu.org; Tue, 23 Aug 2022 20:32:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1661301143; x=1661560343; bh=zFKvEkZmpjPc4n7LZYffwCiigyG/ibOa5vBrSAsxdTg=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=btL+4PVcY/0jPwiY6vZBNKwaEda8W/BtpLP0Mp76+qcKKsLVIY8c1PtSbfBd3I7Fd AsZrHb3YKYO8YV8OjTbMNBFMqBnbe5uULPATIeN4L0QiAmWvz4Q5GmCl5ZBNJQdIbU 8gY9dFL7lAtcGj3iFhFS99GQhB3EajJwYqQbrbt6zliNz+l0wZqaOzlKLQu7UQpKlp GCMs3EOfRMLn5gvPdCzUsq2Rt+p3wiUedMrtNkA9mSUc6H2GqQwd2Nk9WviDdjVBa7 hSeu3fQS/ZjL8kol8gdRWcf4nZ3flg2PrAyYJjQKbgS7etx2yzKeSoWFiKXCva9AxT dOv9hb2UI59Ew== In-Reply-To: <8735dnc7vz.fsf@mbork.pl> Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.43.25; envelope-from=uzibalqa@proton.me; helo=mail-4325.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139002 Archived-At: ------- Original Message ------- On Tuesday, August 23rd, 2022 at 3:11 PM, Marcin Borkowski = wrote: > On 2022-08-23, at 06:38, wilnerthomas--- via Users list for the GNU Emacs= text editor help-gnu-emacs@gnu.org wrote: >=20 > > I am printing some text in a temporary buffer > >=20 > > (defconst principles "Text for display in temporary buffer") > >=20 > > (with-output-to-temp-buffer "andromeda" > > (print principles) > >=20 > > Is it technically possible to use the key `q' to quit the temporary buf= fer window as one can do with the` Backtrace' window? >=20 >=20 > AFAIK, it already works this way - thing is, the temp buffer window is > not selected by default. >=20 > I'd probably look at `display-buffer'. >=20 > Hth, You are right. After switching to the temporary buffer, hitting `q' does q= uit the temporary buffer window. Have made this, but want to switch to the temp buffer automatically. What = commands should I introduce?=20 (defun help-show (bufrnm msg) "Display the output of MSG in buffer named BUFRNM." (if (stringp msg) (with-output-to-temp-buffer bufrnm =09(print msg))))