From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: PierGianLuca Newsgroups: gmane.emacs.help Subject: Re: Get buffer unto a new frame Date: Fri, 18 Aug 2023 16:36:00 +0200 Message-ID: <25b59cd8-23e9-cf1c-1fe3-fef017a48fc9@magnaspesmeretrix.org> References: <63aR95kjBnrEzFE6lJM9suzyL-9i_WCsNCxKxYgFrpfCNKRsd7a3VasrDsShzVumLgkPHW3JpekQ2AVAtbwlE4nDFCmBMaGx4OcGNTeLpWU=@protonmail.com> <2a718b7a-ad27-16d5-7f91-27708bbbf5c8@magnaspesmeretrix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5260"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 18 16:36:39 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 1qX0ac-0001BZ-HZ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 18 Aug 2023 16:36:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qX0aN-0003S7-Cp; Fri, 18 Aug 2023 10:36:23 -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 1qX0aE-0003Pl-Pr for help-gnu-emacs@gnu.org; Fri, 18 Aug 2023 10:36:16 -0400 Original-Received: from manu28.manufrog.com ([138.128.182.226]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qX0aC-00057v-Bo for help-gnu-emacs@gnu.org; Fri, 18 Aug 2023 10:36:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=magnaspesmeretrix.org; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:To:Subject:MIME-Version:Date:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yG8WfD0rTnpuLZui4r1yETld1fnUv9Gybksmgyd4liU=; b=kCpugekMqQgRnfKrXiFQDXX802 6IY31CtDR9GaQQkDxgdvhbG5GuGriqrfLZvU2ROw/r5xIuU1KSGKFMf41rZceYM+l/q+zDDWJVr0S dNiSPmQ72B4ldRqx9yyodpFQe; Original-Received: from [51.174.11.164] (port=38926 helo=[192.168.10.171]) by manu28.manufrog.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qX0a8-0006Xl-2f for help-gnu-emacs@gnu.org; Fri, 18 Aug 2023 16:36:12 +0200 Content-Language: en-GB, en-US In-Reply-To: X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - manu28.manufrog.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - magnaspesmeretrix.org X-Get-Message-Sender-Via: manu28.manufrog.com: authenticated_id: luca@magnaspesmeretrix.org X-Authenticated-Sender: manu28.manufrog.com: luca@magnaspesmeretrix.org Received-SPF: pass client-ip=138.128.182.226; envelope-from=luca@magnaspesmeretrix.org; helo=manu28.manufrog.com X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-3.454, SPF_HELO_NONE=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:144873 Archived-At: On 230818 16:10, Heime wrote: > Perhaps as you say, I might require different possibilities in future. Or perhaps not. It's very case-dependent. > By detach I usually mean "send it away", meaning that the buffer is > sent away to a new frame, leaving nothing behind. I have F12 bound to 'make-frame-command (also C-x52), which opens the buffer I'm in into a new frame – but also leaves it in the previous frame/window. But you could bound it to 'tear-off-window instead. This would move the buffer to a new frame and close its window in the previous frame (only if there are also other windows there). > One can have multiple windows of the same buffer, is that correct ? Yes, even within the same frame. Very useful for example when you have to compare the beginning and end of a long file. > Can one remove all windows showing same buffer in some frame ? This I don't know how to do right now. But I'm sure that it can be achieved, worst case by defining some lisp function. 'kill-buffer-and-window only eliminates one of the windows showing the buffer; if there are others, they will stay but will show other buffers. Cheers, Luca