You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered this bug today after updating Emacs. The root cause is the changes to org-up-heading-safe as of version 9.7-pre. These changes broke an assumption in org-fc-narrow and caused the pointer to move up to the top of the file, rather than stop at the top-level heading. I fixed the bug by modifying the (while (org-up-heading-safe)) line in org-fc-narrow to stop when it's at the top-level heading.
(defunorg-fc-narrow ()
"Narrow the outline tree.Only parent headings of the current heading remain visible."
(interactive)
(let* ((tags (org-get-tagsnil'local)))
;; Find the first heading with a :narrow: tag or the top level;; ancestor of the current heading and narrow to its region
(save-excursion
(while (not (equal (org-up-heading-safe)
1)))
(org-narrow-to-subtree)
(outline-hide-subtree))
;; Show only the ancestors of the current card
(org-show-set-visibility org-fc-narrow-visibility)
(if (member"noheading" tags) (org-fc-hide-heading))))
The text was updated successfully, but these errors were encountered:
I encountered this bug today after updating Emacs. The root cause is the changes to
org-up-heading-safe
as of version9.7-pre
. These changes broke an assumption inorg-fc-narrow
and caused the pointer to move up to the top of the file, rather than stop at the top-level heading. I fixed the bug by modifying the(while (org-up-heading-safe))
line inorg-fc-narrow
to stop when it's at the top-level heading.The text was updated successfully, but these errors were encountered: