branch: externals/org
commit d198e689c8a5036ebd9a0d0bead0982c6af18a17
Author: Derek Chen-Becker <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    lisp/org.el: Remove deprecated show command
    
    * lisp/org.el (org-priority): Remove the deprecated show command now
    that we're several versions beyond when the deprecation was
    introduced.
    * etc/ORG-NEWS: Add an announcement for the removal of the `show' parameter.
---
 etc/ORG-NEWS | 6 ++++++
 lisp/org.el  | 6 +-----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 9113e68ea0..6ee0a263fa 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -161,6 +161,12 @@ Previously, the whole contents of drawer, including blank 
lines at the beginning
 parsed as paragraph.  Now, the blank lines at the beginning are stored in 
~:pre-blank~
 property, just as in other greater elements.
 
+*** The deprecated =show= parameter to =org-priority= has been removed
+
+The =show= parameter for the =org-priority= function was deprecated in
+Org 9.2 (released in 2017). Sufficient time has passed and it is being
+removed as part of refactoring for numeric priorities.
+
 ** New features
 
 # We list the most important features, and the features that may
diff --git a/lisp/org.el b/lisp/org.el
index 5e9def3af7..58b026594a 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11313,7 +11313,7 @@ This regular expression matches these groups:
   (interactive)
   (org-priority 'down))
 
-(defun org-priority (&optional action show)
+(defun org-priority (&optional action)
   "Change the priority of an item.
 
 When called interactively with a `\\[universal-argument]' prefix,
@@ -11322,10 +11322,6 @@ show the priority in the minibuffer instead of 
changing it.
 When called programmatically, ACTION can be `set', `up', `down',
 or a character."
   (interactive "P")
-  (when show
-    ;; Deprecation warning inserted for Org 9.2; once enough time has
-    ;; passed the SHOW argument should be removed.
-    (warn "`org-priority' called with deprecated SHOW argument"))
   (if (equal action '(4))
       (org-priority-show)
     (unless org-priority-enable-commands

Reply via email to