Function: org-refile--get-location

org-refile--get-location is a byte-compiled function defined in org-refile.el.gz.

Signature

(org-refile--get-location REFLOC TBL)

Documentation

When user refile to REFLOC, find the associated target in TBL.

Also check org-refile-target-table.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-refile.el.gz
(defun org-refile--get-location (refloc tbl)
  "When user refile to REFLOC, find the associated target in TBL.
Also check `org-refile-target-table'."
  (car (delq
	nil
	(mapcar
	 (lambda (r) (or (assoc r tbl)
			 (assoc r org-refile-target-table)))
	 (list (replace-regexp-in-string "/$" "" refloc)
	       (replace-regexp-in-string "\\([^/]\\)$" "\\1/" refloc))))))