Variable: org-properties-postprocess-alist
org-properties-postprocess-alist is a customizable variable defined in
org.el.gz.
Value
nil
Documentation
Alist of properties and functions to adjust inserted values.
Elements of this alist must be of the form
([string] [function])
where [string] must be a property name and [function] must be a lambda expression: this lambda expression must take one argument, the value to adjust, and return the new value as a string.
For example, this element will allow the property "Remaining" to be updated wrt the relation between the "Effort" property and the clock summary:
(("Remaining" (lambda(value)
(let ((clocksum (org-clock-sum-current-item))
(effort (org-duration-to-minutes
(org-entry-get (point) "Effort"))))
(org-minutes-to-clocksum-string (- effort clocksum))))))
This variable was added, or its default value changed, in Emacs 24.1.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defcustom org-properties-postprocess-alist nil
"Alist of properties and functions to adjust inserted values.
Elements of this alist must be of the form
([string] [function])
where [string] must be a property name and [function] must be a
lambda expression: this lambda expression must take one argument,
the value to adjust, and return the new value as a string.
For example, this element will allow the property \"Remaining\"
to be updated wrt the relation between the \"Effort\" property
and the clock summary:
((\"Remaining\" (lambda(value)
(let ((clocksum (org-clock-sum-current-item))
(effort (org-duration-to-minutes
(org-entry-get (point) \"Effort\"))))
(org-minutes-to-clocksum-string (- effort clocksum))))))"
:group 'org-properties
:version "24.1"
:type '(alist :key-type (string :tag "Property")
:value-type (function :tag "Function")))