* Trying to print the agenda in the terminal - emacs stdout limit?
@ 2012-09-03 22:55 Marcelo de Moraes Serpa
2012-09-04 3:21 ` Memnon Anon
0 siblings, 1 reply; 3+ messages in thread
From: Marcelo de Moraes Serpa @ 2012-09-03 22:55 UTC (permalink / raw)
To: Org Mode
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Trying to print the agenda in the terminal - emacs stdout limit?
2012-09-03 22:55 Trying to print the agenda in the terminal - emacs stdout limit? Marcelo de Moraes Serpa
@ 2012-09-04 3:21 ` Memnon Anon
2012-09-04 3:39 ` Marcelo de Moraes Serpa
0 siblings, 1 reply; 3+ messages in thread
From: Memnon Anon @ 2012-09-04 3:21 UTC (permalink / raw)
To: emacs-orgmode
Hi,
Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:
> 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?
Quick test here with emacs 23 and 24 seems to work.
,----[ (info "(emacs)Initial Options") ]
| `--batch' implies `-q' (do not load an initialization file), but
| `site-start.el' is loaded nonetheless.
`----
Did you setq your org-agenda-files in that script?
My first guess would be it is not set.
hth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Trying to print the agenda in the terminal - emacs stdout limit?
2012-09-04 3:21 ` Memnon Anon
@ 2012-09-04 3:39 ` Marcelo de Moraes Serpa
0 siblings, 0 replies; 3+ messages in thread
From: Marcelo de Moraes Serpa @ 2012-09-04 3:39 UTC (permalink / raw)
To: Memnon Anon; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 982 bytes --]
Ah, good catch! Damn, forgot about this. Works fine now, thanks!
On Mon, Sep 3, 2012 at 10:21 PM, Memnon Anon <
gegendosenfleisch@googlemail.com> wrote:
> Hi,
>
> Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:
>
> > 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?
>
> Quick test here with emacs 23 and 24 seems to work.
>
> ,----[ (info "(emacs)Initial Options") ]
> | `--batch' implies `-q' (do not load an initialization file), but
> | `site-start.el' is loaded nonetheless.
> `----
>
> Did you setq your org-agenda-files in that script?
> My first guess would be it is not set.
>
> hth
>
>
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 1445 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-04 3:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-03 22:55 Trying to print the agenda in the terminal - emacs stdout limit? Marcelo de Moraes Serpa
2012-09-04 3:21 ` Memnon Anon
2012-09-04 3:39 ` Marcelo de Moraes Serpa
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).