Function: org-capture-target-buffer

org-capture-target-buffer is a byte-compiled function defined in org-capture.el.gz.

Signature

(org-capture-target-buffer FILE)

Documentation

Get a buffer for FILE.

FILE is a generalized file location, as handled by org-capture-expand-file.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-capture.el.gz
(defun org-capture-target-buffer (file)
  "Get a buffer for FILE.
FILE is a generalized file location, as handled by
`org-capture-expand-file'."
  (let ((file (org-capture-expand-file file)))
    (or (org-find-base-buffer-visiting file)
	(progn (org-capture-put :new-buffer t)
	       (find-file-noselect file)))))