Function: outline--fix-buttons
outline--fix-buttons is a byte-compiled function defined in
outline.el.gz.
Signature
(outline--fix-buttons &optional BEG END)
Source Code
;; Defined in /usr/src/emacs/lisp/outline.el.gz
(defun outline--fix-buttons (&optional beg end)
;; Handle whole lines
(save-excursion
(setq beg (if (null beg) (point-min) (goto-char beg) (pos-bol)))
;; Include a final newline in the region, otherwise
;; `outline-search-text-property' may consider a heading to be outside
;; of the bounds.
(setq end (if (null end) (point-max) (goto-char end) (pos-bol 2)))
(when (eq outline-minor-mode-use-buttons 'insert)
;; `outline--remove-buttons' may change the buffer's text.
(setq end (copy-marker end t)))
(outline--remove-buttons beg end)
(save-match-data (outline--fix-up-all-buttons beg end))
`(jit-lock-bounds ,beg . ,end)))