Re: [O] How to integrate org-mode in a MS Windows-/Office-based environment?

2012-07-15 Thread gambatte64

maybe the information there is useful:

http://www.emacswiki.org/emacs/OrgOutlook

Alfred




Re: [O] preserve trailing zeros in table output from shell script

2012-07-15 Thread suvayu ali
On Sat, Jul 14, 2012 at 2:35 PM, Joseph A. Cua ja...@cornell.edu wrote:
 I have a reporting shell script that generates a tab-delimited table.
 Using it within a shell code block, org parses this nicely into an org
 table. But org seems to drop any trailing zeros from numeric cells. My
 reporting script has already done the number formatting, so I want
 trailing zeros preserved (both within org and in html export). What's
 the best way?


Some examples would help.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] was this intentional with the default header :results value

2012-07-15 Thread Eric Luo
t...@tsdye.com (Thomas S. Dye) writes:

 Or, fiddling a bit more.

 #+name: luo
 #+BEGIN_SRC R :results output raw
   library(ascii)
   df - data.frame(c1=123456789123456789000,c2=2)
   df$c1 - as.vector(df$c1)
   print(ascii(df,digits=c(0,0),include.rownames=F),type=org)
 #+END_SRC

 #+RESULTS: luo
 |c1 | c2 |
 |---+|
 | 123456789123456789000 |  2 |


Thanks for your help in time, it works like in a charm.




Re: [O] new exporter

2012-07-15 Thread Achim Gratz
Nicolas Goaziou writes:
 This is related to modifications by side-effect of list elements, but
 I don't know why it only happens when the file is byte-compiled and why
 it only focus table cells.

I just see that you fixed this.  Congratulations and thank you!


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Waldorf MIDI Implementation  additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs




[O] HTML page detail

2012-07-15 Thread François Pinard
Hi, people.  A tiny detail while perusing around.  In page:

   http://orgmode.org/worg/org-contrib/babel/intro.html

with the section about R, for the second box showing /HTML export of
code/, the second line does not correspond its source in the first box.

François



Re: [O] HTML page detail

2012-07-15 Thread Bastien
François Pinard pin...@iro.umontreal.ca writes:

 Hi, people.  A tiny detail while perusing around.  In page:

http://orgmode.org/worg/org-contrib/babel/intro.html

 with the section about R, for the second box showing /HTML export of
 code/, the second line does not correspond its source in the first
 box.

Fixed, thanks.

-- 
 Bastien



Re: [O] preserve trailing zeros in table output from shell script

2012-07-15 Thread Eric Schulte
Joseph A. Cua ja...@cornell.edu writes:

 I have a reporting shell script that generates a tab-delimited table.
 Using it within a shell code block, org parses this nicely into an org
 table. But org seems to drop any trailing zeros from numeric cells. My
 reporting script has already done the number formatting, so I want
 trailing zeros preserved (both within org and in html export). What's
 the best way?


If you want to return the numbers as strings *and* you want the results
to be captured as an Org-mode table, then you should use the :results
org output type so that you have complete control over the table.

For example,


#+begin_src sh :results output org :exports results
  cat EOF
  | 1. | 22.000 |
  | 333.00 | .0 |
  EOF
#+end_src

Best,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte


[O] Year or Month Agenda view without empty days

2012-07-15 Thread James Harkins
If I set up a custom agenda command for 30 days, I get stuff like this:

Month-agenda (W28-W33):
Sunday 15 July 2012
Monday 16 July 2012 W29
Tuesday17 July 2012
Wednesday  18 July 2012
Thursday   19 July 2012
  agenda_main:12:00.. Scheduled:  Sushi then Blueberry fest   
:Trip2012::

The problem is, in MobileOrg, I see a list of days first, no indication which 
days have anything in them.

So I would like to have this agenda view include only days with items in them:

Month-agenda (W28-W33):
Thursday   19 July 2012
  agenda_main:12:00.. Scheduled:  Sushi then Blueberry fest   
:Trip2012::

*Maybe* include Monday 16 July 2012 W29 for the week number.

Then in M-org, I would know if I expand a day, that there's something inside.

Possible? The customize interface reveals no settings that would seem to 
apply.

hjh


--
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal.  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



Re: [O] How to export or use org-mode data on Blackberry device?

2012-07-15 Thread M
Hi Bastien,

thanks for your answer!

Sorry, my question about the format might have been unclear - I did not
have a special format in mind but e. g. I suppose that some HTML output
could at least be readable by blackberry devices, so I Imagine that a HTML
export of the agenda (together with all content of org-files) could be used
to have a readable HTML-agenda wich contains links to the corresponding
information about tasks in the org-files (also displayed with HTML markup).

