Function: org-priority-show

org-priority-show is an interactive and byte-compiled function defined in org.el.gz.

Signature

(org-priority-show)

Documentation

Show the priority of the current item.

This priority is composed of the main priority given with the [#A] cookies, and by additional input from the age of a schedules or deadline entry.

Key Bindings

Aliases

org-show-priority

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-priority-show ()
  "Show the priority of the current item.
This priority is composed of the main priority given with the [#A] cookies,
and by additional input from the age of a schedules or deadline entry."
  (interactive)
  (let ((pri (if (eq major-mode 'org-agenda-mode)
		 (org-get-at-bol 'priority)
	       (save-excursion
		 (save-match-data
		   (beginning-of-line)
		   (and (looking-at org-heading-regexp)
			(org-get-priority (match-string 0))))))))
    (message "Priority is %d" (if pri pri -1000))))