From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oBCEKWh5UGGgZQAAgWs5BA (envelope-from ) for ; Sun, 26 Sep 2021 15:45:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sA2RJGh5UGHgWAAAbx9fmQ (envelope-from ) for ; Sun, 26 Sep 2021 13:45:12 +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 0BCB231B4E for ; Sun, 26 Sep 2021 15:45:12 +0200 (CEST) Received: from localhost ([::1]:55090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUUSt-0001Tt-9Q for larch@yhetil.org; Sun, 26 Sep 2021 09:45:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUURz-0001Tk-N7 for emacs-orgmode@gnu.org; Sun, 26 Sep 2021 09:44:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48938) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUURw-0001dP-GG; Sun, 26 Sep 2021 09:44:15 -0400 Received: from [78.194.183.21] (port=45436 helo=hal) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUURw-0001rs-8u; Sun, 26 Sep 2021 09:44:12 -0400 Received: by hal (Postfix, from userid 1000) id 6CC681E041B; Sun, 26 Sep 2021 15:44:09 +0200 (CEST) From: Bastien To: Joe Corneli via "General discussions about Org-mode." Subject: Re: [patch] priorities range reversed In-Reply-To: <87v94ewyvw.fsf@Proteus> (Joe Corneli via's message of "Mon, 09 Aug 2021 14:06:43 +0100") Organization: GNU References: <87v94ewyvw.fsf@Proteus> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Sun, 26 Sep 2021 15:44:09 +0200 Message-ID: <87a6jz78pi.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Cc: Joe Corneli Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632663912; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=gZHg3O0/mMkQ3Eu48I6OkDLlDnstqifbusetfJzcVNk=; b=je0TWcflSlZI8ulrDUrWsw0Eq8Ikm7RBkyyZuya81m+8lo1PGCxhOU558vLO5z7GvppLdJ NJa9TT8mx15XWHSTYtyY5ni4KbW+yCGvzHctLJmQ8JtjbXfSaCYcKQIU3xG6Yn9ssoF0kq vRWPC7/W3qUz8NXbL+9DMKcRwiGhEs/wb9aca9YEgWugiI+CV9ETVQTSArGRromqGUriBv kF3ASz09OzL2d/47lH67o1hBrbrjEddsw03l9Px8RwIknqOzNBwJ7eZ8qFMlATAAZ4BidQ KQD6kdZ3YT24/EYks8dsMhquBT7vRjGhy2LuDiPMXzG+10DvjPHdm6YnUeuZYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632663912; a=rsa-sha256; cv=none; b=KN1ROQvb0xEUozjn9RzOLJzU0Wpvt5crC3n6p55pADLf+nPbBE52jbfSe+VS/Kq0hsuQNE QPZSKOjb3lNblr+OBoIt8nV7SLSbSRMMWUBEeZc41hQi6/1/wetdHflbBRVLA2wIDwMYEn /otjzJqMyb8KkERD7syVNGJm0TyF0976qnLPndUj1wxvTa3aoyrpzCbEbrdJkugwxfXY1W H3UlfayYCbekwGQurylUmMnm/B//sf1Jwq1+ScSr0CrE2P37tY6R5X4CNMbqXqD6iEXRSX Dcc4EW461Q1o8wwnhdsTPTBfwXkI6NwGWtnFbPUcTgiJafurWEqHM4B0cokW+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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-Spam-Score: -1.39 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 0BCB231B4E X-Spam-Score: -1.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: WnyO7a3agT88 Hi Joe, Joe Corneli via "General discussions about Org-mode." writes: > In the case of numeric priorities [#1] [#9] and so on, there is a test > that is reversed in org.el.=20=20 See the docstring of `org-priority-highest': The highest priority of TODO items. =20=20 A character like ?A, ?B, etc., or a numeric value like 1, 2, etc. =20=20 The default is the character ?A, which is 65 as a numeric value. =20=20 If you set =E2=80=98org-priority-highest=E2=80=99 to a numeric value infe= rior to 65, Org assumes you want to use digits for the priority cookie. If you set it to >=3D65, Org assumes you want to use alphabetical characters. =20=20 In both cases, the value of =E2=80=98org-priority-highest=E2=80=99 must be smaller than =E2=80=98org-priority-lowest=E2=80=99: for example, if "A" i= s the highest priority, it is smaller than the lowest "C" priority: 65 < 67. Are you sure the numeric value for `org-priority-highest' is smaller than that of `org-priority-lowest'? For numeric priorities, [#1] is always "higher" than [#2]. If I'm not wrong and if you think we can throw a more useful error earlier to the useful, could you provide a patch for this? Let me know if I'm missing something, thanks, --=20 Bastien