emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: emacs--- via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: Emacs Orgmode <emacs-orgmode@gnu.org>
Subject: [Question]: Parsing attribute string
Date: Thu, 14 Jul 2022 12:04:52 +0200 (CEST)	[thread overview]
Message-ID: <N6w9l_s--3-2@vergauwen.me> (raw)

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

 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, 

[-- Attachment #2: Type: text/html, Size: 1113 bytes --]

             reply	other threads:[~2022-07-14 10:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-14 10:04 emacs--- via General discussions about Org-mode. [this message]
2022-07-14 10:53 ` [Question]: Parsing attribute string Ihor Radchenko
     [not found] ` <87lesw2cej.fsf@localhost-N6wKplb----2>
2022-07-14 11:13   ` emacs--- via General discussions about Org-mode.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=N6w9l_s--3-2@vergauwen.me \
    --to=emacs-orgmode@gnu.org \
    --cc=emacs@vergauwen.me \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).