Function: org-narrow-to-element
org-narrow-to-element is an interactive and byte-compiled function
defined in org.el.gz.
Signature
(org-narrow-to-element)
Documentation
Narrow buffer to current element.
Use the command C-x n w (widen) to see the whole buffer again.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-narrow-to-element ()
"Narrow buffer to current element.
Use the command `\\[widen]' to see the whole buffer again."
(interactive)
(let ((elem (org-element-at-point)))
(cond
((eq (car elem) 'headline)
(narrow-to-region
(org-element-begin elem)
(org-element-end elem)))
((memq (car elem) org-element-greater-elements)
(narrow-to-region
(org-element-contents-begin elem)
(org-element-contents-end elem)))
(t
(narrow-to-region
(org-element-begin elem)
(org-element-end elem))))))