Function: kotl-mode:copy-region-to-buffer
kotl-mode:copy-region-to-buffer is an interactive and byte-compiled
function defined in kotl-mode.el.
Signature
(kotl-mode:copy-region-to-buffer TARGET-BUF START END &optional SOURCE-BUF INVISIBLE-FLAG)
Documentation
Copy to TARGET-BUF the region between START and END.
Copy from the current buffer or optional SOURCE-BUF (a buffer or buffer name). Invisible text is expanded and included only if INVISIBLE-FLAG is non-nil.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
;;; ------------------------------------------------------------------------
;;; Structure Insertion Across Buffers
;;; ------------------------------------------------------------------------
(defun kotl-mode:copy-region-to-buffer (target-buf start end &optional source-buf invisible-flag)
"Copy to TARGET-BUF the region between START and END.
Copy from the current buffer or optional SOURCE-BUF (a buffer or buffer name).
Invisible text is expanded and included only if INVISIBLE-FLAG is non-nil."
(interactive
(hargs:iform-read
'(interactive
(let ((target-buf (hargs:read-buffer-name
(format "Buffer to copy region to (default %s): " (other-buffer)))))
(when (buffer-local-value 'buffer-read-only (get-buffer target-buf))
(signal 'buffer-read-only (list target-buf)))
(list target-buf
(region-beginning) (region-end)
(current-buffer)
(y-or-n-p "Include any invisible text? "))))))
(unless source-buf
(setq source-buf (current-buffer)))
(when (stringp source-buf)
(setq source-buf (get-buffer source-buf)))
(save-excursion
(with-current-buffer source-buf
(hypb:insert-region target-buf start end invisible-flag))))