[Orgmode] [babel] Problems sourcing R code

2009-11-08 Thread Weiss, Bernd
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dear all,

I am having trouble sourcing R code from within an org-file via
org-babel, i.e. I cant' replicate the most simple examples

#+begin_src R :results value
matrix(rnorm(6), nrow=2)
#+end_src

That's the error message I get whenever I type in C-c C-c:

"executing R source code block...
Die Syntax für den Dateinamen, Verzeichnisnamen oder die
Datenträgerbezeichnung ist falsch.
No result returned by source block"


However, I am not having any problems with the shell-example

#+begin_src sh
  echo "This file takes up `du -h org-babel.org |sed 's/\([0-9k]*\)[
]*org-babel.org/\1/'`"
#+end_src

Org-R works as expected, i.e. I can source the following example without
any problems

#+RR: x <- c(rnorm(10, mean=-3, sd=1), rnorm(10, mean=3, sd=1))
#+R: title:"continuous-data" output-to-buffer:t


My setup:
- - MS-Win Vista
- - GNU Emacs 23.1.1 (i386-mingw-nt6.0.6002) of 2009-07-30 on SOFT-MJASON
- - Org-mode: Org-mode version 6.32trans (release_6.32b.127.g471c2);
- - ESS: v5.5
- - my .emacs/_emacs-File: 


Thanks in advance for your help

Bernd
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)

iQEcBAEBAgAGBQJK9c+4AAoJEEs3GEaRJz0hpKUH/3HGap0alygyueqkYDGw7yFO
j5B0bl5Vk6iYiHuoPH2DdYM2fIuVyH52hicKXXSUPnGenj3z84UeiNmMi/PELMuE
GqXRYbidmoIfa0u7eOqpB9hoiWnLSdo74ZCmoo3aojn4a/yyx1bNcZ6nqe4ESgJP
qdCO7TNfXniQ114HdLBCGzhNLVpJ1jgcd80sdTZi4pPiUpTUKjpb7MQCsCV6RZY0
pP0ticRiGRinu1sew6laDFOGIs57zhye+E2TLdql9e62hfaF4TddxQFyQPCUCn6+
hiQeZBQ7t5I8wO4ZHTurfx6jrky2u0T1JJV8RfeWgm66aJIwWzoJ/F7ZA9oYuQs=
=uJEV
-END PGP SIGNATURE-


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Best way to implement Keywords feature

2009-11-08 Thread Paul Mead
Giovanni Ridolfi  writes:

>
> What about properties?
>
> * computer
> * apple
> :PROPERTIES:
> :Keyword: Power PC
> :END:
>   * garden
> * apple
> :PROPERTIES:
> :Keyword: Golden Delicious
> :END:
>
>
> However you can already search for keywords in Agenda,
> please, refer the section of the manual:
> "Keyword search"
Giovanni

I can't find anything in the manual which does anything other than
search for TODO keywords, and this functionality would be pretty useful
to me - can you point to the section number?

Thanks
Paul


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Monthly events based on count of specific weekdays

2009-11-08 Thread Matt Lundin
Ben Finney  writes:

> Howdy all,
>
> How can I set an event in Org mode that repeats every month, on a
> specific weekday, on a week counted from the start of the month?
>
> For example:
>
>   * every month on the first Tuesday of the month.
>   * every month on the third Sunday of the month.
>   * every first and third Wednesday of the month.
>
> Taking “first Tuesday of the month”, if I set it this month on
> <2009-11-15 Sun>, it should next repeat on <2009-12-20 Sun> and so on
> each month. These do not do what I want:
>
>   * <2009-11-15 Sun +1m>
>   * <2009-11-08 Sun ++1m>
>   * <2009-11-08 Sun .+1m>
>
> Each of these next repeats on <2009-12-15 Tue>, the wrong date.
>
> How can I specify a repeating event to Org mode that achieves what I
> described above?

>From the org manual:

