Function: org-indent-notify-modified-headline
org-indent-notify-modified-headline is a byte-compiled function
defined in org-indent.el.gz.
Signature
(org-indent-notify-modified-headline BEG END)
Documentation
Set org-indent-modified-headline-flag depending on context.
BEG and END are the positions of the beginning and end of the range of deleted text.
This function is meant to be called by before-change-functions.
Flag will be non-nil if command is going to modify or delete an
headline.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-indent.el.gz
(defun org-indent-notify-modified-headline (beg end)
"Set `org-indent-modified-headline-flag' depending on context.
BEG and END are the positions of the beginning and end of the
range of deleted text.
This function is meant to be called by `before-change-functions'.
Flag will be non-nil if command is going to modify or delete an
headline."
(when org-indent-mode
(setq org-indent-modified-headline-flag
(org-with-wide-buffer
(goto-char beg)
(save-match-data
(or (and (org-at-heading-p) (< beg (match-end 0)))
(re-search-forward
(org-with-limited-levels org-outline-regexp-bol) end t)))))))