From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Trying to print the agenda in the terminal - emacs stdout limit? Date: Mon, 3 Sep 2012 17:55:39 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f3ba957689ab604c8d40ae2 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8fYU-0005Hx-NP for emacs-orgmode@gnu.org; Mon, 03 Sep 2012 18:55:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8fYT-0004EQ-6q for emacs-orgmode@gnu.org; Mon, 03 Sep 2012 18:55:42 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:37864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8fYT-0004EG-29 for emacs-orgmode@gnu.org; Mon, 03 Sep 2012 18:55:41 -0400 Received: by iec9 with SMTP id 9so4570655iec.0 for ; Mon, 03 Sep 2012 15:55:40 -0700 (PDT) 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: Org Mode --e89a8f3ba957689ab604c8d40ae2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: =E2=9E=9C ~ ./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. --e89a8f3ba957689ab604c8d40ae2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 s= hebang in the top pointing to emacs with the --script flag), and the follow= ing code (besides the code that loads org);

(org-agenda nil "t")
(set-buff= er "*Org Agenda*")
(message (buffer-substring-no-proper= ties (point-min) (point-max)))

If I eval thi= s 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:= =C2=A0

=E2=9E=9C =C2=A0~ =C2=A0./script.el
Glob= al list of TODO items of type: ALL
Available with `N r': (0)A= LL

The rest seems to be truncated somehow. D= oes anyone know what could be happening?

Thanks in advance,

Marcelo. --e89a8f3ba957689ab604c8d40ae2--