From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UCNnFpHsz2IQ+wAAbAwnHQ (envelope-from ) for ; Thu, 14 Jul 2022 12:14:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gD52FpHsz2IJ9gAA9RJhRA (envelope-from ) for ; Thu, 14 Jul 2022 12:14:41 +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 F402DA41B for ; Thu, 14 Jul 2022 12:14:40 +0200 (CEST) Received: from localhost ([::1]:36374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBvrj-0000rB-S6 for larch@yhetil.org; Thu, 14 Jul 2022 06:14:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBviQ-0002CK-QR for emacs-orgmode@gnu.org; Thu, 14 Jul 2022 06:05:05 -0400 Received: from w4.tutanota.de ([81.3.6.165]:49078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBviK-0003Yf-Mk for emacs-orgmode@gnu.org; Thu, 14 Jul 2022 06:05:02 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w4.tutanota.de (Postfix) with ESMTP id 8F01B106037D for ; Thu, 14 Jul 2022 10:04:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1657793092; s=s1; d=vergauwen.me; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=j7Fm67emRp56ly75gwYFcdDJmST94hGfH+z6ZLpf9KM=; b=btkrnvL7zRUj34mY7VhLnM1e3VrQeIml9/6CJfoh1yHoYn2U9j1Q7G4pT6q6QKYK T5PP6k2QpMeP99IOH3bYUsr170pbJA3HIPIlQ7jFhhQYPpeWulqX0G0ZEMRZGD1dOk4 o396alm5zE0czcIlfgBP/L6+aiLvzr1uBoOVChChBWuPrERx3K0kTDj3tNeqN+PEpDR S86jxgSncX1o88h4O5yACWu2/OeerqV/rgTVFYYb7XmhQU73PDMXf+8PAkqY5XfsjZ5 EjyAR3ZI4Vz6bZIE62I+Yfno+yBZg55SmThVZsTrNIBORkA5SrxA4ATsjtfzdeJGnn2 Wlg/Nw6lWA== Date: Thu, 14 Jul 2022 12:04:52 +0200 (CEST) To: Emacs Orgmode Message-ID: Subject: [Question]: Parsing attribute string MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1751746_1517548490.1657793092336" 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=1657793681; h=from:from:sender:sender:reply-to: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=j7Fm67emRp56ly75gwYFcdDJmST94hGfH+z6ZLpf9KM=; b=YlX+d/p3s8/Y3+xg+gVx+/L45CKjCkSYxk2oUIHML41j1se3oVVqvM4YFURj4EfzHRrmGV S0lFeDKxty6fzTKeAtzfyn1X7U4NiPUo5nEiGF8HXZIve1CwErDldHSQplCeyoJjTx98+u spsOrXR8kX63vgxUyAhJ1BaWNO022dXSGrbBIniFjF8ygssnjf1YKMUFjizgxpcnF+38gc JWb8jODuQRZxkIgLbdbWrFIvF4sMxcBudhUYvq68A3Cp7YMphjJ/kuIJEm7HQ+2mt5kaSI fY6lZ1rpI+AreFDlvauUwHgcQpj/6ZHwwlfA96cttFb8FONsgE6w8jTpD4X2/Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657793681; a=rsa-sha256; cv=none; b=GKwckuO5XB8PZnHa/2xpoweLbT0320l29qdXBYtyem78tf9Wh5c0XMVRRXuM1GCQuyygf9 0HANYzKbLrMK/twmnoaLYhbBEhRFPqGe6FzmwvuxGNwVvMfewuuJ4R0pzGl0XoECRfeor7 LT6rsaD9dURwAF8nGfJBaW3LmtRaK66CcIidfIoFap2sfbZfVsZ3uW8joQxHmKk7B9mN+a jTTSCoAtX4yl2tWM+mfMSlMNHmaIZI2WzGvW/eqvBNSXagartVTwfitgiH3TnisChSlAgR 23qNIhUo5AA6TuOxHisvH5qY+twJFl8kBcDZ21sbz4mtNaD0ZmNoQ2r/E3UXaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=vergauwen.me header.s=s1 header.b=btkrnvL7; 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=btkrnvL7; 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: F402DA41B X-Spam-Score: -4.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: LZHxBsRgzm3q ------=_Part_1751746_1517548490.1657793092336 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dear list,=C2=A0 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 :something t= his is an extra option") I'm looking for a function which produces an alist or plist with the option= value pair. (:caption "the caption" =C2=A0:label "fig-1" =C2=A0:width "10cm =C2=A0:something "this is an extra option") As org handels these string a lot when exporting, it seems=C2=A0to me=20 that there must exist a build in function to solve this task. Kind regards,=C2=A0 Bob ------=_Part_1751746_1517548490.1657793092336 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Dear list, 

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 :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"
 :label "fig-1"
 :width "10cm
 :something "this is an extra option")

As org handels these string a lot when exporting, it seems to me
that there must exist a build in function to solve this task.

Kind regards, 
Bob

------=_Part_1751746_1517548490.1657793092336--