From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SJAzCNET3l7KAQAA0tVLHw (envelope-from ) for ; Mon, 08 Jun 2020 10:32:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ODEBBNET3l5rGwAA1q6Kng (envelope-from ) for ; Mon, 08 Jun 2020 10:32:49 +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 7BF4D9407C7 for ; Mon, 8 Jun 2020 10:32:48 +0000 (UTC) Received: from localhost ([::1]:42900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiF5B-0003Jv-W8 for larch@yhetil.org; Mon, 08 Jun 2020 06:32:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiF4k-0003EV-Uk for emacs-orgmode@gnu.org; Mon, 08 Jun 2020 06:32:18 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:33993) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jiF4i-0001gH-Tz for emacs-orgmode@gnu.org; Mon, 08 Jun 2020 06:32:17 -0400 Received: by mail-ed1-x52a.google.com with SMTP id w7so12990360edt.1 for ; Mon, 08 Jun 2020 03:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=GG5mLSGDw9v3OgnPPzBijIkIT6e/tQnvkDPU7A186KU=; b=bwGU0zRUqCfZc81n01qmHXdUsN7T9YkF7+C0RuKK3UyNvYoi319nJIGR7A/co1G7IB hxR6xPq+SZsMrLNK6PRuUsAmFQlD/4V/KhccbwQXekG8GfhOot+a0EI9eQ3DX+5TioJ4 xjT+xXcBbr+1xK2RTbYauW4QSDeXjL803NPBWc0KY0yhYPYuFFey84hEMOa5mwIpmeOb We6AtjrxA6naIUmOGXMGAorYaerUnfbdV+HDugK3kXKh3nuQnS0/XG1YQTAbGozM7G/0 D7lWK7QnC163yOTuu3eXwoaNVZKEDNDeS+wF4UeEJyD5oJbEih/cKpXE/L7am/QX/1WR cE2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=GG5mLSGDw9v3OgnPPzBijIkIT6e/tQnvkDPU7A186KU=; b=ggtqlxRniF44QrXf2auotzym4vZKb3jQL4HS1W7chXkL4RCSd5Vu1HY4HKrBNEoTko NSlFXYlL9Tdm0AacDqpGk3IgKhd7Vj1cHwIfyXUyZbvKjjO/VABCx271pOUvZvv59upG gqgnrSvjzlGDdK4lzOvC7FVbf1HEW7M8D2dnFVIN6enuy+N6R3WwqivPgSuBcrZrIOHB 1YWG0Y7tejl3MMvjforb7UTxY8Txl+ViOm1MkADXUg0FTUEPyPNIYy1D0opEL5ewEPtI WB32MHl1TU95Im+luMjf0uGkVgQgEQIqtfWMpZsyws+nTwsSE/q6tgwJOeHGWJVbPlbO Hwtw== X-Gm-Message-State: AOAM530US9oR4/w5QAo8FHLX2mjqXrRdTJTzuFzjSGm/MC8L4xmVWHWU VxAU9WSPTbjAAnpdlGAGW3+IVRM= X-Google-Smtp-Source: ABdhPJw4ij83zIoBVhRfKUFf0IJV1UjHp1IKaBBi8/RsuAPRv1iJZmb2ql102hNfECpMI1gjroWkYg== X-Received: by 2002:aa7:dc4e:: with SMTP id g14mr20999302edu.346.1591612334609; Mon, 08 Jun 2020 03:32:14 -0700 (PDT) Received: from thinkpad.localdomain (5.7.9.93.rev.sfr.net. [93.9.7.5]) by smtp.gmail.com with ESMTPSA id h16sm10824457ejq.62.2020.06.08.03.32.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jun 2020 03:32:13 -0700 (PDT) From: Leo Vivier To: emacs-orgmode@gnu.org Subject: [PATCH] org-element.el: Fix properties being upcased by parser Date: Mon, 08 Jun 2020 12:32:12 +0200 Message-ID: <87h7vl3l1v.fsf@hidden> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=leo.vivier+dev@gmail.com; helo=mail-ed1-x52a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001 autolearn=_AUTOLEARN 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=bwGU0zRU; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: 0.59 X-TUID: GtSjHEczsM6F --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi there, I=E2=80=99ve noticed that `org-element-parser` upcases the keywords, even t= hough the standard established in 13424336a6f30c50952d291e7a82906c1210daf0 is to =E2=80=98Prefer lower case letters for blocks and keywords=E2=80=99. I=E2=80=99ve changed it to `downcase` to maintain consistency. This might = cause problems with some hard-coded upper case letters in the codebase, but I haven=E2=80=99t run into any issue so far. HTH, --=20 Leo Vivier --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-org-element.el-Fix-properties-being-upcased-by-parse.patch Content-Transfer-Encoding: quoted-printable >From 574549a1ab07fd1500111a25d3f1caec4aa40bfb Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Mon, 8 Jun 2020 12:14:55 +0200 Subject: [PATCH] org-element.el: Fix properties being upcased by parser MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * org-element.el (org-element-keyword-parser): Downcase properties instead of upcasing them. This is to follow the standard established by 13424336a6f30c50952d291e7a82906c1210daf0 to =E2=80=98Prefer lower case lett= ers for blocks and keywords=E2=80=99. TINY CHANGE --- lisp/org-element.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-element.el b/lisp/org-element.el index ac41b7650..e73b37b2b 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -2184,7 +2184,7 @@ containing `:key', `:value', `:begin', `:end', `:post= -blank' and (let ((begin (or (car affiliated) (point))) (post-affiliated (point)) (key (progn (looking-at "[ \t]*#\\+\\(\\S-*\\):") - (upcase (match-string-no-properties 1)))) + (downcase (match-string-no-properties 1)))) (value (org-trim (buffer-substring-no-properties (match-end 0) (point-at-eol)))) (pos-before-blank (progn (forward-line) (point))) --=20 2.26.2 --=-=-=--