From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: Programmatically constructing org documents Date: Fri, 24 Jun 2016 19:46:02 +0530 Message-ID: <87fus2d659.fsf@systemreboot.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGRuT-0006m7-Dh for emacs-orgmode@gnu.org; Fri, 24 Jun 2016 10:16:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGRuO-0004TN-VZ for emacs-orgmode@gnu.org; Fri, 24 Jun 2016 10:16:40 -0400 Received: from [117.218.232.8] (port=35866 helo=hrrol) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGRuO-0004Sj-9o for emacs-orgmode@gnu.org; Fri, 24 Jun 2016 10:16:36 -0400 Received: from [223.227.173.154] (helo=steel) by hrrol with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1bGRuI-0001Oa-UR for emacs-orgmode@gnu.org; Fri, 24 Jun 2016 19:46:33 +0530 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" To: "emacs-orgmode@gnu.org" --=-=-= Content-Type: text/plain What is the "correct" way to programmatically construct org documents? Should I construct a parse tree, and then use `org-element-interpret-data' to convert it org syntax? Or, should I use string and buffer functions (such as `format' and `insert') to construct org syntax directly? Thank you, Arun Isaac. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXbUCjAAoJEC4l7othgCuzqB4H/2GuB/hNaEusGE2NcGxE57SD SNKfwyq2B2mnEiIaW5mpJMFRCQ2crk/4IRAWZthgixX5EMjk1XyUMXIUCNijfuzi /aVvrATSJ5ZSbs5DiHf5CdCF8UZmUqfyEm0HVknY5dv9z+fwtYkmoW4+2N2nu7p2 bOM+FVMbfDHpjxVQUlFmqogRAdxN8etxw2GWNLHEXLsGFFbezGF7YzVBoBXiOOBY /5swn7ciNTo+0S0ysQnUcyLR5CHSIq96GIubM7TxlaXIPfZu0blVx2taRP5zPQaM lYpRiU8CAsjMSX30FOZKahNlavxQU5jCeCPzRgVcx8SgEWoFCNx15j/E2pQdWJc= =zs6f -----END PGP SIGNATURE----- --=-=-=--