Function: hypb:insert-region
hypb:insert-region is a byte-compiled function defined in hypb.el.
Signature
(hypb:insert-region BUFFER START END INVISIBLE-FLAG)
Documentation
Insert into BUFFER the contents of the region from START to END.
Contents come from the current buffer. INVISIBLE-FLAG, if non-nil, means invisible text in an outline region is copied, otherwise, it is omitted.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hypb.el
(defun hypb:insert-region (buffer start end invisible-flag)
"Insert into BUFFER the contents of the region from START to END.
Contents come from the current buffer. INVISIBLE-FLAG, if
non-nil, means invisible text in an outline region is copied,
otherwise, it is omitted."
(if invisible-flag
;; Skip hidden blank lines between cells but include hidden outline text.
(while (< start end)
(if (not (get-text-property start 'invisible))
(append-to-buffer buffer start (1+ start)))
(setq start (1+ start)))
;; Skip both hidden blank lines between cells and hidden outline text.
(while (< start end)
(or (kview:char-invisible-p start) (append-to-buffer buffer start (1+ start)))
(setq start (1+ start)))))