From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4J++NBRVMmexTwEAqHPOHw:P1 (envelope-from ) for ; Mon, 11 Nov 2024 19:03:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4J++NBRVMmexTwEAqHPOHw (envelope-from ) for ; Mon, 11 Nov 2024 20:03:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=m4KBkS9m; 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=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731351828; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bS2DYX2AF3DnbTW9bIkbY9KCRxMu0deZ5Da6VCXqkGc=; b=GlVHOJ398E+COs2gu8LoS/OmA3U7DdUn+REuLIZNpTqdBI2urlDM3864IeM1zF4Bp6Jo95 O9xMtFuDo15/GBRGM4rrEZ4vpgW1aq5yrZ1J3vuTM4kZjQUPdNiAouPsrb+tHSNZvUiS1N hxVnaLEM9eYp3RLGUzzPCw/RVQWz4V/NbibKaBz7Pdgbg9nUuc7Xkk/DhCWwVR5Dt7zE8C MZQn1nHAcGG6kwJMenkdyRlETVqsUG6BdHXHSnoymSNaoTpGdQEAn3CSpT1rRmYBWt1wkU hhGah7lftFvrNlWinknRr4JzuwYz2xDCJPNw3Oeb1o01HG9Mlv2lNfhOVK0h+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731351828; a=rsa-sha256; cv=none; b=SdHpiFumDdYgKO350NEJghLEJaTt637yTb7pNmRzClE20fFW0dQtj1N+EmT/2YZsfg7mR7 4/wX4cmq41mpdQH076QIix6qs9Dd6pjM/BKeejMMIa73foCe2P/MkCCfv3AwDaLFiXdy4z 2NS0sWVXsG0QJOdyQn6KFWnKbHOitZZuEvBLDbKTQ+wRdm/wj7I9uvpyuKneP73l16WXCw cJCZtD8k22xou2cvUzS+qeM1HdWt5ja0bfU7W+UtU7TwV9mInLpvuAlzrnf06FlXLWAYdD /XHsm+yhOFRqarW30Py/1RCp2TRg8iVfs+v1BCJtO3XEBjK/32H36lhR5xlJDg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=m4KBkS9m; 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=none) header.from=posteo.net 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 6173D7C248 for ; Mon, 11 Nov 2024 20:03:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAZgc-0003L8-LB; Mon, 11 Nov 2024 14:02:54 -0500 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 1tAZga-0003Ke-Dc for emacs-orgmode@gnu.org; Mon, 11 Nov 2024 14:02:52 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAZgY-0004VR-Ex for emacs-orgmode@gnu.org; Mon, 11 Nov 2024 14:02:52 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id BE332240027 for ; Mon, 11 Nov 2024 20:02:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1731351766; bh=WVepfBgSLfP2KbvGnLDnOb37uGOaGmDtjs8AfosKDuU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=m4KBkS9mE6WmNqeKX/jufUh3/OAm6ebFD1n6sN4RWrnOOcW4iJpQ7nCfoFz99diXo XyMJUAfWiby4GpTUENJ9Ai5CmRo6Gqwfz3X50xZoVZhtJQ2u05swazSGpYabLMh7eV WI50oBrFhPe5cRDA8lA/imv9dVzcHLPk/4J7wGLxcs1AhV2XLEEnSAF7M6C6MpumzZ 8OPveNm1QE0ZRzWQ6LYUvlxCkgIwNbZedkPWeJDDVmOZvbTeNEDFd0zv++bgWImW8Z o3wD7B7EOTg9DBVmLS8ZGCYfMd34+JCEy5nJk+zvmR/uJncpb35sQYmMv7KDdFiWy9 ZO4RIGHmS0nYw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XnJpG0qrcz6twC; Mon, 11 Nov 2024 20:02:45 +0100 (CET) From: Ihor Radchenko To: Jean Louis Cc: Emacs Org Mode Subject: Re: Is there a method to extract incomplete items from Org lists as strings? In-Reply-To: References: Date: Mon, 11 Nov 2024 19:04:23 +0000 Message-ID: <87y11ph9s8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.09 X-Spam-Score: -3.09 X-Migadu-Queue-Id: 6173D7C248 X-Migadu-Scanner: mx13.migadu.com X-TUID: /Q13kFXUyC4N Jean Louis writes: > I have blobs, or strings of Org Mode, and I would like to > programmatically extract incomplete items > > - [x] First one is complete > - [ ] This second one is incomplete, > and I would like extracting it in full, even if it has multiple > lines > - [x] This one is complete > > I would prefer to do extraction of incomplete items by using some > function. The extraction is to serve to create a new blob, new > document (not file) as string, with only incomplete items. See https://orgmode.org/worg/dev/org-element-api.html -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at