[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior
From: |
Tor Kringeland |
Subject: |
Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior |
Date: |
Sat, 28 May 2022 12:06:31 +0000 |
Ihor Radchenko <yantar92@gmail.com> writes:
> Sure. Now, you need to call a different function to open all the drawers
> unconditionally. That function is:
>
> (let* ((headline (save-excursion (org-back-to-heading)
> (org-element-at-point)))
> (section (org-element-lineage
> (org-element-at-point
> (org-element-property :contents-begin headline))
> '(section))))
> (when section
> (org-fold-region
> (org-element-property :begin section)
> (org-element-property :end section)
> nil 'drawer)))
Thanks! This almost imitates the old behavior, except that all drawers
(i.e., including sub-headlines) would be opened when the headline it was
a part of was opened. (So pressing TAB multiple times would first show
the outline with the first headline open, then the next would show
sub-headlines with their drawers open.)
> Though we might also modify org-fold-show-entry to allow what you wish.
> I am not sure here.
That sounds nice. So an optional behavior would be for it to open the
drawers as well, which I guess would lead to the "recursive" behavior
above I mentioned working, right?
- Change in `org-cycle-hook' breaks behavior, Tor Kringeland, 2022/05/26
- [PATCH] Re: Change in `org-cycle-hook' breaks behavior, Ihor Radchenko, 2022/05/27
- Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior, Tor Kringeland, 2022/05/27
- Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior, Ihor Radchenko, 2022/05/27
- Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior,
Tor Kringeland <=
- Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior, Tor Kringeland, 2022/05/28
- Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior, Ihor Radchenko, 2022/05/28
- Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior, Tor Kringeland, 2022/05/28
- Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior, Ihor Radchenko, 2022/05/29