emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Anton Latukha <anton@latukha.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: [PATCH] org: org-get-priority-function: Clearly state that this is a holder for a name of the function
Date: Sun, 29 Sep 2019 03:54:50 +0300	[thread overview]
Message-ID: <2391111569718490@vla3-bebe75876e15.qloud-c.yandex.net> (raw)

[-- Attachment #1: Type: text/html, Size: 181 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org-org-get-priority-function-doc-add-that-it-holds-.patch --]
[-- Type: text/x-diff; name="0001-org-org-get-priority-function-doc-add-that-it-holds-.patch", Size: 1015 bytes --]

From da3066489128af42a89e498db7fb8b0bcda9e431 Mon Sep 17 00:00:00 2001
From: Anton-Latukha <anton.latukha@gmail.com>
Date: Sun, 29 Sep 2019 03:41:17 +0300
Subject: [PATCH] org: org-get-priority-function: doc: add that it holds a func
 name

* org (org-get-priority-function): Make clear that *this must hold the
name of a custom priority getter function (there were cases of
confusion).
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 450d16083..113d97a8f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -2591,7 +2591,7 @@ See also `org-default-priority'."
   :type 'boolean)
 
 (defcustom org-get-priority-function nil
-  "Function to extract the priority from a string.
+  "Name of a function to extract the priority from a string.
 The string is normally the headline.  If this is nil Org computes the
 priority from the priority cookie like [#A] in the headline.  It returns
 an integer, increasing by 1000 for each priority level.
-- 
2.23.0


             reply	other threads:[~2019-09-29  0:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-29  0:54 Anton Latukha [this message]
2019-10-08  9:15 ` [PATCH] org: org-get-priority-function: Clearly state that this is a holder for a name of the function Nicolas Goaziou
2019-10-08 12:32   ` Anton Latukha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2391111569718490@vla3-bebe75876e15.qloud-c.yandex.net \
    --to=anton@latukha.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).