From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: Get buffer unto a new frame Date: Fri, 18 Aug 2023 13:41:04 +0000 Message-ID: References: <63aR95kjBnrEzFE6lJM9suzyL-9i_WCsNCxKxYgFrpfCNKRsd7a3VasrDsShzVumLgkPHW3JpekQ2AVAtbwlE4nDFCmBMaGx4OcGNTeLpWU=@protonmail.com> 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="39564"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 18 15:42:43 2023 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 1qWzkQ-000A63-V4 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 18 Aug 2023 15:42:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWzjq-0008Ar-Nr; Fri, 18 Aug 2023 09:42:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWzjA-00083d-WD for help-gnu-emacs@gnu.org; Fri, 18 Aug 2023 09:41:25 -0400 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWzj7-0004Ia-Mj for help-gnu-emacs@gnu.org; Fri, 18 Aug 2023 09:41:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1692366078; x=1692625278; bh=JAsDgpuvcChR2TbySttDvMuNXB2LNjL41u0kOl3vWQk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=mUJNs0qOqIR2wEJRWXHdahHXxK4eifjfxP97r5nEI05frZ+y2xRuZYGHweyZ7BnZA i/3sLP/PgZrJsuHlAU5tRDGqQgfIjdy8F7gTdwE/dxn4Zy2OrzkA6XaPHezw+0+t3D bJhHnhn/14eXLaTQKPrLmtlrmWZHQ7+AIKMPZT94JXP3AjnNqWWokHpD4K8vl10LHp DuepgzQPrLXfqBT63zT3phfnCQmHobYgTfgLvFfDHqWjReGdKgsq2ohTaah0EciCZt tdeg8w83BHACqRgqB8x0jOMOwwrLtbBdV+utVngTeSOCG6TnTrfYhzmJkOUfojAPmF JEe22betluTHA== In-Reply-To: Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.43.24; envelope-from=heimeborgia@protonmail.com; helo=mail-4324.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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144868 Archived-At: Sent with Proton Mail secure email. ------- Original Message ------- On Saturday, August 19th, 2023 at 1:12 AM, Yuri Khan wrote: > On Fri, 18 Aug 2023 at 17:02, Heime heimeborgia@protonmail.com wrote: >=20 > > How can I have a buffer taken out from a frame and make a new frame > > using elisp code ? >=20 >=20 > It does not make sense to talk about taking a buffer out from a frame. > Buffers exist within the core of Emacs independently of any frames. A > buffer can be displayed in zero or more windows, and one or more > windows are part of a frame. I usually have a single buffer displaying a file. And want the file displa= yed in a new frame. But you have outlined that I can have an additional window showing the file. Am bit indecisive what to do. Does one just make the file appear in a new buffer, leaving the rest (possibility of other windows showing same file)= =20 intact ? What would you suggest ? =20 > 1 =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=90 > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=A4 Emacs =E2=94=9C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=90 > =E2=94=82 =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=98 1 =E2=94=82 > =E2=94=82 1..* =E2=94=82 0..* > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=B4=E2=94=80=E2=94=80=E2=94= =80=E2=94=90 1..* =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=90 1 =E2=94=8C=E2=94=80=E2=94=80=E2=94= =80=E2=94=B4=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=90 > =E2=94=82 Frame =E2=94=9C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=A4 Window = =E2=94=9C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=A4 Buffer =E2=94=82 > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=98 1 =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=98 0..* =E2=94=94=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=98 >=20 > Therefore, you create a new frame, it automatically has a window, and > you arrange for that window to display your buffer. Optionally, you > bury the buffer in the original window so that it displays something > else, or delete the original window. (See code by Christopher in the > other reply.)