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 sKfSB/svU2GdEAEAgWs5BA (envelope-from ) for ; Tue, 28 Sep 2021 17:08:43 +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 oJRAA/svU2EyBwAAbx9fmQ (envelope-from ) for ; Tue, 28 Sep 2021 15:08:43 +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 946A4CEB8 for ; Tue, 28 Sep 2021 17:08:40 +0200 (CEST) Received: from localhost ([::1]:57970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVEil-000076-O9 for larch@yhetil.org; Tue, 28 Sep 2021 11:08:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVEi3-00006k-8W for emacs-orgmode@gnu.org; Tue, 28 Sep 2021 11:07:55 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:55975) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVEhu-0007r9-WA for emacs-orgmode@gnu.org; Tue, 28 Sep 2021 11:07:54 -0400 Received: by mail-pj1-x102a.google.com with SMTP id kn18so2230910pjb.5 for ; Tue, 28 Sep 2021 08:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:user-agent:message-id:mime-version; bh=hrGCO+CQYzAGfF7ZmiVoJ3XM0KTTLX+DxiW2SP99aMM=; b=LZkTXo41ToFpZ8uBaIhmWq/63RAMoe8tUTIwnxlLwSZFJq8Ak7zoax4ddNs0yL//+v Nsf8M1Hehxwe4lO+WMbvce0fOWxvM5ORZ5JLs9/jE2dEqQ+QIy1qgf22q3IkMR2Bxrcu k2SHWrGywhLZYOnbX+sxayesUsW2vZuqODlFzajBGZwF2bodZumZix1jteiBCsZzYG/3 BpohLqq2YKD77YrmHMBOoELqvrZgGjD2pkzYgzO/CDZyyWSJo4whttn/IrWiS1unpJka 512eTCXsAFdW8yH8nEXrStJs98ad7WAPJZZrVyWzNOhx+Y3KZcHzwCFc7uWOYXEYVjxH pVaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:user-agent:message-id :mime-version; bh=hrGCO+CQYzAGfF7ZmiVoJ3XM0KTTLX+DxiW2SP99aMM=; b=mGdK8nSIZ7wmSFvhTrQ6xYkXXEnM/fBIaLx/LTWKj663/fm75t7x36/qRei/lOhOjF 8NVRjS02yVY28JXfO6m0BAQwHAv9Z6HWRVRRSzhmTS2PbEmUm+sg85uDlwIZIqJG0z6W KYUnnApxA1ptpvGaVI3v3SXLPiuVkQblrGO4Sw9oTeqZizhxOv15J5I963AVhyMJFvV5 ZgtUE5E9omJUu4Lh8/RtKRI/enpB1IUhlLfOv+/ADMhOyZOsPr+U567P3yn18Lp3A0Tm AjA+5Cnu6niEpICSRpCRdwrqiehghcI+HQppM8+zXWLbMCmbPlNQrG7+8boA2AjF+cjG m2Eg== X-Gm-Message-State: AOAM530MndRx0j/h61MJSF2rVzU3KXC7PLmug9pmy0z3NW5g+J2db91L i+AseXyrcaoKDNZ4+TUOOh3Xzx2q1W4= X-Google-Smtp-Source: ABdhPJwPQmrEO5VOZiVD6CdwfZ5y7nB7ybphna1lib7oTGJMKEFjyAdW7v/USnn/SzHnlCDnmxT7aQ== X-Received: by 2002:a17:902:708b:b0:13e:1a20:f1b0 with SMTP id z11-20020a170902708b00b0013e1a20f1b0mr5459640plk.51.1632841664305; Tue, 28 Sep 2021 08:07:44 -0700 (PDT) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id x18sm21056504pfq.130.2021.09.28.08.07.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 08:07:43 -0700 (PDT) From: Timothy To: Org Mode List Subject: [PATCH] (minor) Use lower case keywords in ox-org Date: Tue, 28 Sep 2021 22:58:35 +0800 User-agent: mu4e 1.6.5; emacs 28.0.50 Message-ID: <87ilykd9hf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=tecosaur@gmail.com; helo=mail-pj1-x102a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632841720; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hrGCO+CQYzAGfF7ZmiVoJ3XM0KTTLX+DxiW2SP99aMM=; b=MaGHiCXpBiyHaXqunGJURb/ntruVZlA1znXhHHdNJd5HLyo54PsFzePdL4QTG8SQGlN4wt kPK5dRmlrZpnu6GGWxlVePqOD4wtOgX0O8FW8I9lL2A632UGoVfUN9ylCxpW2PjjMn4yjV Dq1/IekIaAiKFx8Fb5t92pj8BnsprCRR5ORfzNWUwNh1DbjeIBGulz+Ju0SrrFIZaG18gh LAeZDPF2lUJONSL1RjJy18cKasaYuHzxLmFkHGYTyl6XRHKobXrnDHqF0gAzBu3Lt8+xBN KorZaLHGkFvoRRK8hhhh4NBhnDYbO0BjKTJd63vucz3UHEs8OxL5Fu2jZVB+lg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632841720; a=rsa-sha256; cv=none; b=uTJ3ON1DaVfh3+VSg9LTCoJSF4MZDfNFIidtIW++vT3KffOJrVKCVICsEr3dHjLEDxQUEj aKe6wnzNtIUIwp/TvRGkNOZSCAT0YucL5VLYefvd+YOcph2AT4jEkMO87e7N4MXnTDpN8o o7a/zFHDYoP1vqkga5V6myUiKk0ZUExMC8qqYwEeGBLWDvnACaQf1z8vIYc6VZ81+R15Li /vQb4QIZOo4m4Z3H7SpmXbVg1NPoqYgrfNBfI56D9LfG+q3ujT+5xdLPNcXwrpZCBdyZvb q4J/gePj2fBv7K7Gi8l1bq63Kh8AZkH6HsDy9/MJFAmsn+8TNk5HmkGU6y0q6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LZkTXo41; 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: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LZkTXo41; dmarc=pass (policy=none) header.from=gmail.com; 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: 946A4CEB8 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: +paTucgd/cuJ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, Just a little thing, if it=E2=80=99s of interest. A while ago I remember up= per/lower case keywords being discussed and the conclusion being that upper case keyw= ords were only to be used in the manual. Since `ox-org' isn=E2=80=99t the manual= , I=E2=80=99ve gone and lowered the case of all the keywords used there. All the best, Timothy --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-ox-org-Use-lower-case-keywords.patch >From d5c0cb92198d315031a5e4539e227b22a1f0b98b Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 28 Sep 2021 22:45:55 +0800 Subject: [PATCH] ox-org: Use lower case keywords * lisp/ox-org.el (org-org-identity, org-org-template): As it has previously been clarified on the mailing list that upper-case keywords are only intended for the manual[1], an Org export of an Org file should use lower-case keywords. [1]: https://list.orgmode.org/87tuuw3n15.fsf@nicolasgoaziou.fr/ --- lisp/ox-org.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lisp/ox-org.el b/lisp/ox-org.el index c2b85473c..0c4290ebf 100644 --- a/lisp/ox-org.el +++ b/lisp/ox-org.el @@ -141,7 +141,7 @@ (defun org-org-identity (blob contents _info) CONTENTS is its contents, as a string or nil. INFO is ignored." (let ((case-fold-search t)) (replace-regexp-in-string - "^[ \t]*#\\+ATTR_[-_A-Za-z0-9]+:\\(?: .*\\)?\n" "" + "^[ \t]*#\\+attr_[-_a-za-z0-9]+:\\(?: .*\\)?\n" "" (org-export-expand blob contents t)))) (defun org-org-headline (headline contents info) @@ -185,26 +185,26 @@ (defun org-org-template (contents info) (org-element-map (plist-get info :parse-tree) 'keyword (lambda (k) (and (string-equal (org-element-property :key k) "OPTIONS") - (concat "#+OPTIONS: " + (concat "#+options: " (org-element-property :value k))))) "\n")) (and (plist-get info :with-title) - (format "#+TITLE: %s\n" (org-export-data (plist-get info :title) info))) + (format "#+title: %s\n" (org-export-data (plist-get info :title) info))) (and (plist-get info :with-date) (let ((date (org-export-data (org-export-get-date info) info))) (and (org-string-nw-p date) - (format "#+DATE: %s\n" date)))) + (format "#+date: %s\n" date)))) (and (plist-get info :with-author) (let ((author (org-export-data (plist-get info :author) info))) (and (org-string-nw-p author) - (format "#+AUTHOR: %s\n" author)))) + (format "#+author: %s\n" author)))) (and (plist-get info :with-email) (let ((email (org-export-data (plist-get info :email) info))) (and (org-string-nw-p email) - (format "#+EMAIL: %s\n" email)))) + (format "#+email: %s\n" email)))) (and (plist-get info :with-creator) (org-string-nw-p (plist-get info :creator)) - (format "#+CREATOR: %s\n" (plist-get info :creator))) + (format "#+creator: %s\n" (plist-get info :creator))) contents)) (defun org-org-timestamp (timestamp _contents _info) -- 2.33.0 --=-=-=--