From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: How does org mode write to a file? Date: Sat, 21 Nov 2015 17:27:15 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c25b469c20b60525104d8c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0BwT-0005WR-KL for emacs-orgmode@gnu.org; Sat, 21 Nov 2015 12:27:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0BwS-0003xQ-On for emacs-orgmode@gnu.org; Sat, 21 Nov 2015 12:27:17 -0500 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:34476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0BwS-0003xL-Gb for emacs-orgmode@gnu.org; Sat, 21 Nov 2015 12:27:16 -0500 Received: by lbbcs9 with SMTP id cs9so77113434lbb.1 for ; Sat, 21 Nov 2015 09:27:15 -0800 (PST) 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: emacs-orgmode Mailinglist --001a11c25b469c20b60525104d8c Content-Type: text/plain; charset=UTF-8 Excuse my elisp ignorance, but I've got this: #+name: elisp-unordered-ast #+begin_src emacs-lisp :file myastfile.ast (org-element-parse-buffer) #+end_src which works fine. Question: Where is the elisp code that does this writing of `org-element-parse-buffer` output to file? I'm stumped on how to do just simple file read-write in elisp. It seems to only want to work with live buffers. For example, how would I redirect `(org-element-parse-buffer)` into, say, `(append-to-file 1 (buffer-size) "test-ast.txt")` LB --001a11c25b469c20b60525104d8c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Excuse my elisp ignorance, but I've got this:

=
#+name: elisp-unordered-ast
#+begin_src emacs-lis= p :file myastfile.ast
(org-element-parse-buffer)
#+end_= src

which works fine. Question: Where is the= elisp code that does this writing of `org-element-parse-buffer` output to = file? I'm stumped on how to do just simple file read-write in elisp. It= seems to only want to work with live buffers. For example, how would I red= irect `(org-element-parse-buffer)` into, say, =C2=A0`(append-to-file 1 (buf= fer-size) "test-ast.txt")`

LB
--001a11c25b469c20b60525104d8c--