mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-07-20 13:56:28 +00:00
org-priority-show: Fix the docstring after changes in "priority" for agenda
* lisp/org.el (org-priority-show): Do not wrongly assert that the
priority is affected by scheduled and deadline values. This was not
true in the past for Org mode buffers, and it is no longer true after
8fab6eeef
renamed composite agenda rank from priority to urgency.
* etc/ORG-NEWS (~org-priority=show~ command no longer adjusts for
scheduled/deadline): Document the change, right before the NEWS item
describing changes in the agenda.
This commit is contained in:
parent
eab92e8f77
commit
c8c8e3326d
|
@ -13,6 +13,15 @@ Please send Org bug reports to mailto:emacs-orgmode@gnu.org.
|
|||
|
||||
* Version 9.7 (not released yet)
|
||||
** Important announcements and breaking changes
|
||||
*** ~org-priority=show~ command no longer adjusts for scheduled/deadline
|
||||
|
||||
In agenda views, ~org-priority=show~ command previously displayed the
|
||||
composite rank consisting of the item priority and overdue. This is
|
||||
no longer the case. The displayed and returned value only depends on
|
||||
the item priority now.
|
||||
|
||||
The behavior in Org buffers is unchanged.
|
||||
|
||||
*** "Priority" used to sort items in agenda is renamed to "urgency"
|
||||
|
||||
Previously, ~priority-up~ and ~priority-down~ in
|
||||
|
|
|
@ -10940,9 +10940,8 @@ or a character."
|
|||
|
||||
(defalias 'org-show-priority 'org-priority-show)
|
||||
(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."
|
||||
"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)
|
||||
|
|
Loading…
Reference in a new issue