summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-02-07 11:56:04 -0500
committerKyle Meyer <kyle@kyleam.com>2016-02-07 11:56:04 -0500
commit30bcff112928fb15e2b0e8c810266353d721d752 (patch)
treec1887d04e7cc3adf3ecef83b831ba4afb95fb628
parent825ce04b9e4dd26365c5535e041b43d7dfdac2a5 (diff)
downloadorg-mode-30bcff112928fb15e2b0e8c810266353d721d752.tar.gz
org-capture: Document org-directory
* lisp/org-capture.el (org-capture-templates): * doc/org.texi (Template elements): Document org-directory.
-rw-r--r--doc/org.texi4
-rw-r--r--lisp/org-capture.el3
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/org.texi b/doc/org.texi
index 784f9a1..3405ff2 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -7154,7 +7154,9 @@ files, targets usually define a node. Entries will become children of this
node. Other types will be added to the table or list in the body of this
node. Most target specifications contain a file name. If that file name is
the empty string, it defaults to @code{org-default-notes-file}. A file can
-also be given as a variable, function, or Emacs Lisp form.
+also be given as a variable, function, or Emacs Lisp form. When an absolute
+path is not specified for a target, it is taken as relative to
+@code{org-directory}.
Valid values are:
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 1bfa882..5052ad8 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -124,7 +124,8 @@ target Specification of where the captured item should be placed.
Most target specifications contain a file name. If that file
name is the empty string, it defaults to `org-default-notes-file'.
A file can also be given as a variable, function, or Emacs Lisp
- form.
+ form. When an absolute path is not specified for a
+ target, it is taken as relative to `org-directory'.
Valid values are: