Function: org-id-get-with-outline-path-completion

org-id-get-with-outline-path-completion is an autoloaded and byte-compiled function defined in org-id.el.gz.

Signature

(org-id-get-with-outline-path-completion &optional TARGETS)

Documentation

Use outline-path-completion to retrieve the ID of an entry.

TARGETS may be a setting for org-refile-targets to define eligible headlines. When omitted, all headlines in the current file are eligible. This function returns the ID of the entry. If necessary, the ID is created.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-id.el.gz
;;;###autoload
(defun org-id-get-with-outline-path-completion (&optional targets)
  "Use `outline-path-completion' to retrieve the ID of an entry.
TARGETS may be a setting for `org-refile-targets' to define
eligible headlines.  When omitted, all headlines in the current
file are eligible.  This function returns the ID of the entry.
If necessary, the ID is created."
  (let* ((org-refile-targets (or targets '((nil . (:maxlevel . 10)))))
	 (org-refile-use-outline-path
	  (if (caar org-refile-targets) 'file t))
	 (org-refile-target-verify-function nil)
	 (spos (org-refile-get-location "Entry"))
	 (pom (and spos (move-marker (make-marker) (or (nth 3 spos) 1)
				     (get-file-buffer (nth 1 spos))))))
    (prog1 (org-id-get pom 'create)
      (move-marker pom nil))))