From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: org-element Date: Fri, 24 May 2013 18:49:51 +0200 Message-ID: <87mwrktj9s.fsf@tanger.home> References: <87ppwh466a.fsf@tanger.home> <871u8w8tk0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufv8c-00031C-Gn for emacs-orgmode@gnu.org; Fri, 24 May 2013 12:46:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufv8b-0003J6-Cv for emacs-orgmode@gnu.org; Fri, 24 May 2013 12:46:42 -0400 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:40530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufv8b-0003Iy-69 for emacs-orgmode@gnu.org; Fri, 24 May 2013 12:46:41 -0400 Received: by mail-wi0-f181.google.com with SMTP id hi5so15383wib.8 for ; Fri, 24 May 2013 09:46:40 -0700 (PDT) In-Reply-To: <871u8w8tk0.fsf@gmail.com> (Nicolas Goaziou's message of "Fri, 24 May 2013 14:13:19 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: > Hello, Hello Nicolas, > Daimrod 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, =2D-=20 Daimrod/Greg --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAEBAgAGBQJRn5owAAoJEBNzVHcrZRiUgKEQAILvpqWaiIaRIdBb6bYoBz0f UAKGl5ekimpa/HZcidSSl7CxNj4ck8WlYuGhm3epp8Wb721tuzc+WhqCiLqYslPu LlS5x6uDv0JCP5dxH8WdI463vSuQ8vVAccDgsZ14T0ZxIvQI2SS94Myoit2XqRHi Utd+CoO4hdr5l1P0CHE0Y/lQhokOL7CJM8r90gTO6X518XkoWH6+y0FAEXQYfF5J 7V2cbm/Fq3QIeR9VU+DAnQ/1xn7E7lFmfPXuJMlDissKeMohLYEini3FU7GMQI5U uQ9mbmmgAaGbvEspXIQ2sprsje6wEF2BrA4URsV2mkJUxWbLasdikTujN7pFUVFg /4xpzbm9p+GR0N509whdQjHpjbqEMpsyoE9t3PT+GTyK/hKcMkZuMbtxTRoXcDKS LHN5xMMAZuxDen0dNQ0ICNpnHatxXzznqtS2KjFi3QPMzRePXT/Xbw+GoP3GgTlV DaN0gfcj36RPfkCWau9NDh0fIXGoZkph/8VAAHfZg8Yyhx8YjHWpP+I36GkOE7jC ndU+HrS5BRwxUACDRDOPLP3AH16KCkIHnSJs9vR2uE31sLemNCz9iGXdYFWpn3/B 3vA3p7mN5Iugy52irw3yHPmr0fuLvwR5BPmWZwiSZKqsmfXRV5kF+xFz1AmQm3E/ GOHfctic4rbtBFjpXgNZ =BDMF -----END PGP SIGNATURE----- --=-=-=--