[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines
From: |
stardiviner |
Subject: |
Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines |
Date: |
Wed, 15 Apr 2020 09:13:18 +0800 |
User-agent: |
mu4e 1.3.8; emacs 28.0.50 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Nicolas Goaziou <address@hidden> writes:
> Hello,
>
> stardiviner <address@hidden> writes:
>
>> I agree. As I described in my given example "org-contacts", which include
>> person
>> info in properties drawer. That's why I want to expand when I press "Tab" on
>> expanding headline. If I see a contact's info with "C-u C-u C-u Tab" is not
>> convenient.
>
> You can rebind it.
>
>> Is it possible to change "org-cycle-hide-drawers" to
>> "org-cycle-toggle-drawers".
>> Make it more extendable. Because that function only changed one argument of
>> "org-flag-drawer". If so some user like me will be easy to toggle hide/show
>> drawers. (Of course, I don't want to add redundant code in my Emacs init.) If
>> this is fine, I will re-edit my patch. Remove defcustom option, and hook on
>> cycle. Only keep changes in "org-cycle-hide-drawers".
>
> I think something is wrong with `org-cycle-hide-drawers' at the moment.
> This function was initially meant to be added to `org-cycle-hook' to
> re-hide drawers. It should only re-hide properties drawers. In any case,
> it is not needed to expand this function, it should be trimmed down to
> only take care of property drawers.
>
> What is needed, though, it a tooling similar to block visibility
> functions, i.e., `org-hide-block-toggle', `org-hide-block-hall', and,
> maybe, `org-hide-block-toggle-maybe'. Regular drawers should get the
> same treatment as blocks.
>
> If you look at `org-cycle' code, there is a comment
>
> ;; Drawers: delegate to `org-flag-drawer'.
>
> This part should be extracted into a new function.
This sounds reasonable. (I deleted my patch on my local fork, I think your
solution is better.)
- --
[ stardiviner ]
I try to make every word tell the meaning what I want to express.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
-----BEGIN PGP SIGNATURE-----
iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl6WX64UHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsMKJggAzKm3lD0NTcG4eak7khuzw5bbt9W6
MNi8kkK61LWaPfW+BgCGxJz+RAYnKnPca7JDZ15xEwcVc1/UIFZ4bFTmeH25/yjp
49KsTVR4E8mgueAgm+Js1uNTj2GUXhvBpiu8RjPe6578GHzopLUbBgvTgPtZVswa
A9Mr3ecu3lFMja3KfjoB73w3sa6UncwQ3zqhiV6zqVFAcrO02YYfgLAFhmYjKQ5h
b5hkdxliZsL6H6kgLG7TQFwu1S1vpgGZNaZvz6sS9h3PO3UwglbCGxWo8EFsYHiz
+YFJMw3FcGxdXygp9l+ypG1Zhpwr7arZE8Zuq4ypduxmjWkUyOG7O6dbdA==
=haRH
-----END PGP SIGNATURE-----
- Re: [PATCH] Show hidden drawers when org-cycle on headlines, (continued)
- Re: [PATCH] Show hidden drawers when org-cycle on headlines, Ihor Radchenko, 2020/04/13
- [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, stardiviner, 2020/04/14
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, Ihor Radchenko, 2020/04/13
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, Nicolas Goaziou, 2020/04/13
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, Tim Cross, 2020/04/13
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, Ihor Radchenko, 2020/04/13
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, Nicolas Goaziou, 2020/04/14
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, Ihor Radchenko, 2020/04/14
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, stardiviner, 2020/04/14
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, Nicolas Goaziou, 2020/04/14
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines,
stardiviner <=
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, Nicolas Goaziou, 2020/04/18
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, stardiviner, 2020/04/19
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, Nicolas Goaziou, 2020/04/19
- Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines, stardiviner, 2020/04/19
Re: [PATCH] Show hidden drawers when org-cycle on headlines, Samuel Wales, 2020/04/13
[SOLUTION] Re: [PATCH] Show hidden drawers when org-cycle on headlines, stardiviner, 2020/04/14