From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 CDC9GWf6z2IH3wAAbAwnHQ (envelope-from ) for ; Thu, 14 Jul 2022 13:13:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oLV4GGf6z2JBTgAAG6o9tA (envelope-from ) for ; Thu, 14 Jul 2022 13:13:43 +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 0DB9353B2 for ; Thu, 14 Jul 2022 13:13:43 +0200 (CEST) Received: from localhost ([::1]:42776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBwmr-0003Ar-QI for larch@yhetil.org; Thu, 14 Jul 2022 07:13:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBwmN-0003AU-Qk for emacs-orgmode@gnu.org; Thu, 14 Jul 2022 07:13:11 -0400 Received: from w4.tutanota.de ([81.3.6.165]:36252) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBwmF-000340-F3 for emacs-orgmode@gnu.org; Thu, 14 Jul 2022 07:13:11 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w4.tutanota.de (Postfix) with ESMTP id 3DBA310602C4; Thu, 14 Jul 2022 11:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1657797180; s=s1; d=vergauwen.me; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=0YZmUyU+rctD1Q44JIA+K9hricW+SRDXvWjOVCaULcI=; b=jK4C0rJJo0qHTibwtITfedUPBYYOyYzDTjHZy/WDXqx9Ui//uKyHEgbJqRw173js FpUB2lhSV8YwTJzu/GakWNRaQ2xAsRrybA0haoPJaALMdntmdX/O8w8/FrG/QxQfcUY XBfLAnxGvHnSTtuwIawxFZStwgzJZ3FUBtdxPCdt8eEMa02d6oaK8FIwF/mQ3WIIjOR cM21+bFdCjPN89ZsHX8da8XylfOxX4gu0vAcyuAEZeUTajpTnDOl8Srbib6OQZGLMhM 5FNChBDjnHW737nUaGPBDg3SnKdLpaxek3I+jXh/eCAur/qQgm6moRR1o/fLBC8O8Mp LyldyHzIBQ== Date: Thu, 14 Jul 2022 13:13:00 +0200 (CEST) To: Ihor Radchenko Cc: Emacs Orgmode Message-ID: In-Reply-To: <87lesw2cej.fsf@localhost-N6wKplb----2> References: <87lesw2cej.fsf@localhost-N6wKplb----2> Subject: Re: [Question]: Parsing attribute string MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1755438_131019320.1657797181020" Received-SPF: pass client-ip=81.3.6.165; envelope-from=emacs@vergauwen.me; helo=w4.tutanota.de 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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" Reply-to: emacs@vergauwen.me From: emacs--- via "General discussions about Org-mode." X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657797223; h=from:from:sender:sender:reply-to: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=0YZmUyU+rctD1Q44JIA+K9hricW+SRDXvWjOVCaULcI=; b=Cg8O7slUPm83O10NMj2pbA2ZQo3Skeezfe4YtYfpnpYzVbB7uAkNm4MvjCQgHN1pIkq8us 8pspEnsWY4uwcMk3T2FgvRH5w7D9otK1dJrZXK743+GXuKYv8QLXTE69+0eB6S3VANWZxn VylSZPYBxoQo17BN6SLx38orpICBg7DxsljtTrz64k8aVsHBk3gXXeZq9HUVX5yBUVxbsr dpZoFfzPUeoDkdGt9AoWdqxeDbbRkwHtLInJ8+eDy9C+vhY0p1YkbrUO9ePmhpo4fx2DmD XhzFcozRRUaJjm+jddkpppmdrCmucMjiz8hb5e3DpQ3NWF+xli8Xdw8YZ2lNlw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657797223; a=rsa-sha256; cv=none; b=lp5T5YtK+yZwU1WdYsJVcLOL+nt3lFLjPXMqE14GogWgysbhSLmBbcKoJhsK/Veil9KHlG 3yIPlsPxUcfY82x6jxTtZjr2u//fIipH8p6MHWfhCAMA/hdo9FT3QPmN7MY2WTT6O9Wq0J OQ84PDQgdfq1g6l0xkSs9xMvztEOg8CdCPH+bRZ/ZBL5mn23kDOHBvoNwlH0/yyflpsOm5 xzE9tiI38q04usrZi6nVCQMiNI6u64Mza+3z1S/dej2AYrPxIiYDcHPE/LGlKS7Pc8xI88 +SBAwHkWjpWrhIgdFdC8AS7Z0KD0KFFSGr8yqMlEx0FRN+WV3eoF3/S759TsCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=vergauwen.me header.s=s1 header.b=jK4C0rJJ; dmarc=pass (policy=none) header.from=gnu.org; 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: -4.55 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=vergauwen.me header.s=s1 header.b=jK4C0rJJ; dmarc=pass (policy=none) header.from=gnu.org; 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: 0DB9353B2 X-Spam-Score: -4.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1Dw0VtsRGeNv ------=_Part_1755438_131019320.1657797181020 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank Ihor, this did the trick!=C2=A0 --=20 Sent with Tutanota, enjoy secure & ad-free emails.=20 Jul 14, 2022, 12:53 by yantar92@gmail.com: > emacs--- via "General discussions about Org-mode." > writes: > >> I have a quick question about parsing a string containing attributes. >> My string has the following form >> (setq my-string ":caption the caption :label fig-1 :width 10cm :somethin= g this is an extra option") >> I'm looking for a function which produces an alist or plist with the opt= ion value pair. >> (:caption "the caption" >> =C2=A0:label "fig-1" >> =C2=A0:width "10cm >> =C2=A0:something "this is an extra option") >> > > org-babel-parse-header-arguments > ------=_Part_1755438_131019320.1657797181020 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank Ihor, this did the trick! 

--
=
Sent with Tutanota, enjoy secure & ad-free emails.



Jul 14, 2022, 12:53 by = yantar92@gmail.com:
emacs--- via "General discussions about Org-mode."
<emacs= -orgmode@gnu.org> writes:
I have a quick quest= ion about parsing a string containing attributes.
My string h= as the following form
(setq my-string ":caption the caption := label fig-1 :width 10cm :something this is an extra option")
= I'm looking for a function which produces an alist or plist with the option= value pair.
(:caption "the caption"
 :lab= el "fig-1"
 :width "10cm
 :something = "this is an extra option")

org-ba= bel-parse-header-arguments

------=_Part_1755438_131019320.1657797181020--