[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] three bugs/misfeatures in org-reveal (or is org-reveal the wrong
From: |
Nicolas Goaziou |
Subject: |
Re: [O] three bugs/misfeatures in org-reveal (or is org-reveal the wrong way to reveal around point?) |
Date: |
Sat, 17 Jan 2015 09:54:53 +0100 |
Hello,
Samuel Wales <address@hidden> writes:
> i think i found one of the bugs in org.el's org-show-context. is
> anybody willing to confirm and fix it?
>
> On 8/5/13, Samuel Wales <address@hidden> wrote:
>> ;; bug 1: when point is in entry text, the first child of that
>> ;; entry shows, but its siblings (i.e. the other children) do
Siblings are other headlines at the same level, not children.
>> ;; not show, even though i have org-show-siblings and
>> ;; org-show-hierarchy-above both set to t.
>
> (when following-p
> ;; Show next sibling, or heading below text
> (save-excursion
> (and (if heading-p (org-goto-sibling) (outline-next-heading))
> (org-flag-heading nil))))
> (when siblings-p (org-show-siblings))
>
> the part in the save-excursion needs to check for siblings-p also.
I don't understand why it should. SIBLINGS-P means "show all siblings".
This is handled later in the function.
Regards,
--
Nicolas Goaziou