Does such an export feature exist?

My question aimed at people who maybe use org-mode AND a Blackberry and have
found a way to also use the org-mode-info ON the Blackberry (at least as
read-only). 

 Did you search the web?  I did and I don't think there is such an
 application. 
Yes, I did (before asking here) and I had also found nothing.
However, I read about mobile org and I wondered if that maybe could be
ported with limited effort to a blackberry device?!

Kind regards

Martin


 Von: Bastien b...@gnu.org
 Organisation: GNU
 Datum: Fri, 13 Jul 2012 01:48:11 +0200
 An: M elwood...@web.de
 Cc: emacs-orgmode@gnu.org
 Betreff: Re: How to export or use org-mode data on Blackberry device?
 
 Hi Martin,
 
 M elwood...@web.de writes:
 
 My mobile phone is a Blackberry and I wonder if it is possible to export my
 task list (agendas) in a format readable by the Blackberry
 
 What is the format you need?
 
 and if there
 might be even a way to have a mobile application on the Blackberry sync'ed
 to my org-mode data.
 
 Did you search the web?  I did and I don't think there is such an
 application.  Your only chance is to develop it yourself, to pay
 someone to develop it, or to wait for someone to do it for you.
 
 But let's fix the format issue above first.
 
 Best,
 
 -- 
  Bastien





Re: [O] mobile-org, webdav, can't push (password not accepted)

2012-07-15 Thread James Harkins
At Sat, 14 Jul 2012 12:05:16 -0400,
James Harkins wrote:
 
 Hi, I need a little help with mobile-org and webdav. (I need to use webdav 
 because I live year-round in China, and the last time I tried, dropbox was 
 not accessible from the mainland. In any case, I prefer to keep the data 
 local.)

Okay... the original question isn't solved (webdav server is still not 
working) but I did just discover that MobileOrg for android supports Ubuntu One 
as an alternative to dropbox. I don't see any coverage online about that 
service being blocked in China (whereas there are tons of stories about 
dropbox), so I guess it's going to be okay. (If not, that would cause a bit of 
panic as I look for an alternative...)

It would be worth an update to the manual to list the other sync options. 
Dropbox or WebDAV sent me on a wild goose chase.

James


--
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal.  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



Re: [O] new exporter

2012-07-15 Thread Nicolas Goaziou
Hello,

Achim Gratz strom...@nexgo.de writes:

 I just see that you fixed this.  Congratulations and thank you!

Unfortunately, there's now an

  (invalid function org-export-with-current-buffer-copy)

error when using make test


Regards,

-- 
Nicolas Goaziou



Re: [O] new exporter

2012-07-15 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes:

 Unfortunately, there's now an

   (invalid function org-export-with-current-buffer-copy)

 error when using make test

Mhh.. just tried now and I don't have this error.

A leftover from the previously loaded definition maybe?

-- 
 Bastien



Re: [O] Year or Month Agenda view without empty days

2012-07-15 Thread James Harkins
At Sun, 15 Jul 2012 12:38:03 -0400,
James Harkins wrote:
 So I would like to have this agenda view include only days with items in them:
 
 Month-agenda (W28-W33):
 Thursday   19 July 2012
   agenda_main:12:00.. Scheduled:  Sushi then Blueberry fest   
 :Trip2012::

Idea: I guess I can use org-finalize-agenda-hook.

The function would be something like (pseudocode):

(if (the buffer's first word is month or year)
   (do a regexp-replace changing

^\(\(Sun\|Mond\|Tue\|Wed\|Thu\|Fri\|Sat\).*
\)*\(Sun\|Mond\|Tue\|Wed\|Thu\|Fri\|Sat\)

to

\3

))

Maybe I'm barking up the wrong tree -- if so, somebody stop me :) -- but it 
seems pretty straightforward, apart from learning enough emacs-lisp functions 
to do this. That shouldn't be too much time, but not today (other problems to 
beat my head against).

I'll write back if I get stuck.

James


--
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal.  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



Re: [O] new exporter

2012-07-15 Thread Achim Gratz
Nicolas Goaziou writes:
 Unfortunately, there's now an

   (invalid function org-export-with-current-buffer-copy)

 error when using make test

Not for me...  how do you have the build and the test configured?


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




[O] Org Build System (aka Makefile)

2012-07-15 Thread Achim Gratz

At long last the promised documentation for the build system starts to
materialize on Worg:

http://orgmode.org/worg/dev/org-build-system.html

