Variable: org-priority-get-priority-function

org-priority-get-priority-function is a customizable variable defined in org.el.gz.

Value

nil

Documentation

Function to extract the priority from a string.

The string is normally the headline. If this is nil, Org computes the priority from the priority cookie like [#A] in the headline. It returns an integer, increasing by 1000 for each priority level.

The user can set a different function here, which should take a string as an argument and return the numeric priority.

This variable was added, or its default value changed, in Emacs 24.1.

Aliases

org-get-priority-function

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defcustom org-priority-get-priority-function nil
  "Function to extract the priority from a string.
The string is normally the headline.  If this is nil, Org
computes the priority from the priority cookie like [#A] in the
headline.  It returns an integer, increasing by 1000 for each
priority level.

The user can set a different function here, which should take a
string as an argument and return the numeric priority."
  :group 'org-priorities
  :version "24.1"
  :type '(choice
	  (const nil)
	  (function)))