emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daimrod <daimrod@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-element
Date: Fri, 24 May 2013 01:39:41 +0200	[thread overview]
Message-ID: <87ppwh466a.fsf@tanger.home> (raw)

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

Hi,

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

Is it the correct way? IMHO it would be nicer if we could modify an
object created by the new parser and write it back but I don't think
it is possible (yet?).

Regards,

-- 
Daimrod/Greg

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

             reply	other threads:[~2013-05-23 23:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23 23:39 Daimrod [this message]
2013-05-24 12:13 ` org-element Nicolas Goaziou
2013-05-24 16:49   ` org-element Daimrod
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=87ppwh466a.fsf@tanger.home \
    --to=daimrod@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).