Function: denote--get-active-region-content
denote--get-active-region-content is a byte-compiled function defined
in denote.el.
Signature
(denote--get-active-region-content)
Documentation
Return the text of the active region, else nil.
Source Code
;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote--get-active-region-content ()
"Return the text of the active region, else nil."
(when-let* ((_ (region-active-p))
(beg (region-beginning))
(end (region-end))
(contents (buffer-substring-no-properties beg end))
(_ (not (string-blank-p contents))))
(string-trim contents)))