It undoubtedly needs improvement, so please let me know where and/or add
to it yourself.  Thank you.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

DIY Stuff:
http://Synth.Stromeko.net/DIY.html




Re: [O] Org Build System (aka Makefile)

2012-07-15 Thread Bastien
Achim Gratz strom...@nexgo.de writes:

 At long last the promised documentation for the build system starts to
 materialize on Worg:

 http://orgmode.org/worg/dev/org-build-system.html

Great.  Thanks for writing this up!

-- 
 Bastien



[O] Full list of hooks, commands and options on Worg

2012-07-15 Thread Bastien
Here it is: http://orgmode.org/worg/doc.html

Checking against a command is just like this:

http://orgmode.org/worg/doc.html#org-refile
^^^

I think this can be useful for creating links
to the documentation of the hooks/options in
Worg files themselves.

Enjoy,

-- 
 Bastien




Re: [O] Full list of hooks, commands and options on Worg

2012-07-15 Thread Suvayu Ali
On Sun, Jul 15, 2012 at 11:39:54PM +0200, Bastien wrote:
 Here it is: http://orgmode.org/worg/doc.html
 
 Checking against a command is just like this:
 
 http://orgmode.org/worg/doc.html#org-refile
 ^^^
 
 I think this can be useful for creating links
 to the documentation of the hooks/options in
 Worg files themselves.
 

This is going to be very useful! Great idea.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] R and babel on Windows problem

2012-07-15 Thread John Hendy
As promised, I updated Worg. It should cover the main things that came up here:
- Setting the custom path via org-babel-R-command
- Passing =--slave --no-save= when setting the command
- The /path/to/R/bin/x64/R nuance for 64bit Windows

http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html#sec-2-1


Thanks again for all the help!
John



[O] Discovering Babel and R combination!

2012-07-15 Thread François Pinard
Hi, Org people.

A while ago, I started to get acquainted a bit with Babel, mainly as a
curiosity for an area of Org I did not know nor use yet.  However, for a
couple of weeks now, I'm starting to better understand how useful the
combination of Babel and R may be in real situations.

While documenting a few databases, exploring them with R mainly, I first
developed the habit of saving some of my R code aside, as a reminder to
myself for later retries or further discussions with colleagues.  But
I'm finding out that it is much more fruitful to put the R code directly
in my documentation, taking advantage of Babel to insert the R output
and graphics right into it.  It gets especially interesting because of R
sessions within Org, which may be used to cache prior computation
results, yielding comfortable interaction speed.  Also, despite hundreds
of included graphics already, I do not feel any slowdown in Emacs yet.

I think I'm going to just love it! :-)  Thanks to all contributors!

--

There are tiny improvements or questions which I would like to discuss,
however.  As this is all new and a bit overwhelming for me, I apologize
if my reports are a bit fuzzy, I guess dust should settle as days pass,
and would likely develop a clearer understanding with time.

One thing is that I very often have to do C-c C-x C-v C-c C-x C-v,
that is that I toggle in-lining of images out and in.  It seems that
whenever I save the file, or use C-c C-c within an R Babel block, the
images stop being in-lined, while the in-line image flag is not reset.
Ideally, saving a file should not hide in-lined images.  If, for some
technical reason, this is unavoidable, then at least, the in-line image
flag should always tell the truth, so C-c C-x C-v would be sufficient
to recall back the images.

Real fun would be that any C-c C-c which triggers the re-computation
of an already displayed graphics, merely gets the displayed graphics to
get updated in place, without any more special interaction needed to
re-in-line it.

Another point which gave me some fight to do is the disappearing of
column and row headers in non-graphical output.  I only get the raw data
of the results.  I found it quite annoying with R table() output, for
example, which are rather meaningless with no titles at all.  Currently,
the only reasonable solution I have is to use :results output org,
combined with an ascii() call on the R side, once ascii configured to
create Org style output (quite a nice feature, should I say!).  Yet, it
would be all nicer and cleaner if none of this extra machinery was
required.

A very minor point is that, within a #+BEGIN_ORG / #+END_ORG block, I
sometimes see an extraneous space at the very beginning, before the
first |.  Sometimes I do not see it, and output is perfect.  I'll try
to find some coincidence with other things, that would allow to
hypothesize a cause.  Or else, to reproduce the problem with data which
is public enough that I could share it.

I call it a day for now and get some sleep :-).

With enough luck, will find some time to revisit this tomorrow.  Yet
before leaving today, I wanted to say and share my enthusiasm for this
Org Babel / R combination, and also report the tiny problems above.

Keep happy, all!

François