,[8.1. Timestamps, deadlines, and scheduling]
| DIARY-STYLE SEXP ENTRIES
|  For more complex date specifications, Org mode supports using the
|  special sexp diary entries implemented in the Emacs calendar/diary
|  package.  For example
| 
|   * The nerd meeting on every 2nd Thursday of the month
| <%%(diary-float t 4 2)>
`

Here's how to schedule the examples above:

* First Tuesday of month
<%%(diary-float t 2 1)>

* Third Sunday of month
<%%(diary-float t 0 3)>

* First or third Wednesday of month
<%%(or (diary-float t 3 1) (diary-float t 3 3))>

Best,
Matt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Best way to implement Keywords feature

2009-11-08 Thread Matt Lundin
Paul Mead  writes:

> Giovanni Ridolfi  writes:
>
>>
>> What about properties?
>>
>> * computer
>> * apple
>> :PROPERTIES:
>> :Keyword: Power PC
>> :END:
>>   * garden
>> * apple
>> :PROPERTIES:
>> :Keyword: Golden Delicious
>> :END:
>>
>>
>> However you can already search for keywords in Agenda,
>> please, refer the section of the manual:
>> "Keyword search"
> Giovanni
>
> I can't find anything in the manual which does anything other than
> search for TODO keywords, and this functionality would be pretty useful
> to me - can you point to the section number?

http://orgmode.org/manual/Matching-tags-and-properties.html

- Matt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Monthly events based on count of specific weekdays

2009-11-08 Thread Ben Finney
Matt Lundin  writes:

> Ben Finney  writes:
>
> > How can I set an event in Org mode that repeats every month, on a
> > specific weekday, on a week counted from the start of the month?
[…]

> > Taking “first Tuesday of the month”, if I set it this month on
> > <2009-11-15 Sun>, it should next repeat on <2009-12-20 Sun> and so
> > on each month.
>
> From the org manual:
>
> ,[8.1. Timestamps, deadlines, and scheduling]
> | DIARY-STYLE SEXP ENTRIES
> |  For more complex date specifications, Org mode supports using the
> |  special sexp diary entries implemented in the Emacs calendar/diary
> |  package.  For example
> | 
> |   * The nerd meeting on every 2nd Thursday of the month
> | <%%(diary-float t 4 2)>
> `

Ah. Where can I find documentation on “the special sexp diary entries
implemented in the Emacs calendar/diary package”?

> Here's how to schedule the examples above:
>
> * First Tuesday of month
> <%%(diary-float t 2 1)>
>
> * Third Sunday of month
> <%%(diary-float t 0 3)>
>
> * First or third Wednesday of month
> <%%(or (diary-float t 3 1) (diary-float t 3 3))>

Hmm. That makes the entry unreadable as a date+time. One of the main
advantages of the usual Org date+time specifications is they're
perfectly readable even to people who know nothing about Org, Emacs, or
Lisp. Is there a way to get a readable format that still behaves as I
described?

-- 
 \ “I used to think that the brain was the most wonderful organ in |
  `\   my body. Then I realized who was telling me this.” —Emo Philips |
_o__)  |
Ben Finney



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Monthly events based on count of specific weekdays

2009-11-08 Thread Matt Lundin
Ben Finney  writes:

> Matt Lundin  writes:
>
>> Ben Finney  writes:
>>
>> > How can I set an event in Org mode that repeats every month, on a
>> > specific weekday, on a week counted from the start of the month?
> […]
>
>> > Taking “first Tuesday of the month”, if I set it this month on
>> > <2009-11-15 Sun>, it should next repeat on <2009-12-20 Sun> and so
>> > on each month.
>>
>> From the org manual:
>>
>> ,[8.1. Timestamps, deadlines, and scheduling]
>> | DIARY-STYLE SEXP ENTRIES
>> |  For more complex date specifications, Org mode supports using the
>> |  special sexp diary entries implemented in the Emacs calendar/diary
>> |  package.  For example
>> | 
>> |   * The nerd meeting on every 2nd Thursday of the month
>> | <%%(diary-float t 4 2)>
>> `
>
> Ah. Where can I find documentation on “the special sexp diary entries
> implemented in the Emacs calendar/diary package”?

http://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries.html

You can also type C-h i inside emacs and navigate to "Calendar/Diary".

>
>> Here's how to schedule the examples above:
>>
>> * First Tuesday of month
>> <%%(diary-float t 2 1)>
>>
>> * Third Sunday of month
>> <%%(diary-float t 0 3)>
>>
>> * First or third Wednesday of month
>> <%%(or (diary-float t 3 1) (diary-float t 3 3))>
>
> Hmm. That makes the entry unreadable as a date+time. One of the main
> advantages of the usual Org date+time specifications is they're
> perfectly readable even to people who know nothing about Org, Emacs, or
> Lisp. 

Well, yes. But not for every possible niche usage. Org-mode provides
human readable syntax for the majority of scenarios, but allows power
users to harness the capabilities of emacs and elisp for the rest.

> Is there a way to get a readable format that still behaves as I
> described?

Not that I know of. But since this is org-mode, you could add a note
under the diary sexp explaining what it represents.

