From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0LUiNFMKPWBaPAAA0tVLHw (envelope-from ) for ; Mon, 01 Mar 2021 15:37:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MGcGMFMKPWBkIAAAB5/wlQ (envelope-from ) for ; Mon, 01 Mar 2021 15:37:55 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 32B82BE4A for ; Mon, 1 Mar 2021 16:37:55 +0100 (CET) Received: from localhost ([::1]:54376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGkcM-0005fb-67 for larch@yhetil.org; Mon, 01 Mar 2021 10:37:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGkbw-0005eJ-NI for emacs-orgmode@gnu.org; Mon, 01 Mar 2021 10:37:29 -0500 Received: from hafgarpur.hafro.is ([130.208.64.48]:41564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGkbs-0004NP-I0 for emacs-orgmode@gnu.org; Mon, 01 Mar 2021 10:37:27 -0500 X-Virus-Scanned: amavisd-new at hafro.is Received: from hafgangur (hafgangur.hafro.is [130.208.64.162]) by hafgarpur.hafro.is (8.14.4/8.14.4/hafro-2.57) with ESMTP id 121FbKU4027860; Mon, 1 Mar 2021 15:37:20 GMT References: <877dmr119y.fsf@posteo.net> <87y2f7yngl.fsf@posteo.net> User-agent: mu4e 1.4.6; emacs 27.1 From: "Julian M. Burgos" To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Subject: Re: [tip for EXWM users] An alternative method for isolate trees In-reply-to: <87y2f7yngl.fsf@posteo.net> Date: Mon, 01 Mar 2021 15:37:20 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=130.208.64.48; envelope-from=julian.burgos@hafogvatn.is; helo=hafgarpur.hafro.is X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614613075; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=OPlr+/rdccpUCYKvYRRcRUY9kiiQcXC6NWhlRqzL8a4=; b=r/Y4ViBSDYGDh1xn4FA8wOIJgWW5S+dIR6OQuIcmOCBVGz4C/2TnO8J4Chbi8Rp2eIiDV2 LoYSLpxL3VXLCxm/xd98LhXlq3eOfZE9EVfr55pRdczGr71hrQKyyf8HDK1pllg1v5CkDo 1za+Vjs9/ZV42Sg8rH/eCKNsJVNXppoSL0ZGZjPUqG4wxrgoVnIPNLd3gpuUnD5bV4YPZR nIJruVVab935e5aLH5nrEZnGLOFplFgD3CG3oi/N+mxbTSWfVhb1AfEbGVE8LVvoh/tYvZ x7TGUWSlh3Ve2MXJqAo8CY4iaIJ1gJYwYmstohNDJmpBdk0cQZdSHZ4NsJj99w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614613075; a=rsa-sha256; cv=none; b=QyIIjbGZi5wbbnq5vTLtfeFzrOcNKwJdessv4qcLzxS2GyW2cjl4TM9YDcBTGj6A5oyFMG 772dgZSJw+6r0Jmi3tPPdBU25lBTp2oCtnCsr+dQrLHnxVYt/UE1/XX6cMm39O9l7bJvA2 na+6gjxJSW3MD0JEor4aUKQKwGoTYOV3jT2SsBNwcmRZfzSfB75NjilmXiXoGBtv1hosTa 0ITxzHbaM2Cvjsyq+yi5tKJfdEYg3izTNTLNCaF+wNR7PN/CTCRDXXorf1QIy+CDyvA1F9 BnbXEmlzOEmMEvv/wTDxBubuDvDGkuSig6aSar2gy0Jzu5g77/sQhsXfMiWqjw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.37 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 32B82BE4A X-Spam-Score: -2.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: CROugP2FcD95 Hi Juan, You are right. :) I have not noticed that org-tree-to-indirect-buffer reuse= s the indirect buffer when you call it for a second time. According to the= manual, "with a C-u prefix, do not remove the previously used indirect buf= fer", but that does not seem to work. When you do Cu-Cc-Cx-b from a buffer= that already has an indirect buffer you get a "cannot modify an area being= edited in a dedicated buffer". If you try it from a different buffer, the= prefix is ignored and the indirect buffer is assigned to the tree from the= last buffer. This does not seem to be a limitation from emacs, as it is possible to open= multiple indirect buffers from a base buffer, using for example clone-indi= rect-buffer. So it should be possible to make a function combining "clone-= indirect-buffer" and "org-narrow-to-subtree" perhaps? I am thinking so thi= s option is available not only to EXWM users. Ideally, there should be an option to allow org-tree-to-indirect-buffer to = create more than one indirect buffer if desired. My best, Julian Juan Manuel Mac=C3=ADas writes: > Hi Julian, thanks for your comment. > > "Julian M. Burgos" writes: > >> Thank you, although I tested your functions and compared with the >> original org-tree-to-indirect-buffer, the only difference I see is >> that your function creates a new exwm workspace. The original function >> already creates indirect buffers with their own names (using a slash >> instead of the double colons). Or I am missing something? > > org-tree-to-indirect-buffer creates a new buffer, but (as far as I know) > does not allow accumulating buffers. In other words, you cannot have > several isolated trees at the time. In this method it just occurred to > me to configure org-indirect-buffer-display as new-frame and take > advantage of EXWM frame management. > > Best regards, > > Juan Manuel -- Julian Mariano Burgos, PhD Hafranns=C3=B3knastofnun, ranns=C3=B3kna- og r=C3=A1=C3=B0gjafarstofnun haf= s og vatna/ Marine and Freshwater Research Institute Botnsj=C3=A1varsvi=C3=B0s / Demersal Division Fornub=C3=BA=C3=B0ir 5, IS-220 Hafnarfj=C3=B6r=C3=B0ur, Iceland www.hafogvatn.is S=C3=ADmi/Telephone : +354-5752037 Netfang/Email: julian.burgos@hafogvatn.is