From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SAUELBwjUWOr6gAAbAwnHQ (envelope-from ) for ; Thu, 20 Oct 2022 12:29:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mAMQLBwjUWMgFAEA9RJhRA (envelope-from ) for ; Thu, 20 Oct 2022 12:29:48 +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 7B77FD006 for ; Thu, 20 Oct 2022 12:29:48 +0200 (CEST) Received: from localhost ([::1]:39866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olSo7-0003T0-Fd for larch@yhetil.org; Thu, 20 Oct 2022 06:29:47 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olSSP-0007DH-A8 for larch@yhetil.org; Thu, 20 Oct 2022 06:07:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olSHf-00072Q-JH for emacs-orgmode@gnu.org; Thu, 20 Oct 2022 05:56:35 -0400 Received: from mout01.posteo.de ([185.67.36.65]:42217) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olSHa-0006X6-RW for emacs-orgmode@gnu.org; Thu, 20 Oct 2022 05:56:12 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 83E24240027 for ; Thu, 20 Oct 2022 11:56:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666259767; bh=MKMP6gtFlwz16TQcbGa0hz2KhFMyW5c8eRmEOsj7yno=; h=From:To:Cc:Subject:Date:From; b=UfQr2+ZC22zhGAC7UJB0GwI/+96JvKRHUOnwzJO/UF2h9ydlBnBcRhxXdfwpR5Vis 6ie8APnUz1x1E1is5LC92QewzcPK/TzEqcq0pxy8DnM7cxEkMDmDRP0w48VAqnD+qm HhWW3KbMqoYn704C8TBarEWld0lBIxaoggZpr2g/FjNVzIu9+Ti0zPFws+22faI/m9 +XOgphNDFfptDzNhpCN/xZj1X0tPE7EO4BIargrAunvoo9YcrARrDyG5piK6BMVBz2 6LtiFbEqlj4SNgRov6bQ9NKCWK8+QDXYYnL2rFBM4wRddHcpWSrT5EIfPuypl9PYME D+tOURNTzY9/w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MtNK20S0rz9rxM; Thu, 20 Oct 2022 11:56:05 +0200 (CEST) From: Ihor Radchenko To: Damien Cassou Cc: emacs-orgmode@gnu.org Subject: Re: Weird behavior of org-element-object-lex In-Reply-To: <87czanc9vl.fsf@cassou.me> References: <87fsfjd3ds.fsf@cassou.me> <87v8of83oy.fsf@localhost> <87czanc9vl.fsf@cassou.me> Date: Thu, 20 Oct 2022 09:56:51 +0000 Message-ID: <87r0z27r8c.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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, 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666261788; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=YET9pIpynI4+KF/oqaQkAWZQgASbqFd9mABxxZmon1A=; b=URBpqbLBO4bULvKaPZKhfpHCejRStapS76nuCadj0Tj1OkPQJjJC/DhHOeBlAzNeAu4t/Q U7OutJWXNaEo3ce9+Qh90fYg8tl38wmb23xyZc4sk6436vdkB39PtvLo/9LGkR30E7nsXy vN+PFDG+2hvORddOdkKLTOCdIyzTqi8OczUX+IfiGnGly6R9Y437bfowrJXcODiDDsTOzx Ulb7AYZ5XVkhms/00sUM9lk97X3MjNBSGsG47P6Bdf1VbpsU7WE/zwSYsFIbNxze9N8/Rm CTXcs9f1tXWlLkWujvespRPdcHOTMcpvo+1+E2gy+WW5AlUWunQ0NDv8Bn6WJQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666261788; a=rsa-sha256; cv=none; b=q6bCvj/dUdh79CyLyTtAq00XDzZbIUuh9U3EvXaRaXclaQQgM7UU+KjIkmXZZ80dy2idf0 b+v96LnoN3LTWr6TD7CzN2Fq0cEIhFIqpfL7yVqa5aVS1j+CuWu5HecIXTXLpuiuo3Iyvm K1+oq12P75dBKWy81qtEJh1lnYwLR3VaDnQKJsw+Dbrn/qMFAhdWzc96ALpZXn+ltOIfO0 riwRGnH7V5sI6kBrQY8QbJf4tpwLw4ORYvXAW/1oo30XQigZ9+mV7iXDPu8KIQgWOMEGWY YWl+5peUOZS8B3Y41aGCRN8UhLBn+PoAFvQ11Wl2rBljo1Hz6FgEE+jNJPAn3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UfQr2+ZC; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -3.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UfQr2+ZC; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: 7B77FD006 X-Spam-Score: -3.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: u9Rj5HXPE+hh Damien Cassou writes: > (defun ox-linuxmag--item (item contents info) > ... > The reason `ox-linuxmag--item` has to parse ITEM again is because > CONTENTS contains "item 1=C2=A0;" > which misses the initial dash "-" character: i.e., I would like "- item > 1=C2=A0;" in the paragraph instead. Just use ITEM. You can access the contents of ITEM with org-element-contents. If you just need to append the bullet, use (org-element-property :bullet it= em) --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at