From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KEwCAtm2fWSznQAASxT56A (envelope-from ) for ; Mon, 05 Jun 2023 12:20:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id RIDlANm2fWSQCQEAG6o9tA (envelope-from ) for ; Mon, 05 Jun 2023 12:20:09 +0200 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 C6AF0180F for ; Mon, 5 Jun 2023 12:20:08 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=mail.com header.s=s1089575 header.b=DWTD4bwc; dmarc=pass (policy=none) header.from=mail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685960408; 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=UGZYEQW9jsXYvggfHqXPXensdgNqsqn2B+wGAHX2Jx0=; b=XSQ8BKAdX+HPXIzTYY254sTB+Z3rIpo1TFuMNXpSmMn8hvJzZlN2Kgfgp9ZHOeAfyL00qr OIPpskSAUrzef9McjV/VhaE+bQKv8V0ffTQAQS2xuJ724gQ3XkLDHY6ZemUFEvb9Vg3mHQ +cI8jy+OOJrHpwnHUdMlREkOC0JgsYofj9fHtaxXr6B54cOJfVyFVuRlIpP2XHV3/vLedn hwlaWnYQuzXzCJULfDqqNpYFLRJ/ULekfe6fIccy2DDXPyTpP0mboJdr+VMF/uP6yrq8YF tgsKpKrwy+Bzl9O0PchR/H85fp96faKYIEN9XwrfK5Xidti7QVKbeYAom8kggw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=mail.com header.s=s1089575 header.b=DWTD4bwc; dmarc=pass (policy=none) header.from=mail.com; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685960408; a=rsa-sha256; cv=none; b=EIaaWk0DYYdwFJ39NZt7UJUpgOM5VhYpgDTeSLRFDMtDf7N3CDH7PPiPflvop10ZdErcI1 WRP0idz86cVtJN1iTglP3vm7cpFl/SDsU3Qeye8u9UMUqRkLz6Qwx0fMdcGCqgY/GaaMz2 l8+jz9jAQPQxgy6lEtaU4iVO/njxY6QzcvBlygeYZxE59h2z2rHpoAQW+Ay0q334Byx4Oq Jyltc+hck2DUKzKKzM9oZTvBUs3/tre/aCk1bG5Gr9Iu9qb8wSC1g0LjmCBnA3tysW9X0W DToKh29kKMdMZyxCT8LHff/CHIHOPQljCUGuqylNIwjfIom0jdaVSaX1e/PWAw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q67Ij-0003NU-1x; Mon, 05 Jun 2023 06:19:02 -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 1q67IQ-0003LI-Ri for emacs-orgmode@gnu.org; Mon, 05 Jun 2023 06:18:42 -0400 Received: from mout.gmx.com ([74.208.4.201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q67IP-0002zc-5m for emacs-orgmode@gnu.org; Mon, 05 Jun 2023 06:18:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=s1089575; t=1685960319; x=1686565119; i=bvchgvbt@mail.com; bh=nL3r94SOt9htlzkhCGl2kgJX+9aaOlms9hyMgrRVfK0=; h=X-UI-Sender-Class:From:To:Subject:Date; b=DWTD4bwcIfC93yFsnMkOFXwThwqW5C2vEha/Bpl/uE+aYUXeMxnuMdDu7weNFJijptBph8s V+hYrT4mvri6UnRQWf/7chSFweRlcPmn1rGpjXr6Wuh0RguTELyaN7byd2BOPyHgDTS5bb6vB GlCzpeVp/a9RJHMVxrbroCAIAcJ78V3MV+hEBFdh6H7isytXBUcyIvjC73Z5vfM8kL3VvDKha CTf5Z4zpx9qh3w4VSdLw+Wz4mdmiVVW1zoE8/vx5MqwxUkYvyChNxCH9cnZY7m3EcuLRKz8t1 tw2B4c491YfMPHJVAxFQ4CXKkLvBKuEJlNTWxuKHJPlHygIlCg1w== X-UI-Sender-Class: f2cb72be-343f-493d-8ec3-b1efb8d6185a Received: from [82.13.53.64] ([82.13.53.64]) by web-mail.mail.com (3c-app-mailcom-lxa03.server.lan [10.76.45.4]) (via HTTP); Mon, 5 Jun 2023 12:18:38 +0200 MIME-Version: 1.0 Message-ID: From: bvchgvbt@mail.com To: orgmode ml Subject: Getting the components of an item in a plain-list Content-Type: text/plain; charset=UTF-8 Date: Mon, 5 Jun 2023 12:18:38 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:MSs0ffYCvUg/+WsQNKXZBUL4Z6HFZMyb63RH+z+drGPgFcaLaW2jTysDOyuvjFaxmTdpx tOCqjJm5/O7N0JLJ/C4kFlvljIVGAgivC89XHkIX/zAjEt4qqstlPzgooOkS7oKJTLIg50neUQes bC/ceaNge7r7HAUMh8rBSnWWHae+X7V/JDoALQrjasTDK523rgvWu13QCjkHX0Nab3FbRb17fnPR NKG8mdZVFiLGoli60cruR978DWYU4EoetPudzTuo6DXVEJBwU7ndC9bnuhs9qQ4pfpWaMMSiCtNT ck= UI-OutboundReport: notjunk:1;M01:P0:qcchlrL2Cbg=;hgBTw94q6BDtDxnUsIbgTucghSj q8kB575qNlF2sLKv0UrGY7yI1v0pj/w39sdpcUF3v82hU6dCL1imarFi3qQa5hjc3tAdF5MDs pwO1e0lWSo+P7FhXPxYnFVQNJWZD2w3wQKoEb+qUJ9QSdmo60jJ0zVelbCZF/vwHQgozFAuZT gNBdf5FznatnZ4pXKJg4fpP/CQm/3NOsyJ9rCq7yoHMPCiytYvUIZonTwfjPOhNMIxf93WIHi jfwftZtnGhQ106BeeWVuTPn2NOrn9gxto0WOmtll2Td0XJ4VlA4rmigNuW58Lerd1Jq83QCZN exUP0WyHYN5UBmnA3CBcqwTEX6jpJwAspA39KK8RGNd2mL33XVHp/JlXAXvNzYUCw4P3QU52m soSm5np3cveOlYeVEH+OnnuPbPWRBYSlg/FVZC2hvbeJzK0IiZ7Tpylp+9hQtPEhDCBvG1wVN xcW3b+IB//oepSr7HFpJVhKL89KjHhsFnSP6As+5vm4z8wufEBzPKkBgPd7ScARbNMGh+bocV 5sy5bMQ9Gst+RdtLC3ig6bCIAzcC7PI+e7klfXYRW5ndI7ct0PK2mpow4nNydexoDODfe9HOT iV8F5YyFDL2UHUQkyjs41r7q1rZqCDbkz2Z0z/8IdAfpb4Oq/zSBxrl9SsuDT9QEVTjkY0jis e1yxD40/lZns2Es3nHFXY8u7TMY1QvAthTNA+R7NlZs4QpBSwUJ8097fPv6t85IMxinznf9OB VV1cVlC8ekeC+9JOEI6rG3TEQUpCt2p/KMQSqAvR1IAgsANHuB0+OstQY2AIYHMs4JDH7rrUe iQFN+Pnijv5hYO/wQXLELHJpWtyi20Kcjdm5JBCPfxeGo= Received-SPF: pass client-ip=74.208.4.201; envelope-from=bvchgvbt@mail.com; helo=mout.gmx.com X-Spam_score_int: -37 X-Spam_score: -3.8 X-Spam_bar: --- X-Spam_report: (-3.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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: UNKNOWN X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.99 X-Spam-Score: -1.99 X-Migadu-Queue-Id: C6AF0180F X-Migadu-Scanner: in3.migadu.com X-TUID: +j3Wd651b/cF If I have a plain-list element that looks something like (plain-list (:type unordered :begin 260 :end 571 :contents-begin 260 :contents-end 571 :structure ((260 2 "- " nil nil nil 338) (338 2 "- " nil nil nil 413) (413 2 "- " nil nil nil 489) (489 2 "- " nil nil nil 571)) :post-blank 0 :post-affiliated 260 :parent nil)) I seem to be able to get the items from the list using org-element-property :structure (per the documentation), giving me: ((260 2 "- " nil nil nil 338) (338 2 "- " nil nil nil 413) (413 2 "- " nil nil nil 489) (489 2 "- " nil nil nil 571)) and then the first list item using `car`, as I expected: (260 2 "- " nil nil nil 338) But if I try to use org-element-property on that, of course it fails because it's not an element, as I understand it, rather it's an object(?). So how do I get the the beginning and end? I can obviously just do: (car list-item) ; head (car (last list-item)) ; tail but I'm wondering if there's a better way. ---- Explanation: What I'm trying to do overall is to get the various details out of a list item that might look like: - State "DONE" from "NEXT" [2023-06-05 Mon 10:54] \\ example So I'd like to be able to get the date of the timestamp (this isn't an absolute requirement, I'm happy enough to just using the current date), and the "example" text (which, obviously, isn't always "example"). If I have to use buffer-substring-no-properties and my car & car (above) then I will, but it would be nice to know there's an easier/better/more appropriate way of getting at what I want. Thanks in advance.