From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GOUEJgGfxl8/JwAA0tVLHw (envelope-from ) for ; Tue, 01 Dec 2020 19:52:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sAriIQGfxl+OJQAA1q6Kng (envelope-from ) for ; Tue, 01 Dec 2020 19:52:33 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E37A19403EB for ; Tue, 1 Dec 2020 19:52:32 +0000 (UTC) Received: from localhost ([::1]:33240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkBhO-0003V6-EY for larch@yhetil.org; Tue, 01 Dec 2020 14:52:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkBgI-0003T2-0r for emacs-orgmode@gnu.org; Tue, 01 Dec 2020 14:51:22 -0500 Received: from coral.adamspiers.org ([2001:ba8:1f1:f27f::2]:39754) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkBgE-0005YJ-JV for emacs-orgmode@gnu.org; Tue, 01 Dec 2020 14:51:21 -0500 Received: from localhost (243.103.2.81.in-addr.arpa [81.2.103.243]) by coral.adamspiers.org (Postfix) with ESMTPSA id 252722E8A3 for ; Tue, 1 Dec 2020 19:51:14 +0000 (GMT) From: Adam Spiers To: emacs-orgmode@gnu.org Subject: [PATCH] org-agenda.el: Add a M-, binding for org-priority-show Date: Tue, 1 Dec 2020 19:51:11 +0000 Message-Id: <20201201195111.11217-1-orgmode@adamspiers.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:ba8:1f1:f27f::2; envelope-from=orgmode@adamspiers.org; helo=coral.adamspiers.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 4.31 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=adamspiers.org (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: E37A19403EB X-Spam-Score: 4.31 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: E/3Qn/fM7Yhm This offers an easy way to check the internal numeric priority used for sorting within the agenda. --- doc/org-manual.org | 8 ++++++++ lisp/org-agenda.el | 1 + 2 files changed, 9 insertions(+) diff --git a/doc/org-manual.org b/doc/org-manual.org index 5a84a6de6..e914af42d 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -9891,6 +9891,14 @@ the other commands, point needs to be in the desired line. Set tags for the current headline. If there is an active region in the agenda, change a tag for all headings in the region. +- {{{kbd(M-\,)}}} (~org-priority-show~) :: + + #+kindex: M-, + #+findex: org-priority-show + Show the numeric priority for 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. + - {{{kbd(\,)}}} (~org-agenda-priority~) :: #+kindex: , diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index a482b3db4..40ea31fdc 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -2399,6 +2399,7 @@ (defun org-agenda-mode () (org-defkey org-agenda-mode-map "\C-c\C-p" #'org-agenda-previous-date-line) (org-defkey org-agenda-mode-map "\C-c," #'org-agenda-priority) (org-defkey org-agenda-mode-map "," #'org-agenda-priority) +(org-defkey org-agenda-mode-map [(meta ?,)] #'org-priority-show) (org-defkey org-agenda-mode-map "i" #'org-agenda-diary-entry) (org-defkey org-agenda-mode-map "c" #'org-agenda-goto-calendar) (org-defkey org-agenda-mode-map "C" #'org-agenda-convert-date) -- 2.28.0