You'd have to ask Carsten to implement a new timestamp syntax. What
would you propose as a more readable designation?

- Matt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: contact management in org-mode?

2009-11-08 Thread Matt Lundin
Ben Finney  writes:

> Russell Adams  writes:
>
>> Given the discussion about a "simple" database [for storing contacts],
>> it struck me that I might just use properties and column mode. Dynamic
>> fields and views, hotlinks, VC, text file...
>
> Thank you, Russell, for the BBDB rant (which I quite agree with) and for
> giving your current solution based on Org items with properties.
>
> I'm dipping my toes into Org and, for contact data, BBDB seemed the
> natural way to go; I'm glad I looked around to find alternatives before
> dumping too much data into BBDB. Everyone's responses in this thread
> have saved me a *lot* of time and effort.

I'd agree with Russell's conclusion that if one does not use an emacs
mail client, then there is not much point to using BBDB.

But if one uses Gnus or the like, the integration BBDB offers (e.g.,
automated addition of new addresses, auto-notes, TAB completion for
addresses, etc.) is still difficult to surpass. Until someone codes some
nice integration between an org-mode address database and emacs mail
clients, switching to an org database would require one to forgo all the
nice automation that BBDB offers. (Do you really want to enter all new
email addresses manually in an org file?)

I've found BBDB to be incredibly convenient. But I use Gnus for email.
If I were using Gmail or Thunderbird or Mutt, I wouldn't use BBDB at
all.

Just a few thoughts...

- Matt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] What is output for org-babel?

2009-11-08 Thread Martin G. Skjæveland

andrea Crotti wrote:

I'm with org-mode 6.31a, I was trying to
get output in the exported files but I never see the output.


Hi,

not sure if this is related -- or helpful, but here goes!

When I export the following file:

start---
* lowercase
#+begin_src python :exports results
2+2
#+end_src

* uppercase
#+BEGIN_SRC python :exports results
2+2
#+end_src
end---

the results are (copied from pdf):

start---
1   lowercase
 4

2   uppercase
2+2
end---

Writing "begin_src" in lowercase or uppercase makes a difference. I am 
not sure if this is a feature or a bug.


Martin


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] What is output for org-babel?

2009-11-08 Thread Martin G. Skjæveland

Martin G. Skjæveland wrote:

andrea Crotti wrote:

I'm with org-mode 6.31a, I was trying to
get output in the exported files but I never see the output.


Writing "begin_src" in lowercase or uppercase makes a difference. I am 
not sure if this is a feature or a bug.


Oh, forgot to mention: I can't make any of the snippets you sent work. 
Everything in the source blocks is exported as verbatim text, regardless 
of upper/lowercase, or :results output or not.


Martin


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Hide tasks from the agenda until they are due

