emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcelo de Moraes Serpa <celoserpa@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Trying to print the agenda in the terminal - emacs stdout limit?
Date: Mon, 3 Sep 2012 17:55:39 -0500	[thread overview]
Message-ID: <CACHMzOGriy4xc0KLWByGxdd1aHR-T7xq_Hm3N4Javr2UtovsSg@mail.gmail.com> (raw)

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

Hey guys,

I'm doing a small experiment and trying to print the agenda buffer to the
terminal. I have a elisp script (with the shebang in the top pointing to
emacs with the --script flag), and the following code (besides the code
that loads org);

(org-agenda nil "t")
(set-buffer "*Org Agenda*")
(message (buffer-substring-no-properties (point-min) (point-max)))

If I eval this block in Emacs, the whole agenda text is shown in the
*Messages* buffer, but when I run it from the command line, it only shows
the first two lines:

➜  ~  ./script.el
Global list of TODO items of type: ALL
Available with `N r': (0)ALL

The rest seems to be truncated somehow. Does anyone know what could be
happening?

Thanks in advance,

Marcelo.

[-- Attachment #2: Type: text/html, Size: 1000 bytes --]

             reply	other threads:[~2012-09-03 22:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-03 22:55 Marcelo de Moraes Serpa [this message]
2012-09-04  3:21 ` Trying to print the agenda in the terminal - emacs stdout limit? Memnon Anon
2012-09-04  3:39   ` Marcelo de Moraes Serpa

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=CACHMzOGriy4xc0KLWByGxdd1aHR-T7xq_Hm3N4Javr2UtovsSg@mail.gmail.com \
    --to=celoserpa@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).