Re: [O] Trying to print the agenda in the terminal - emacs stdout limit?
Ah, good catch! Damn, forgot about this. Works fine now, thanks! On Mon, Sep 3, 2012 at 10:21 PM, Memnon Anon < gegendosenflei...@googlemail.com> wrote: > Hi, > > Marcelo de Moraes Serpa 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 > > > > > > >
Re: [O] Trying to print the agenda in the terminal - emacs stdout limit?
Hi, Marcelo de Moraes Serpa 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
[O] Trying to print the agenda in the terminal - emacs stdout limit?
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.