org.el: fx org-get-priority-function funcall (give arg - headline)
* org.el (org-get-priority): Fix to allow the use of custom priority getters. Provide the headline as argument to the custom priority getter function.
This commit is contained in:
parent
d1c9e1de68
commit
1f8b454825
|
@ -11678,7 +11678,7 @@ and by additional input from the age of a schedules or deadline entry."
|
||||||
"Find priority cookie and return priority."
|
"Find priority cookie and return priority."
|
||||||
(save-match-data
|
(save-match-data
|
||||||
(if (functionp org-get-priority-function)
|
(if (functionp org-get-priority-function)
|
||||||
(funcall org-get-priority-function)
|
(funcall org-get-priority-function s)
|
||||||
(if (not (string-match org-priority-regexp s))
|
(if (not (string-match org-priority-regexp s))
|
||||||
(* 1000 (- org-lowest-priority org-default-priority))
|
(* 1000 (- org-lowest-priority org-default-priority))
|
||||||
(* 1000 (- org-lowest-priority
|
(* 1000 (- org-lowest-priority
|
||||||
|
|
Loading…
Reference in New Issue