From: Daimrod <daimrod@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-element
Date: Fri, 24 May 2013 18:49:51 +0200 [thread overview]
Message-ID: <87mwrktj9s.fsf@tanger.home> (raw)
In-Reply-To: <871u8w8tk0.fsf@gmail.com> (Nicolas Goaziou's message of "Fri, 24 May 2013 14:13:19 +0200")
[-- Attachment #1: Type: text/plain, Size: 784 bytes --]
Nicolas Goaziou <n.goaziou@gmail.com> writes:
> Hello,
Hello Nicolas,
> Daimrod <daimrod@gmail.com> writes:
>
>> I'm playing a bit with org-element for org-contacts and I wanted to know
>> what is the prefered way to change an element.
>>
>> For example, ATM, when I want to change an element property to add a new
>> value, I do:
>>
>> #+BEGIN_SRC emacs-lisp
>> (org-entry-put nil property
>> (concat (org-entry-get nil property)
>> " " new-value))
>> #+END_SRC
>
> See `org-element-put-property' and friends.
I've tried to use `org-element-put-property' but it only modifies the
object in memory, not the element in the file. Is there a way to write
the object into a file?
> Regards,
--
Daimrod/Greg
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next prev parent reply other threads:[~2013-05-24 16:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-23 23:39 org-element Daimrod
2013-05-24 12:13 ` org-element Nicolas Goaziou
2013-05-24 16:49 ` Daimrod [this message]
2013-05-24 18:26 ` org-element Nicolas Goaziou
-- strict thread matches above, loose matches on Subject: below --
2013-02-22 11:38 org-element Achim Gratz
2013-02-22 13:14 ` org-element Suvayu Ali
2013-02-22 13:25 ` org-element Nicolas Goaziou
2013-02-22 13:35 ` org-element Suvayu Ali
2013-02-22 13:25 ` org-element Bastien
2013-02-22 15:25 ` org-element Achim Gratz
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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=87mwrktj9s.fsf@tanger.home \
--to=daimrod@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=n.goaziou@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).