[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tip for EXWM users] An alternative method for isolate trees
From: |
Julian M. Burgos |
Subject: |
Re: [tip for EXWM users] An alternative method for isolate trees |
Date: |
Mon, 01 Mar 2021 15:37:20 +0000 |
User-agent: |
mu4e 1.4.6; emacs 27.1 |
Hi Juan,
You are right. :) I have not noticed that org-tree-to-indirect-buffer reuses
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 buffer",
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-indirect-buffer. So it should be possible to make a function combining
"clone-indirect-buffer" and "org-narrow-to-subtree" perhaps? I am thinking so
this 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ías writes:
> Hi Julian, thanks for your comment.
>
> "Julian M. Burgos" <julian.burgos@hafogvatn.is> 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óknastofnun, rannsókna- og ráðgjafarstofnun hafs og vatna/
Marine and Freshwater Research Institute
Botnsjávarsviðs / Demersal Division
Fornubúðir 5, IS-220 Hafnarfjörður, Iceland
www.hafogvatn.is
Sími/Telephone : +354-5752037
Netfang/Email: julian.burgos@hafogvatn.is