From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yDGXFJa932FzRQAAgWs5BA (envelope-from ) for ; Thu, 13 Jan 2022 06:50:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QI9GDZa932E/owAAG6o9tA (envelope-from ) for ; Thu, 13 Jan 2022 06:50:14 +0100 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 B6BD82CB1B for ; Thu, 13 Jan 2022 06:50:13 +0100 (CET) Received: from localhost ([::1]:33586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7t00-0007hR-A6 for larch@yhetil.org; Thu, 13 Jan 2022 00:50:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7syc-0007h7-8i for emacs-orgmode@gnu.org; Thu, 13 Jan 2022 00:48:48 -0500 Received: from mail-oln040092065021.outbound.protection.outlook.com ([40.92.65.21]:28429 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7syZ-00007j-JW for emacs-orgmode@gnu.org; Thu, 13 Jan 2022 00:48:45 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E1g+FOfUs6PDpAzqZWhUPAGL9VCOG2cK/Rf8tdhkpdlDCQrvVlZkZXXtHxLbBuq/YNDP1nJJDDGrJamfA6H3MHvD3a8u0b1qdxQxlc0oflCEyOE2ow9FnwgvgM8x9Mub/6V1s0Y1rpdajU4zO6iyDeWrvyFwJourSvGEAz2EJNbjP3twFnePbmYGbihM/Hudowzp2x04e34oBHjb9AWA0qRuiOWEejlFgUWyUpV1bNuGiv1+V4zdCSYlnHDkmBSRk+qLxhdZ/BuXj+pUyOJcMLp0LuTz3CKnbFSntOryqdbJfF0fSvKETvxMkSnb+KIUGFMtZn1/5nDfr1FQ8EmvNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SUyEzXdfbKtSxXDb2IJHAk9UlvqvduEn4ti+EBGMEIg=; b=bqvlILSaMChYjE2N4ZlqNbicQG98p5b7jQOXcwj5EHQqL8e5j/8/xD1Ag1ckVXBsuORSAHAEWQwEoyJv9EuAg7+X2o5F+/BRZOpA8sWRIMUjQpik4ACGSdaC9wMY5at+9aENMds/ba82zleBIiztsC7RR3e0X39DSJhahy6pzXoJ/gMFVWds1SDvTjxeO1I8Kuyk5kU6lqUjPdjo1yNET6Jagn6xLzVeGRIxz+D4xO2hzFGv63lLupzdNwKPnFmRGcGBcH2/2sOEnsgpvYD+h+y2BR90fdLDuuxIcxYVKP7OBYcJ1bcBQoSDtDPXxXaGabc6VamAGOwIji8yEeYquw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SUyEzXdfbKtSxXDb2IJHAk9UlvqvduEn4ti+EBGMEIg=; b=W/zFGMPTPJIhjJ/rjazOfUTBcHVQjels5Sd5WzXsWWImqViwX0IJN4OjYTk++lTgIMDZzBdKOUpc7V/tDb6g6lefWprBxxdRcLiYrg8OA4fhJwx01g6Yean0R+5IB4Ql1pXSnCP4TXOUi1cgDvcPLuQ5paxNDXNDtrwgJuMoHTCI/zXiXcIC2iYPX/ig3mpUkDoKjHxBMTARA112KskePdtcRMq2XS3te9wItga6ZtiOfu8qz6UskcU6LcCudFG6BuVDgN+TwJkcpzsWhiIQypN/jaHOSMEW/ZdMvENrimlOPW2o27UNJBNSxpLctoAvnqjLtJXNy+jJRHN1AOW9oQ== Received: from PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) by PAXPR08MB6526.eurprd08.prod.outlook.com (2603:10a6:102:df::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.11; Thu, 13 Jan 2022 05:48:39 +0000 Received: from PAXPR08MB6640.eurprd08.prod.outlook.com ([fe80::30ca:c8bc:8796:adbd]) by PAXPR08MB6640.eurprd08.prod.outlook.com ([fe80::30ca:c8bc:8796:adbd%3]) with mapi id 15.20.4867.012; Thu, 13 Jan 2022 05:48:39 +0000 References: <87v8yolxcz.fsf@gmail.com> <87r19cl08o.fsf@gmail.com> User-agent: mu4e 1.7.0; emacs 29.0.50 From: "Christopher M. Miles" To: Timothy Subject: Re: [BUG] Prefer lowercase #+results [9.5.2 (release_9.5.2-3-geb9f34 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)] Date: Thu, 13 Jan 2022 13:25:32 +0800 In-reply-to: <87r19cl08o.fsf@gmail.com> Message-ID: Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-TMN: [15k1jqQxNpFs48lS26L1MiwwBnaK9rNH] X-ClientProxiedBy: HK2PR03CA0054.apcprd03.prod.outlook.com (2603:1096:202:17::24) To PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 2 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6be7d226-105c-48db-8424-08d9d6585927 X-MS-TrafficTypeDiagnostic: PAXPR08MB6526:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xeCoh+/mMlpE0xuW9jlQJyK1/tMcTrEGQCrREVJWMSCUZV9crzfnKNQHZHYyA/qcv/UInpUqxwd04qNl8EKwhxNmJAfCfhWWJxUfxOTOSnjmrfTLB5WreW0WUT+MFYS3Mle8ZiFy8gZPBe1omS35RpUwwp67s0njtYlWD33eGePcOHy4auO3tQW9E+QYpZVgFtI1mp8yZa6cHQtPohLkpB2dZNsU8Puo3k8pYOxYMBz//h5EEAT8ScEE8lprIyOOypXQHwTW4+/IkevYncg84yM4LM0yNBon/y4pmA2c/1m1XWoZBjcr/QPy2YOADwiFxmoPmkqBCdVNBd0Bb/YWzWPEa+uG+VTLUL1zr9P02nQ1LGpgNPYdv3sYIWO3sgbYbHLf8B/GNZJetc9rc7BZu2/9Y6nmAn/CW6O5mQ3aG4ElD/RXspTjSYzTtD4Xd3hujeGgV/GyTFT6DTw+UfD95ydLVoj3lxez2fjvzOT94Gd/nxKIA5M7pNWtO2Ko5oA/EppdtOOEz9JE+ItGdzvukXFYaeA1G4n2uttc54F+YtCbqvTr5lvPIaoMfNjzDGoXgZrr39ObyahdXWSW7A4bvNSxC2USmJZZE9jA+DM0wDNbpylfgIEuNFVrg3Nq9lva X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UDVPNWwzZkZ5dmczbjgvRXp5M1VhSStjRGUvd1VtL2FBWW1KUzhMd2NyZXE3?= =?utf-8?B?bFVzeEljeVlQNHZIVnNPaFJJVUZvTVlGRG5OZmM4aFVRODhmZE02c3QxQjRr?= =?utf-8?B?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WkhK?= =?utf-8?B?WC9oNWF1OVZJbjMwaWFTbjJmcXNFT0IrZG5XR2Nyb3JXdythY2VraTRaQzhJ?= =?utf-8?B?djF0aDgwNlVsVmpoRFNGbmR2bllkTlpIY1ZORkd0dXhVeFhLV0I4eTJoNHhZ?= =?utf-8?B?aHFNNzJJNEhsZVpQZmttK3hWZlk5eXBQeGhQRXFBQWFyM3lQeWpZWksyZjk3?= =?utf-8?B?V1IrOTlOTXBvK1JKdmIrRk8xQ1J4SjFxZFhRZGRzUS9VeXRmUFBkemdPQ0Vr?= =?utf-8?B?V2RNMHV3WGNRdlpnVVQ0YVNJR2RvbyswTEpZSVRGamtUSGhnUT09?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6be7d226-105c-48db-8424-08d9d6585927 X-MS-Exchange-CrossTenant-AuthSource: PAXPR08MB6640.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2022 05:48:39.4149 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6526 Received-SPF: pass client-ip=40.92.65.21; envelope-from=stardiviner@outlook.com; helo=EUR01-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: , Reply-To: numbchild@gmail.com Cc: emacs-orgmode@gnu.org, Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642053014; h=from:from:sender:sender:reply-to: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=SUyEzXdfbKtSxXDb2IJHAk9UlvqvduEn4ti+EBGMEIg=; b=MEwtZVOUK/p0sshXtQITsE/3gocqfZ4JdLN7UK5dORgpVkDML789TbNwiyRVPxVI85xJOu Isba793wEESWRMJZSiM4HWJG8QNqYkfOgvjM2edqX7XcqlDrk3/T9LzMISpVRMPW97cUCf fFb3gI2R6roD6V4UrQXBYIyZgGUZ76vaRtO8XEmeMuGbCceCtcHusTVZV8n+DsRHEP9tJJ Ldj+8xnUYHUVoZmRjkGh4n8p1yxPkukoIxeIV8Gyv7oUMQBrTF3MXKQR4zk/b6TWdjIyJ1 dJ19Yx+sbvjccrjW6Pnf4eCapwLsGRyd5Pckjnr5JL4ivyjWwQRSIF493Ym1PA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1642053014; a=rsa-sha256; cv=pass; b=cwOCrdKBgWaTPu6yu4vcXA2OKuBfC8SZelAj2URm3slTMQQ3gMcFs1npC6Prz3zQY/sbPS nbQ+NlAozq/+19mu/yJ9vx6N5m+czrwE1HkOqFlz9EJtKyl7VAFvn96/SfI59xZDvmZOop eoRzK73j0UG+kPvDxTEmZTgfr5k8A5ig5WnqBp0L4l88JpbHnDFWywm1ht92TXHPhcKqAT GpzKLOAkRjX/R4z5hdBJvTn+HadNXjFz1U04sTSjdqJ64a7/XXfQT+6ZLMgOYNkGlPLSj6 YCP8KQxGPOHaMvgy1ZHcFWPAoIKSmLT7XqwdD43hCPPxFuY6N1MKM+0p6QnaCw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="W/zFGMPT"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: -8.32 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="W/zFGMPT"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: B6BD82CB1B X-Spam-Score: -8.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: Yy79pK12BTya --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Timothy writes: > Hi Christopher, > >>> Is there a good reason for this? >>> >>> At a glance, I=E2=80=99d personally be tempted to make the use case ins= ensitive, and >>> only use `org-babel-results-keyword=E2=80=99 when inserting, or remove = it all together. >> >> Me too, I hope it can be case-insensitive, if org-mode internal has alre= ady case-sensitive >> processing. I suggest to keep one standard. I remember used to blocks li= ke `#+BEGIN_SRC' etc are >> uppercase by default. Latter changed into lowercase. Then I did a lot of= work to replace them. If we >> need to use lowercase, I suggest to use them all. It might improve regex= p matching speed? Don=E2=80=99t know=E2=80=A6=E2=80=A6 > > See my reply to Ihor, I actually misread the code. It *is* case insensiti= ve (as it > should be). So, changing the default capitalisation of `org-babel-results= -keyword' > would have no effect on the interpretation or function of existing docume= nts. > > Based on your comments on converting block case, maybe it would be worth > providing a function to normalise the case in an Org document? > > All the best, > Timothy Indeed, there is a similar purpose function: #+begin_src emacs-lisp (defun modi/lower-case-org-keywords () "Lower case Org keywords and block identifiers. Example: \"#+TITLE\" -> \"#+title\" \"#+BEGIN_EXAMPLE\" -> \"#+begin_example\" Inspiration: https://code.orgmode.org/bzg/org-mode/commit/13424336a6f30c50952d291e7a8290= 6c1210daf0." (interactive) (save-excursion (goto-char (point-min)) (let ((case-fold-search nil) (count 0)) ;; Match examples: "#+FOO bar", "#+FOO:", "=3D#+FOO=3D", "~#+FOO~", ;; "=E2=80=98#+FOO=E2=80=99", "=E2=80=9C#+FOO=E2=80= =9D", ",#+FOO bar", ;; "#+FOO_bar", "#+FOO". (while (re-search-forward "\\(?1:#\\+[A-Z_]+\\(?:_[[:alpha:]]+\\)*\\)= \\(?:[ :=3D~=E2=80=99=E2=80=9D]\\|$\\)" nil :noerror) (setq count (1+ count)) (replace-match (downcase (match-string-no-properties 1)) :fixedcase= nil nil 1)) (message "Lower-cased %d matches" count)))) #+end_src =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmHfvS8ACgkQG13xyVro msM4cggAn/3tuyONinuyqWvTYrZ7hc7PVjlGyC6t2HAL8CbQDE7bVTP4ZeFIF3ai EcOggziWbb3ruvNtcybvybU+vCvfYYQm5g7E1Jp/7aXIoA7bDaqmzCNXH9ELI2MU o+Dpvi5TOXO2TZYI9DkatdBVWG2uvSRJAtsYoRUVjNQvowFLu6LS945ejGA6/xAM xqgQEI0eXAmWbPFLuwfyu8yJf/dRyW8++bGpVuIeuyZptf4fJgXAvoSLRrSwAJ1m SDG9X9+UFSWRJZxvLegr0WXzuWXu9DVROglQpsXum42i6IMnCdKusOyj5TvvfIPt Dt9bdEbkTEWjubEu4xvPOZ4UgOxHCA== =ZK+o -----END PGP SIGNATURE----- --=-=-=--