From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uKzzFejwC2ddfwAAe85BDQ:P1 (envelope-from ) for ; Sun, 13 Oct 2024 16:10:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uKzzFejwC2ddfwAAe85BDQ (envelope-from ) for ; Sun, 13 Oct 2024 18:10:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iGJzcNAf; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728835816; a=rsa-sha256; cv=none; b=hLgdQccgYqrbiJhN0SBzh65vYeS16a76Ues4XDUz1zMe2bXDZ1qz+2mN3HXSz+bnkXJuyi aKwMOOLtXpt6VD+fLnajByQVanH3KEcfnOrtGlQllGWCsmJh0t3e9mLWrPucmukBzbyVwN a8AaRic64OmZ9swl8yyijbl5whjvNNvEcoiiJirF67XqjpEBcpzf78Sx+pUYM3l7pvVvF2 krNujc/lzox96vUdn1wdwz8X+byswrGsVduHkosNlDZWzSrG09MIeoOuv/5qEuizLlzrxa NU0/KBnAMTthRqEF36XWhAVF9GMKv+d1d82f7ChqbDddyCdFeq9cBtp/B1dY8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=iGJzcNAf; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728835816; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=T6Sh1TFhsg/LmkGtNMBT2lFP6jkc6axJEjE4P/XOJa0=; b=pGmVJxPoCYl7H/Sx2hk7AN0zRjWA8Z+NDcpkvDgwGAXf/7up/X6CxjUfKAgNgf7QpCdpsE O5kE7xtxlRif7IZHJRm3gkfnj3P3fu45NdAMty/tfdeDpHLh96xDLBTy7eHnKIYyGT4h7/ Hcxg9hWTJsF1VmsicQeSb9Ay6DUVBI1/HjPVNL7ID2j07jblFaHdMx1at4Eyh/AJ8JOadB vxDNEvkIZM+FoAZzlmr53rErA9i0yVhSio+lCyOiLO52N0v2GN9r1CLWunLw1X1OvvTXDx nFviZOgUn9lTmFDrWeiLMn4bNlY+QdX9C0JD6EggKhF+BWZS3c6yczEvC51pkw== 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 433C51DFD9 for ; Sun, 13 Oct 2024 18:10:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t019p-0002BS-2A; Sun, 13 Oct 2024 12:09:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t019n-0002BC-7J for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 12:09:23 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t019l-0004Ir-1v for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 12:09:22 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3E286240104 for ; Sun, 13 Oct 2024 18:09:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1728835757; bh=bxjuESzoN9P51DDWYs0mafli+fPf6fxUdFceXjLiK7I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=iGJzcNAf2TdgIwoNCp+f1id3VOfI8wBz7+xPG033e98BHt8agmTAKYsg0A0edZEyN rlU9qv9bb2i9jJsKmNhpNm8ifVllfZA1EFEEVFy5PkKM+04XasA8dWtBQzNUw/WDtC FKcRlYXR6gNXbnAX5OHoZ0TCXTMQJyQTHESeggptfom1bp/HrqwQtSy3Ki75bYkVMa Z0aL9y17a3qNPM43L4Yn4nAFkbAcZHo205EcgddEE+kQ2MXoSI3lr8jSRq/zN1oimw 2VogwXaMqEy4S4YrQU4vi7mvV6ZgYkZW3GGR3LFH4ur4BM/2lFosmfJhHJ/6YggX1i d42u95ocvCDPg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XRQKR63FHz9rxB; Sun, 13 Oct 2024 18:09:15 +0200 (CEST) From: Ihor Radchenko To: Tommy Jollyboat Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Numeric priorities only partially supported In-Reply-To: References: Date: Sun, 13 Oct 2024 16:11:01 +0000 Message-ID: <87jzecyodm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.36 X-Spam-Score: -5.36 X-Migadu-Queue-Id: 433C51DFD9 X-Migadu-Scanner: mx10.migadu.com X-TUID: aAFhZGUqJ9Zw Tommy Jollyboat writes: > However, various functions within org-mode are still using > ~string-to-char~ and giving inconsistent results, because numerical > priorities are parsed wrongly, or sometimes return nil (or #10 to > #64). Confirmed. > * SOLUTION > > If we agree that numeric priorities should be supported everywhere, > various functions need updating: > ... Yes. > These should all be fairly safe/uncontroversial changes to make, as > any documents that are impacted were relying on undefined behavior > (such as using chars outside of the range A-Z as priorities). Not so safe. I tried to fix this specific issue in the past and changing the org-element parser to handle non-single char priorities broke tests (either because I did something stupid or because the tests make incorrect assumptions). It would be really nice if someone worked on this issue and resolved all the possible corner cases in the tests and elsewhere. We must eventually support numeric properties, as documented in the manual. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at