diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2010-01-10 10:48:38 +0100 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-01-10 10:48:38 +0100 |
commit | c886640728c5413a2341a967731e98c047489cba (patch) | |
tree | 594156ffc947fa397903783eb971a7299d882240 | |
parent | bb488fa3b1eaa61ea2dfe7238f9da85bc42b0ffb (diff) | |
download | org-mode-c886640728c5413a2341a967731e98c047489cba.tar.gz |
Document `org-property-allowed-value-functions'
-rw-r--r-- | doc/org.texi | 9 | ||||
-rw-r--r-- | lisp/org.el | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/doc/org.texi b/doc/org.texi index c9af159..3cedc24 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -12054,6 +12054,15 @@ Treat the value of the property PROPERTY as a whitespace-separated list of values and check if VALUE is in this list. @end defun +@defopt org-property-allowed-value-functions +Hook for functions supplying allowed values for specific. +The functions must take a single argument, the name of the property, and +return a flat list of allowed values. If @samp{:ETC} is one of +the values, use the values as completion help, but allow also other values +to be entered. The functions must return @code{nil} if they are not +responsible for this property. +@end defopt + @node Using the mapping API, , Using the property API, Hacking @section Using the mapping API @cindex API, for mapping diff --git a/lisp/org.el b/lisp/org.el index c88f710..14c1f55 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -12976,8 +12976,8 @@ The functions must take a single argument, the name of the property, and return a flat list of allowed values. If \":ETC\" is one of the values, this means that these values are intended as defaults for completion, but that other values should be allowed too. -The functions must return nil if they are now responsible for this -prioerty.") +The functions must return nil if they are not responsible for this +property.") (defun org-property-get-allowed-values (pom property &optional table) "Get allowed values for the property PROPERTY. |