2009-11-08 Thread PT
In a previous thread
(http://thread.gmane.org/gmane.emacs.orgmode/17818) there was a
discussion about using the agenda to schedule trivial time-specific
tasks during the day which can be done at or after a certain
time. These tasks should be hidden from the agenda until their time is
due, because you cannot work on them before then, so they are just
polluting the agenda view.

Matt Lundin kindly provided a quick untested solution in that thread
which was almost complete, it needed only a bit of tweaking. Here is 
the working solution (not yes extensively tested) for those interested:


(defun my-org-agenda-skip-if-later ()
  "Skip entries that are later than the current time."
  (let ((time (and (org-entry-get nil "TIME-TODO")
   (or (org-entry-get nil "TIMESTAMP")
   (org-entry-get nil "SCHEDULED")
(when time
  (unless (time-less-p (org-time-string-to-time time) (current-time))
(or (outline-next-heading)
(point-max))

(setq org-agenda-skip-function 'my-org-agenda-skip-if-later)


The tasks to be hidden need to have a special property set (TIME-TODO)
in order to distinguish them from regular timestamps which are not hidden. 
I added this property to my remember template, so it's automatically 
set when I create such a task.

I set the skip function globally, because I use a single agenda view. You
may want to set it only for certain agenda views.




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [babel] :noweb

2009-11-08 Thread Thomas S. Dye

Aloha all,

The following org file demonstrates that :noweb passes silently over  
the undefined code block <>.  As my org-babel files become more  
complex, it is harder for me to catch errors like this on my own  
(e.g., when I have a typo in a reference to a srcname).


Could org-babel raise a warning or an error in this circumstance?

All the best,
Tom

-
* noweb
#+begin_src R :noweb :session noweb
  <>
  <>
#+end_src

#+resname:
: 2

#+srcname: bar
#+begin_src R
2
#+end_src
-

Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: MobileOrg 1.0 for iPhone/iPod Touch now available

2009-11-08 Thread Anupam Sengupta
> "Marcelo" == Marcelo de Moraes Serpa  writes:

Marcelo> A symbian OS port would be nice too :) 

Completely second that ... would be a great addition to my Nokia E71
... downloading on my iPod Touch right now.



[...]


 
 Hi all,
 
 MobileOrg 1.0 is now available in the iTunes AppStore:
  http://bit.ly/1kpHqg  Documentation (including a screencast
 demonstrating the app) is available on the website at
 http://mobileorg.ncogni.to.


[...]


 Thanks, Richard



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Best way to implement Keywords feature

2009-11-08 Thread Matthew Lundin
Paul Mead  writes:

> Matt Lundin  writes:
>
>>
>> http://orgmode.org/manual/Matching-tags-and-properties.html
>>
>> - Matt
>>

> Thanks Matt, although that allows me to search for a single property (if
> I use 'Keyword' as an example, this will return a match if I search for
> 'Keyword="example"'. It doesn't, however work if I want to use more that
> one keyword.
>
> For example, if I set a property 'Keyword: keyword1 keyword2' and search for
> 'Keyword="example1"' org doesn't find it.

It will if you use brackets to perform a regexp match. E.g.,

Keyword={example1}

(...assuming the property is "Keyword: example1 example2".)

>From the manual page above:

,
|   * If the comparison value is enclosed in curly braces, a regexp match
| is performed, with '=' meaning that the regexp matches the property
| value, and '<>' meaning that it does not match.
`

Best,
Matt


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] Problems sourcing R code

2009-11-08 Thread Dan Davison
"Weiss, Bernd "  writes:

> Dear all,
>
> I am having trouble sourcing R code from within an org-file via
> org-babel, i.e. I cant' replicate the most simple examples
>
> #+begin_src R :results value
> matrix(rnorm(6), nrow=2)
> #+end_src
>
> That's the error message I get whenever I type in C-c C-c:
>
> "executing R source code block...
> Die Syntax für den Dateinamen, Verzeichnisnamen oder die
> Datenträgerbezeichnung ist falsch.
> No result returned by source block"

Dear Bernd,

This is a problem relating to running R as an external shell process
under Windows. For the time-being, please use the :session header
argument to specify that evaluation is to take place in a persistent
emacs R session. Alternatively, you could use the following
configuration code to force R blocks to always use the specified session
(you can change the session name of course):

(setq org-babel-default-header-args:R '((:session . "*my-R-session*")))

Session-based evaluation is described briefly at

http://orgmode.org/worg/org-contrib/babel/org-babel.php#basic-functionality

Thanks for the report. We will investigate the issues with running R as
an external process under Windows.

Best wishes,

Dan

>
>
> However, I am not having any problems with the shell-example
>
> #+begin_src sh
>   echo "This file takes up `du -h org-babel.org |sed 's/\([0-9k]*\)[
> ]*org-babel.org/\1/'`"
> #+end_src
>
> Org-R works as expected, i.e. I can source the following example without
> any problems
>
> #+RR: x <- c(rnorm(10, mean=-3, sd=1), rnorm(10, mean=3, sd=1))
> #+R: title:"continuous-data" output-to-buffer:t
>
>
> My setup:
> - MS-Win Vista
> - GNU Emacs 23.1.1 (i386-mingw-nt6.0.6002) of 2009-07-30 on SOFT-MJASON
> - Org-mode: Org-mode version 6.32trans (release_6.32b.127.g471c2);
> - ESS: v5.5
> - my .emacs/_emacs-File: 
>
>
> Thanks in advance for your help
>
> Bernd
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] What is output for org-babel?

2009-11-08 Thread Dan Davison
"Martin G. Skjæveland"  writes:

> andrea Crotti wrote:
>> I'm with org-mode 6.31a, I was trying to
>> get output in the exported files but I never see the output.
>
> Hi,
>
> not sure if this is related -- or helpful, but here goes!
>
> When I export the following file:
>
> start---
> * lowercase
> #+begin_src python :exports results
> 2+2
> #+end_src
>
> * uppercase
> #+BEGIN_SRC python :exports results
> 2+2
> #+end_src
> end---
>
> the results are (copied from pdf):
>
> start---
> 1   lowercase
>  4
>
> 2   uppercase
> 2+2
> end---
>
> Writing "begin_src" in lowercase or uppercase makes a difference. I am
> not sure if this is a feature or a bug.

Bug. However I'm not sure whether it is in org-mode or org-babel. In
general in org-mode, begin_src and BEGIN_SRC are equivalent (true for
all #+XXX directives I think). However, in this case the org-exp-blocks
client (org-babel) associates 'src' with its own block exporter, but it
says nothing about 'SRC'. So the solution could either be:

(a) Bug in the org-exp-blocks client (org-babel). The client should
explicitly hook up 'SRC' to its block pre-processor.

(b) Bug in org-mode. Org-exp-blocks should call the block pre-processor
for 'src' when it finds 'SRC' (and equivalently, if a client registers
'SRC', then 'src' should trigger it.)

I'm leaning towards (b), seeing as we already have the case
insensitivity in org-mode.

Dan


>
> Martin
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] What is output for org-babel?

2009-11-08 Thread Dan Davison
Darlan Cavalcante Moreira  writes:

> COmments are inline.
>
> At Thu, 5 Nov 2009 11:17:39 + (UTC),
> andrea Crotti  wrote:
>> 
>> I'm with org-mode 6.31a, I was trying to
>> get output in the exported files but I never see the output.
>> 
>> So I investigate and for example this
>> 
>> #+BEGIN_SRC python
>> import os; os.listdir(os.getcwd())
>> #+END_SRC
>
> This does not return anything for me either, but
> #+BEGIN_SRC python
> import os
> os.listdir(os.getcwd())
> #+END_SRC
> works as expected. This is strange, since "import os; os.listdir(os.getcwd())"
> is valid and will work if typed in the python interpreter directly.

This is a limitation of the current implementation of :results value
evaluation. For now, while we work out a good solution, semi-colon
separated statements on the same line (as well as multiline
continuations) should be avoided when using :results value (the
default). It does work with :results output:

#+BEGIN_SRC python :results output
import os; print os.listdir(os.getcwd())
#+END_SRC

Thanks for pointing this problem out.

Dan


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Monthly events based on count of specific weekdays

2009-11-08 Thread Ben Finney
Matt Lundin  writes:

> Ben Finney  writes:
>
> > Hmm. [a sexp] makes the entry unreadable as a date+time. One of the
> > main advantages of the usual Org date+time specifications is they're
> > perfectly readable even to people who know nothing about Org, Emacs,
> > or Lisp.
>
> Well, yes. But not for every possible niche usage.

That's partly my point: “second Tuesday of the month” isn't niche, it is
pretty common, I would have thought.

> Org-mode provides human readable syntax for the majority of scenarios,
> but allows power users to harness the capabilities of emacs and elisp
> for the rest.

Much appreciated.

> > Is there a way to get a readable format that still behaves as I
> > described?
>
> Not that I know of. But since this is org-mode, you could add a note
> under the diary sexp explaining what it represents.
>
> You'd have to ask Carsten to implement a new timestamp syntax. What
> would you propose as a more readable designation?

How about this:

<2009-10-13 Tue 14:00 +1m Tue>
Repeat each month, on the second Tuesday of the month. Calculated
because this date is the second Tuesday of the month, and the repeat
weekday is specified.

<2009-10-13 Tue 14:00 +1m>
Repeat each month, on the 13th day of the month. Calculated because
this date is the 8th of the month, and the repeat weekday is not
specified.

<2009-10-13 Tue 14:00 +1m Fri>
Invalid, since this date is not on a Friday.

Or, rather than introducing syntax that makes it easy to put invalid
syntax:

<2009-10-13 Tue 14:00 +1m dow>
Repeat each month, on the second Tuesday of the month. Calculated
because this date is the second Tuesday of the month, and “dow” is
the specified repeat type.

<2009-10-13 Tue 14:00 +1m dom>
Repeat each month, on the 13th day of the month. Calculated because
this date is the 8th of the month, and “dom” is the specified repeat
type.

<2009-10-13 Tue 14:00 +1m>
Repeat each month, on the 13th day of the month. Calculated because
this date is the 8th of the month, and “dom” is the default repeat
type.

I somewhat prefer this latter syntax, because it uses a brief keyword,
allowing for other keywords in the future if a case can be made for
other repeat types.

-- 
 \“Read not to contradict and confute, nor to believe and take |
  `\  for granted … but to weigh and consider.” —Francis Bacon |
_o__)  |
Ben Finney



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: contact management in org-mode?

2009-11-08 Thread Sebastian Rose
Matt Lundin  writes:
> I've found BBDB to be incredibly convenient. But I use Gnus for email.
> If I were using Gmail or Thunderbird or Mutt, I wouldn't use BBDB at
> all.


Same here.


I think we'd better have an easy way to use bbdb in Org-mode, just as we
have for using the calendar.

E.g.

  `C-c b n'   - complete a name (and eventually insert it as [[bbdb:]]
link)
  `C-c b m'   - complete an email address
  `C-c b e'   - complete an entire entry. A customizable format would be
great.
  `C-c b u'   - complete user defined field (two steps).


We already have

  [[bbdb:Sebastian Rose]]

  We should change that link type to DTRT. bbdb can do more, than just
  show the entry. So show a list to choose from:

 - send mail
 - give her a phone call
 - a.s.o.


Import and export

 - http://www.emacswiki.org/cgi-bin/wiki/bbdb-vcard-export.el
 - http://www.emacswiki.org/emacs/BbdbImporters

  The evolution address book and all the other mailers can import and
  export vcards.


Mangement

  Some way to search all those [[bbdb:Xxx Yyyy]] links. Maybe similar to the
  agenda interface. Would that be overkill?









I don't think bbdb's database format is odd at all. It's straight
forward.

`nil' for each entry I don't know the meaning of (this is the first time
I took a look into ~/.bbdb), the entire thing one address book entry and
on one line in ~/.bbdb:


["Firstname"
 "Lastname"
 ("AKA one" "AKA two" "")
 Company
 (["Type-of-Phone e.g. Mobile" "Number"]) ;; more entries in list possible
 (   ;; list of postal addresses
  ["Type of address 1"
("Street address 1" "Street address 2")
"City"
"State"
"Zip code"
"Country"
   ]
 )
 ("list of mail addresses" "more addresses possible")
 (
   (notes . "some notes")
   (creation-date . "2008-08-12")
   (timestamp . "2008-08-12");; last changed
   ;; eventually more entries, like the user defined once. I have ICQ
   ;; defined, and an entry would look like this:
   (ICQ . "XNN")
  )
 nil ;; list of changes at `timestamp' (I think) ???
]



Looking at .bbdb is enough to check what's going on. I don't know how it
could be easier to use.

Simple things are simple - e.g. the file format of address books. And
that's perfectly OK. Overhead and complicated tricks to handle addresses
are odd.  Handling addresses myself, if bbdb could do that, is even more
odd.


Org-mode doesn't provide desktop integration, too. So I cannot see an
advantage in using Org-mode to handle addresses.



   Sebastian


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [OT] How do you keep your reference data?

2009-11-08 Thread Marcelo de Moraes Serpa
Hi list!

Information that has no potential next action associated but that still has
potential reference value and that you'd like to keep around, how and where
do you keep it ?

I usually check - if it is related to a project, I put it in this project's
wiki page (a simple .org ASCII file named after the project under ~/org/wiki
folder). If it's not, I try to find out if there's a wiki page that I could
fit it into, if not, I create a new file under the wiki folder.

I used to use tomboy, but I'm trying to move/center all my data to my org
folder. I still use Tomboy for quick notes (collection-phase) though, but
not for reference.

I then have a simple function that searches (rgrep) through the whole ~/org
folder, so that whenever I want to check if I have something about subject
x, I just rgrep my PIM folder.

;;a little elisp func to rgrep through all my org directory
(defun org-rgrep (REGEXP1) "Searches through all my org/PIM files"
(interactive "sSearch PIM for: ") (rgrep REGEXP1 "*.org" "/home/marcelo/org"
))
;;bind the previous function to windows_key + o
(global-set-key [?\s-o] 'org-rgrep)

Would you mind sharing how you do it?

Thanks,

Marcelo.
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode][babel] noweb does not work (as expected)

2009-11-08 Thread Torsten Wagner
Hi everyone,

I tried to use the noweb-syntax to tangle all the pieces of source code blocks 
together as proposed by Tom.

However, for some reasons it does not work. 
I notice there are two different syntax for noweb. One propsed on worg and the 
other in examples here in the mailing list. Which one will be correct ? or are 
both correct but with different purpose ?

I used the latest git-version and even tried the branch noweb-evaluate

What I used was a source code block at the end of my org-file like:
All other blocks are defined above.

#+srcname: makefile()
#+begin_src python :tangle simulate_ofdm :exports none
  <>
  <>
  <>
  <>
  <>
#+end_src
#+resname: makefile

However
the tangled file results only in 

#!/usr/bin/env python
# generated by org-babel-tangle
# [[file:~/test_noweb.org::*Result][makefile]]

# makefile ends here

An execution of block shows nothing on the *Shell output* buffer
It seems somehow I missunderstand which part of a block will replace a 
<>  variable. I thouht it will be replaced by the complete source block 
content during tangle. 

Any ideas ?

Thanks,

Torsten


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode][babel] noweb does not work (as expected)

2009-11-08 Thread Thomas S. Dye

On Nov 8, 2009, at 5:47 PM, Torsten Wagner wrote:


Hi everyone,

I tried to use the noweb-syntax to tangle all the pieces of source  
code blocks

together as proposed by Tom.

However, for some reasons it does not work.
I notice there are two different syntax for noweb. One propsed on  
worg and the
other in examples here in the mailing list. Which one will be  
correct ? or are

both correct but with different purpose ?

I used the latest git-version and even tried the branch noweb-evaluate

What I used was a source code block at the end of my org-file like:
All other blocks are defined above.

#+srcname: makefile()
#+begin_src python :tangle simulate_ofdm :exports none
 <>
 <>
 <>
 <>
 <>
#+end_src
#+resname: makefile

However
the tangled file results only in

#!/usr/bin/env python
# generated by org-babel-tangle
# [[file:~/test_noweb.org::*Result][makefile]]

# makefile ends here

An execution of block shows nothing on the *Shell output* buffer
It seems somehow I missunderstand which part of a block will replace a
<>  variable. I thouht it will be replaced by the complete  
source block

content during tangle.

Any ideas ?

Thanks,

Torsten


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Hi Torsten,

I've been working successfully with your makefile idea.  Here is one  
that works for me:


--

#+begin_src R :noweb :session 135cultural
   <>
   <>
   # run queries
   <>
   <>
   <>
   <>
   # reshape query results and run PCA
   <>
   <>
   <>
   # make biplots
   <>
   <>
   # segment plot
   <>
   # make tables for LaTeX
  # <>
   <>
#+end_src

-

A typical source block looks like this:

-

#+srcname: r-load-libraries
#+begin_src R
  library(RMySQL)
  library(reshape)
  library(xtable)
#+end_src

-

Note that I don't :tangle this, but use the :noweb feature, instead.   
Also, my "makefile" runs all its :noweb source blocks in a :session,  
where the environment set up by each source block can persist and be  
referenced by other source blocks.  This particular makefile has run  
successfully dozens of times, as I fix little things and add new ones.


I don't know if this is the best way to accomplish this, or if it is  
what you are trying to achieve at the moment.  But, it looks to me as  
if you might want to :noweb instead of :tangle and perhaps establish  
a :session in case your source blocks need to communicate with one  
another.


HTH,
Tom

Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode][babel] noweb does not work (as expected)

2009-11-08 Thread Dan Davison
Hi Torsten,

Torsten Wagner  writes:

> Hi everyone,
>
> I tried to use the noweb-syntax to tangle all the pieces of source code 
> blocks 
> together as proposed by Tom.
>
> However, for some reasons it does not work. 
> I notice there are two different syntax for noweb. One propsed on worg and 
> the 
> other in examples here in the mailing list. Which one will be correct ? or 
> are 
> both correct but with different purpose ?

<> inserts the body of block 'block-1'. < inserts
the *result* of evaluating block-1, and <> inserts the
result of evaluating it with the specified argument value. I've just
added documentation of this to Worg.

>
> I used the latest git-version and even tried the branch noweb-evaluate
>
> What I used was a source code block at the end of my org-file like:
> All other blocks are defined above.

Can you provide the exact contents of the file you're having trouble
with? If I have


* test tangle
#+srcname: block1
#+begin_src python 
  x = 1
#+end_src

#+srcname: makefile()
#+begin_src python :tangle simulate_ofdm :exports none
  This is makefile
  <>
#+end_src


then for me org-babel-tangle produces


#!/usr/bin/env python
# generated by org-babel-tangle
# [[file:/tmp/zz.org::*test%20tangle][makefile]]
This is makefile
x = 1
# makefile ends here


Dan

>
> #+srcname: makefile()
> #+begin_src python :tangle simulate_ofdm :exports none
>   <>
>   <>
>   <>
>   <>
>   <>
> #+end_src
> #+resname: makefile
>
> However
> the tangled file results only in 
>
> #!/usr/bin/env python
> # generated by org-babel-tangle
> # [[file:~/test_noweb.org::*Result][makefile]]
>
> # makefile ends here
>
> An execution of block shows nothing on the *Shell output* buffer
> It seems somehow I missunderstand which part of a block will replace a 
> <>  variable. I thouht it will be replaced by the complete source 
> block 
> content during tangle. 
>
> Any ideas ?
>
> Thanks,
>
> Torsten
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: MobileOrg 1.0 for iPhone/iPod Touch now available

2009-11-08 Thread Baoqiu Cui
Richard Moreland  writes:

> Hi all,
>
> MobileOrg 1.0 is now available in the iTunes AppStore:
> http://bit.ly/1kpHqg Documentation (including a screencast demonstrating
> the app) is  available on the website at http://mobileorg.ncogni.to.
>
> Many thanks to Carsten and all the beta testers who helped get it  ready
> for release.  Feel free to contact me with any questions or  support
> requests.  If there is a question related to Org-mode  integration, CC:
> Carsten too, he's the expert on that side of things.
>
> Be sure to use Org-mode 6.32 or later.
>
> Hope you all enjoy.

Richard and Carsten,

Thanks a lot for this great work!!!  Just installed MobileOrg today and
tried it out; everything worked so well!  I really like the interface!

It might be helpful if you can list more WebDAV servers (free or not) on
the web site.

-- 
Baoqiu



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] MobileOrg 1.0 for iPhone/iPod Touch now available

2009-11-08 Thread Noorul Islam
On Wed, Nov 4, 2009 at 6:01 AM, Adam Spiers  wrote:

>> Be sure to use Org-mode 6.32 or later.
>
> Looks like fantastic work, congratulations!  Thank heavens I finally
> got Ubuntu/emacs/orgmode/git running natively on my Android phone,
> otherwise I'd be green with envy ;-)
>

Can you share your experience with us?

Thanks
Noorul


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode][babel] noweb does not work (as expected)

2009-11-08 Thread Torsten Wagner
Hi Dan, 

thanks for trying helping me out
actually your example works for me after switching back to git-babel master 
branch.
However, my file does still not work and I can not see a difference between 
your 
and mine file.

I will try to minimize it now to the point where it either works or still 
fails and post it here. 
Could you please tell me which of the branches in the babel-git includes the 
best working version for noweb usage.
I got a bit confused with all this branches.
Maybe I do something wrong during the installation from git. I actually only 
run standard make; make install; 
and I set a symlink of the contrib folder into my .emacs.d from where emacs 
will find the babel files. Actually I'm wondering why the contribs are not 
copied by make into the elisp-path.

Furthermore, I noticed that babel-git uses a complete org-mode branch for the 
development of org-babel. Is this to keep org-mode freezed and to control 
merging with the main org-mode developments? 
I once read about git submodules [1]. Maybe this is interesting for org-babel.
 
Thanks again for help

Torsten

[1] http://book.git-scm.com/5_submodules.html


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: contact management in org-mode?

2009-11-08 Thread Gour
On Sun, 08 Nov 2009 09:52:18 -0500
>> "Matt" == Matt Lundin  wrote:

Matt> I've found BBDB to be incredibly convenient. But I use Gnus for
Matt> email. If I were using Gmail or Thunderbird or Mutt, I wouldn't
Matt> use BBDB at all.

What about having some bridge between org-mode & (open)ldap-shared
addressbook?


Sincerely,
Gour


-- 

Gour  | Hlapicina, Croatia  | GPG key: F96FF5F6



signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode][babel] noweb does not work (as expected)

2009-11-08 Thread Torsten Wagner
Hi Tom,

If I try to use the noweb way, I always got error messages which tells me that 
org-babel can not read the result correctly

> 
> #+srcname: r-load-libraries
> #+begin_src R
>library(RMySQL)
>library(reshape)
>library(xtable)
> #+end_src


As I see you do not use any special header here which means results is set to 
value, right? However, there is no special return line to org-babel either. In 
my understanding and according to my error messages  library(xtable) would be 
evaluated as the result of this block...

However this results in error messages at least for python.

Which org-babel version due you use (which branch)?

Maybe you or someone else can bring some more light into this :results topic.
I somehow miss the option :results none to avoid any results which should be 
useful if the source code block is just a piece of a bigger arrangement. For 
literate programming and RR it might be essential to spread blocks over the 
file which will be tangled together (by tangle or a noweb block). However not 
all need provide a result but just need to run in the same session. Maybe just 
the last block of such an arrangement will come up with a result suitable for 
org-babel.
 
Actually I prefer the idea of :noweb instead of tangle, which seems to me more 
flexible and faster.

Just need to get it running

Thanks 

Torsten


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode