From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MOsnEo3Ol17bWAAA0tVLHw (envelope-from ) for ; Thu, 16 Apr 2020 03:18:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8PtnBpHOl15pNgAAbx9fmQ (envelope-from ) for ; Thu, 16 Apr 2020 03:18:41 +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 8F005941C82 for ; Thu, 16 Apr 2020 03:18:38 +0000 (UTC) Received: from localhost ([::1]:57348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOv2y-00023j-EY for larch@yhetil.org; Wed, 15 Apr 2020 23:18:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46753) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOv2d-00023X-8g for emacs-orgmode@gnu.org; Wed, 15 Apr 2020 23:18:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOv2c-0000ta-4C for emacs-orgmode@gnu.org; Wed, 15 Apr 2020 23:18:15 -0400 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]:39363) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOv2b-0000tC-Rd for emacs-orgmode@gnu.org; Wed, 15 Apr 2020 23:18:14 -0400 Received: by mail-lf1-x143.google.com with SMTP id m2so4428242lfo.6 for ; Wed, 15 Apr 2020 20:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=L90pmLu2faVfmrCSsT2zveE6mdywbH7Ob0m3XItGToU=; b=t1Zm2l4IBBYDvBkAjAKoSak0h78VEK7jX5xzjh4Wx8nh9FT+WJz5G0pk9U34Sx0L2a ZrVCtnOXdKHTpsskDEkIdpoNbOCp45f18SUN3an1pMQcLZqfDKHbW4FU3x2BZt9txqVk xEiU7yoayoeXtnT5QJyK5OVclU1IkYNCcGNl5oGojybB9BpgSc7Gn7491oVs1arKlliB 1KdIty73N4uugzBZkwYiXWp02zTMq1rJ+iqz220OwvsEG4txZ+WmdKyhh7MBR+18/XaY eee3Q1tLUIXDYnRfEEwRwfxDaN1T0BLbNhGdxHRcFjCsyhrU8Xw3bDD2geIdlyDbilNh pZ1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=L90pmLu2faVfmrCSsT2zveE6mdywbH7Ob0m3XItGToU=; b=mQx4KPtgEuKogr/Eh0agl9SkGMgEXufrYFzL1lp5kGG73vdLqbHupvNTTGFQ3dbwSZ lG7L5+UGku2AZ1qzjrR88eNrKsAwmUiem3DPKYwRCEIPodI4Vnk+NqzbC+VSVjqmFV+6 G8s9Xe1vqp0o5NZBx4Fk/z5ncinVUu9i7YtYMPfGy/6z1dkLf8kpacLp4F2n9CWSvRQ+ JgUNEZg88ZaO88JUUuyGbyOhDdoToxPjx8+r9aHpg0cjiyJqfi6B04FCsUy9qPVzkdgb HOKyNREqzeC1cGV5FK/sbQjg4gEPk7OXCD6uL02cf6pNgz1S+oUsRZwin2c/9LzYPTK7 pvwQ== X-Gm-Message-State: AGi0PuY1vld8IfKNxOOtaCHisRpFVFsVt/NQXxuxqpTB11lFHbj7QyKH /HS/zSp/XOiRtxSq++7iyzgsiz6L X-Google-Smtp-Source: APiQypJ4xcZO7vyepJg/z6FWhV+7h/ZY7dWOYnzDoqly3WAjku6azK2ERI0i1O98sIP3cQJa8hPZHw== X-Received: by 2002:ac2:5192:: with SMTP id u18mr4711313lfi.114.1587007091945; Wed, 15 Apr 2020 20:18:11 -0700 (PDT) Received: from localhost ([91.221.57.179]) by smtp.googlemail.com with ESMTPSA id a28sm13712795lfr.4.2020.04.15.20.18.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2020 20:18:11 -0700 (PDT) From: akater To: emacs-orgmode@gnu.org Subject: One inconsistency with org-element parsers Date: Thu, 16 Apr 2020 03:09:22 +0000 Message-ID: <87ftd4yvml.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::143 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 X-Spam-Score: -1.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=t1Zm2l4I; 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-Scan-Result: default: False [-1.21 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.57488440145135]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.26), country: US(-0.01), ip: 209.51.188.17(-0.57)]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[nuclearspace@gmail.com,emacs-orgmode-bounces@gnu.org]; SUBJECT_ENDS_SPACES(0.50)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: lYtLC/36RFr3 I want to make it easier for users to define custom non-inline blocks (and operations on them). So I studied parsers in =org-element.el= and stumbled upon the following seeming inconsistency: Plists for =comment-block=, =example-block=, =export-block=, =src-block= all have neither ~:contents-begin~ nor ~:contents-end~ in them, while plists for =center-block=, =quote-block=, =verse-block= have both. Parameters ~contents-begin~ and ~contents-end~ are defined almost everywhere (the only exception is, =src-block= parser never defines ~contents-begin~) but are not returned in plists by four parsers mentioned. Should something be done about this? I'm removing some boilerplate from the parsers and could reuse existing parameters to put them into plists but I don't understand the semantics yet so won't necessarily be able to add ~:contents-begin~ to src-blocks. Maybe they are simply unnecessary in these plists?