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 as number.

Return the priority value.

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 as number.
Return the priority value."
  (interactive)
  (let ((pri (if (eq major-mode 'org-agenda-mode)
		 (org-get-at-bol 'priority)
	       (save-excursion
		 (save-match-data
		   (forward-line 0)
		   (and (looking-at org-heading-regexp)
			(org-get-priority (match-string 0))))))))
    (message "Priority is %d" (if pri pri -1000))))