From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yOu5HijC7WVHnQAAqHPOHw:P1 (envelope-from ) for ; Sun, 10 Mar 2024 15:22:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yOu5HijC7WVHnQAAqHPOHw (envelope-from ) for ; Sun, 10 Mar 2024 15:22:32 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=goGlGkKF; 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"; dmarc=pass (policy=quarantine) header.from=pm.me ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710080552; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LASbwrU1PjcHEgMn9NSHKx+EszN9QoczcOCrKHi5c6c=; b=kA7ZHuOR5sm8y98YvQMJdudngJS4jeLr549rBbsojVmAcnPnvhVPvIBTCjU8ippPoPml8j UN19o66+r6YKDKqsFXOQvJ9PuanjteI4xD97ZkEoNEcJatTiVvy6lTRTFHSlgC8bcMZO0y F7n/zVHR4/5wwfY4SRdgT7QIpqi/oSKm3VIBF/FfHC8/5A2gAs1UN5Hakeb+qbk5p3oDJ9 MJRm4IDeIJXbpay+OFjUS9VcPsIzY5/2UPpaHi1RNEzWhwE9DGcw9sKuDpu1hozROw4oKI bOWSSbyTd5hBXNrA3riTa5+4GRhDjLVx8iQYBIeF4c4fBb2ztBB12CvQtDlVhg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pm.me header.s=protonmail3 header.b=goGlGkKF; 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"; dmarc=pass (policy=quarantine) header.from=pm.me ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710080552; a=rsa-sha256; cv=none; b=tyegDORaRS2Q/Nugip0bvrfIG2itREeMs/i89GdalObrqHwsxL+PFQP9591T5mDs7Ickip mLgSDSrjfQe+4NoHGSJZXlV9coVwhEfPJf7h2LdfMqbjlMFX+bDJZATbKtwHb4hvkhdt9h TlmAs+OfFkuMm3R3kQqLJw9v+APp6i/b7sOb3uwekiwHWo0gO4Mmc/+K4OBERJLKZut2qQ /cAX57dmAbQJufl06AR+cbPLAA+qcZ41CxZehjX2TA4PLCB3NU779cqkUixhb+nF9O4/qD 6IHlIRqHSp64pP4hWlA1D7aHsQ0Gk3+8H7Ff3eyRYyDBw1Ge9ia0+yPrZ9u+xQ== 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 28F1A253EB for ; Sun, 10 Mar 2024 15:22:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjK3e-00038q-2I; Sun, 10 Mar 2024 10:21:46 -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 1rjK3c-00038i-TA for emacs-orgmode@gnu.org; Sun, 10 Mar 2024 10:21:44 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjK3b-00064v-3S for emacs-orgmode@gnu.org; Sun, 10 Mar 2024 10:21:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1710080493; x=1710339693; bh=LASbwrU1PjcHEgMn9NSHKx+EszN9QoczcOCrKHi5c6c=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=goGlGkKF2uweSuqgoZaJMCN2ScisdY/lKKFvn8zYVCPxjDaqRBDdRrewIvoAGBC94 /NYfNq2An0pbxF5Dpx0MySO/+hO+7xDElVAzgm9IOAY/kXGRG5EjWEXBkQQCpqUO00 OeRNjM0DtUIw96u4eqPcqF6LDg1Kzb1jVNTvZRDoGfX0ax7+iN8mrsdO8JuttxaypB E3Bp5s1/D3DEy9bYK/F+T2NBpfhlxiPDxHtmfyQ+7crIeNfUf1bUu5TJAVfA3aCwZq aUZStIsqR5NKrDxcAMMVAw0Ecz4PZ3D8OQF3V7vN2pKWj9eF2M+f+tLnkRIvxHwuUN ATlCDsbau9+nw== Date: Sun, 10 Mar 2024 14:21:19 +0000 To: emacs-orgmode@gnu.org From: Antonio Romano Subject: [Question] Learning to use Org Element API setters and how to ignore properties Message-ID: <99b3973e68eb96804b7c085fadeb47cd585178d1.camel@pm.me> Feedback-ID: 77338314:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.133; envelope-from=n58r@pm.me; helo=mail-40133.protonmail.ch 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, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -2.73 X-Spam-Score: -2.73 X-Migadu-Queue-Id: 28F1A253EB X-TUID: D821AttF+iZ5 Hi all, I start with the premise that I'm a novice in Elisp development so I don't really have that much experience. Lately I've been toying with the idea of applying Lindholm's "A three way merge for XML documents" paper to Org mode in order to achieve a context aware merging mechanism between two documents given their syntax tree.=C2=A0 There's nothing concrete on my side, but I'd like to try and see if org-element's AST can fit this kind of merging.=C2=A0However, I've had clos= e to no progress in trying to make the setter functions work despite all the indications on worg and I think I would really benefit to see some concrete usage examples somewhere. Another concerns is about properties - given a simple Org document with just one headline marked as TODO, this is its parse tree: (with-current-buffer "testorg1.org" (org-element-contents (pp (org-element-parse-buffer)))) =20 (org-data (:begin 1 :contents-begin 1 :contents-end 35 :end 35 :robust-begin 3 :robust-end 33 :post-blank 0 :post-affiliated 1 :path "/home/antonio/testorg1.org" :mode org-data :CATEGORY "testorg1" :granularity nil) (headline (:raw-value "Hello" :begin 1 :end 35 :pre-blank 0 :contents-begin 14 :contents-end 35 :robust-begin 16 :robust-end 33 :level 1 :priority nil :tags nil :todo-keyword =09 #("TODO" 0 4 =09=09(face =09=09 (org-todo org-level-1) =09=09 fontified t)) =09 :todo-type todo :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 1 :title =09 (#("Hello" 0 5 =09=09 (:parent #1))) =09 :mode first-section :granularity nil :parent #0) (section (:begin 14 :end 35 :contents-begin 14 :contents-end 35 :robust- begin 14 :robust-end 33 :post-blank 0 :post-affiliated 14 :mode section :granularity nil :parent #1) (paragraph (:begin 14 :end 35 :contents-begin 14 :contents-end 35 :post- blank 0 :post-affiliated 14 :mode planning :granularity nil :parent #2) #("This is a paragraph.\n" 0 21 (:parent #3)))))) nil The :todo-keyword contains data about face and properties which are only relevant for viewing the document in the buffer and not for the .org file content itself. How can I read its text without any property info attached to it? Sorry for the naive questions and thanks in advance for your availability.