Function: org-capture-put-target-region-and-position
org-capture-put-target-region-and-position is a byte-compiled function
defined in org-capture.el.gz.
Signature
(org-capture-put-target-region-and-position)
Documentation
Store the initial region with org-capture-put.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-capture.el.gz
;;; Supporting functions for handling the process
(defun org-capture-put-target-region-and-position ()
"Store the initial region with `org-capture-put'."
(org-capture-put
:initial-target-region
;; Check if the buffer is currently narrowed
(when (org-buffer-narrowed-p)
(cons (point-min) (point-max))))
;; store the current point
(org-capture-put :initial-target-position (point)))