Function: kotl-mode:copy-to-register
kotl-mode:copy-to-register is an interactive and byte-compiled
function defined in kotl-mode.el.
Signature
(kotl-mode:copy-to-register REGISTER START END &optional DELETE-FLAG)
Documentation
Copy into REGISTER the region START to END.
With optional prefix arg DELETE-FLAG, delete region.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
(defun kotl-mode:copy-to-register (register start end &optional delete-flag)
"Copy into REGISTER the region START to END.
With optional prefix arg DELETE-FLAG, delete region."
(interactive "cCopy to register: \nr\nP")
(let ((indent (kcell-view:indent)))
(set-register register
(replace-regexp-in-string
(concat "^" (make-string indent ?\ ))
""
(buffer-substring start end) nil t)))
(when delete-flag
(delete-region start end)))