From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: How does org mode write to a file?
Date: Sat, 21 Nov 2015 17:27:15 +0000 [thread overview]
Message-ID: <CAFAhFSV+qA9Kts-cxV7fGHQwtaPsyUEvSoqWWMGQ2z1021HwGw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 518 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 672 bytes --]
next reply other threads:[~2015-11-21 17:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-21 17:27 Lawrence Bottorff [this message]
[not found] ` <m2mvu7dxq8.fsf@andrew.cmu.edu>
[not found] ` <CAFAhFSV21t2doDHLb+VNGJg4w1GdNKm9LvV8_jP=AXHfK1mNjA@mail.gmail.com>
2015-11-21 21:22 ` How does org mode write to a file? John Kitchin
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=CAFAhFSV+qA9Kts-cxV7fGHQwtaPsyUEvSoqWWMGQ2z1021HwGw@mail.gmail.com \
--to=borgauf@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).