[Orgmode] Re: Why I can't publish my project under Windows?

2010-06-07 Thread Richard Riley
Nick Dokos nicholas.do...@hp.com writes:

 Water Lin water...@ymail.com wrote:

 I don't know why the word touch in my configuration. And I also don't
 know if I use it under Linux.
 
 I check my org mode configuration file, but I can't find any word like
 touch in my org-sites.el file.
 
 So, what's the function of this touch program?
 

 It updates the modification time of its arguments to the current time.
 It is used for timestamping. But I guess it does not exist on Windoze
 (except for cygwin).

There are various equivalents.

http://stackoverflow.com/questions/51435/windows-version-of-the-unix-touch-command


 What should I do now? Upgrade the org mode to latest version?
 

 Yes. Did you see Carsten's message?

   http://thread.gmane.org/gmane.emacs.orgmode/25929/focus=25932

 HTH,
 Nick

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


-- 
ASCII ribbon campaign ( )
 - against HTML email  X
  vCards / \


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


[Orgmode] Re: MobileOrg for Android starts to become really usable

2010-06-07 Thread Detlef Steuer
Hi!

Do you plan to add dropbox support into mobileorg-android?
That would be just great!

Thank you anyway for your efforts, even if dropbox gets dropped!

Detlef

On Fri, 28 May 2010 14:40:05 -0400
Matthew Jones bsdmatb...@gmail.com wrote:

 Sven, thanks for the wonderful feedback.  MobileOrg Android does attach a
 timestamp to the note (similar to what the iphone version does, just below
 the headline) but anything else you want as part of the heading you do have
 to type manually.
 
 I haven't yet published a roadmap because I've been on this frenetic pace to
 try to get close to feature parity with the iPhone version.   I'm currently
 working on giving you the ability to change TODO states... this is a bit of
 a challenge because of how I store each of the org files.   Richard's iPhone
 version actually reads the contents of the file into a database (I think?
  Or at least... some other data structure) which lends itself well to the
 org-mobile-push model where an updated heading just gets pushed into the
 mobileorg.org file.When I wrote my implementation I had not fully
 grasped that concept yet so I just store the file and parse it on-demand as
 you drill down into your file's contents.   In order to support editing
 files and changing TODO states, I need to switch to Richard's model of
 storing the components that make up the file instead of trying to parse it
 on-demand.
 
 Once I have this finished I plan to release the Beta, and at the same time
 push the application into the Android Market (still free and open source,
 mind you) as well as release comprehensive documentation.   I think (hope)
 that I can put the information on Richard's site dedicated to his version of
 MobileOrg and have his documentation be valid and easily understood for both
 version.
 
 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net
 
 
 On Fri, May 28, 2010 at 5:05 AM, Sven Bretfeld sven.bretf...@gmx.ch wrote:
 
  Hi to all, hi Matthew
 
  I had a look at matburt's Github today and found the new 0.4alpha-build.
  Now, MobOrg4And supports the capturing of notes. That's what I was
  waiting for all the time. I can say that Note capturing works on my HTC
  Magic, albeit I had little time so far to test it more than once or
  twice.
 
  I just wanted to say thank you very much!
 
  Note taking is rudimentary at the moment. As far as I can see, you have
  to type todo-keywords, tags and active timestamps manually. But that
  doesn't matter too much at the moment. The current alternatives (RTM,
  Toodledo) have similar inconveniences. However, in MobOrg4And we are in
  our familiar org-syntax, so /everything/ can be done without complex
  awk/sed
  operations after syncing.
 
  @Matthew: Do you have some kind of roadmap published anywhere?
 
  Greetings,
 
  Sven
 
  ___
  Emacs-orgmode mailing list
  Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: org-babel-R export parameters

2010-06-07 Thread Russell Adams
On Mon, Jun 07, 2010 at 12:27:46AM +0100, Dan Davison wrote:
 Russell Adams rlad...@adamsinfoserv.com writes:
 
  I needed the ability to view what parameters were sent to plot in
  R. Turns out that you can't query some things like the active filename
  in R, so I went back to org.

Really, you can't query the filename of the active device in R. I
exported all the parameters to the R code block to R variables so I
can use them in R.

  This patch takes each parameter and converts it to a variable in R,
  including the filename (org_babel_filename).
 
  My intent is to parse the filename in R to create a dev.copy() to a
  pdf while creating a PNG. Ideally then I can see the png inline, and
  export to latex with the PDF.

See example.

 
 Hi Russell,
 
 I haven't completely understood paras 1 and 3 above. Would you mind
 posting an example that illustrates the problem that this patch solves?
 
 Dan
 

Here's a non-functional example that I hope can illustrate the point:

--
* HEading

  blah blah blah blah blah blah blah blah blah blah blah blah blah


#+BEGIN_SRC R :file whatever.png :width 300 :height 200 :exports none

a = c(1,2,3,4)
plot(a)

dev.copy(pdf,gsub(.png,.pdf,org_babel_filename))
#+END_SRC

#+results:
[[file:whatever.png]]

#+LATEX \\include[whatever.pdf]

--

The idea is I want to be able to see the inline PNG image of my graph
while writing, and when I export I'll point the latex exporter to the
PDF. This provides a vector format for Latex, instead of a low
resolution bitmap. Yes you can use PDF's as includes, and they look
great because they are a vector format.

Does that help?

I'm having issues with the R dev.copy, but that's a separate issue.

Thanks.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

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


[Orgmode] org-velocity --- something like Notational Velocity for Org

2010-06-07 Thread Paul M. Rodriguez

There exists a notetaking program for OSX called Notational Velocity 
(http://notational.net/) with an ingeniously simple interface.  (I say there 
exists since I've never actually used it.)  When you enter a search phrase, 
the program lists all notes where the phrase occurs; if there are no matching 
notes, then the search phrase is used as the title of a new note.

When I read about this I thought it would be straightforward to create a 
similar interface for Emacs, storing the notes in Org format.  Each note is 
simply a heading in a file.  The mode line is used to read a search, a display 
buffer shows the results, and (optionally) org-remember is used to record new 
notes.  You can use the interface to maintain a single bucket file, or to 
navigate any Org file.

The package is available at http://gopher.ruricolist.com/lisp/org-velocity.el.

It works for me but of course any feedback or suggestions would be
welcome.

Paul Rodriguez

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


[Orgmode] Re: org-babel-R export parameters

2010-06-07 Thread Dan Davison
Russell Adams rlad...@adamsinfoserv.com writes:

 On Mon, Jun 07, 2010 at 12:27:46AM +0100, Dan Davison wrote:
 Russell Adams rlad...@adamsinfoserv.com writes:
 
  I needed the ability to view what parameters were sent to plot in
  R. Turns out that you can't query some things like the active filename
  in R, so I went back to org.

 Really, you can't query the filename of the active device in R. I
 exported all the parameters to the R code block to R variables so I
 can use them in R.

  This patch takes each parameter and converts it to a variable in R,
  including the filename (org_babel_filename).
 
  My intent is to parse the filename in R to create a dev.copy() to a
  pdf while creating a PNG. Ideally then I can see the png inline, and
  export to latex with the PDF.

 See example.

 
 Hi Russell,
 
 I haven't completely understood paras 1 and 3 above. Would you mind
 posting an example that illustrates the problem that this patch solves?
 
 Dan
 

 Here's a non-functional example that I hope can illustrate the point:

 --
 * HEading

   blah blah blah blah blah blah blah blah blah blah blah blah blah


 #+BEGIN_SRC R :file whatever.png :width 300 :height 200 :exports none

 a = c(1,2,3,4)
 plot(a)

 dev.copy(pdf,gsub(.png,.pdf,org_babel_filename))
 #+END_SRC

 #+results:
 [[file:whatever.png]]

 #+LATEX \\include[whatever.pdf]

 --

 The idea is I want to be able to see the inline PNG image of my graph
 while writing, and when I export I'll point the latex exporter to the
 PDF. 

Hi Russell,

Thanks, that's clear. You may well be right that it would be appropriate
to expose further information about the babel source block
(e.g. the :file argument) to the external language. However, one general
design consideration is that where possible we do want to avoid
implementing ad-hoc language-specific behaviour. If we do go your route
I would suggest that everything should be wrapped up in a single list
object (hash in perl, dict in python, etc etc), and that that list/hash
object should have a reasonably consistent name across languages
(__org_babel_header_args__ or something).

For now however, I would suggest taking the view that what you are doing
is slightly non-standard org-babel usage, and therefore that it should
be achieved more explicitly. E.g. how about the following approach?

#+begin_src R :results file :var basename=myplot
  a - 1:4
  pngfile - sprintf(%s.png, basename)
  pdffile - sprintf(%s.pdf, basename)
  
  png(pngfile)
  plot(a)
  dev.off()
  
  pdf(pdffile)
  plot(a)
  dev.off()
  
  pngfile
#+end_src

It should be possible to avoid repetitive code by abstracting that
functionality. One possibility would be an R function
plot.png.and.pdf.returning.png.filename(); alternatively, I suspect
analogous abstraction could be achieved in org-babel using noweb block
references or a library of babel function.

Dan

 This provides a vector format for Latex, instead of a low
 resolution bitmap. Yes you can use PDF's as includes, and they look
 great because they are a vector format.

 Does that help?

 I'm having issues with the R dev.copy, but that's a separate issue.

 Thanks.

 --
 Russell Adamsrlad...@adamsinfoserv.com

 PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

 Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

 ___
 Emacs-orgmode mailing list
 Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-velocity --- something like Notational Velocity for Org

2010-06-07 Thread Carsten Dominik

Hi Paul, this is pretty neat!


Suggestions:

1. Make the list format such that the number comes first:

   #1 first match
   #2 second matching heading

2. When you show the list, if would be great if a single key would
   get you to the entry, like 1-9 for the first ones, you could
   assign letters a-z for more.

3. It feels like mouse-1 should get you to the heading, but that
   does not work.

4. I would also like a key which will make a new note with this title,
   even if there are matched.  Proposal:  use the 0 key
   for this function.

5. Search feels much slower than it should be - but I am not
   sure how you implemented it.  Maybe use elp to find out where
   the time is spent?  Instead of building an alist of headings,
   maybe the following procedure is faster: Find the word, go
   back to the heading and save the heading, then jump to the
   next heading and continue to search.

6. There should be a command to do the current buffer, independent
   of the value of the bucket file name.

7. The customization type 'file might be better for the bucket
   file name.

8. Org's search view (C-c a s) lives in a similar space, but it
   uses the agenda, and I like yours as a quick way to go
   somewhere, or to add a note.

Thanks!

- Carsten


On Jun 7, 2010, at 12:25 AM, Paul M. Rodriguez wrote:



There exists a notetaking program for OSX called Notational Velocity  
(http://notational.net/) with an ingeniously simple interface.  (I  
say there exists since I've never actually used it.)  When you  
enter a search phrase, the program lists all notes where the phrase  
occurs; if there are no matching notes, then the search phrase is  
used as the title of a new note.


When I read about this I thought it would be straightforward to  
create a similar interface for Emacs, storing the notes in Org  
format.  Each note is simply a heading in a file.  The mode line is  
used to read a search, a display buffer shows the results, and  
(optionally) org-remember is used to record new notes.  You can use  
the interface to maintain a single bucket file, or to navigate any  
Org file.


The package is available at http://gopher.ruricolist.com/lisp/org-velocity.el 
.


It works for me but of course any feedback or suggestions would be
welcome.

Paul Rodriguez

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


- Carsten




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


Re: [Orgmode] Vertical line anomaly between Example block and lines starting with a colon

2010-06-07 Thread Carsten Dominik

Hi Giovanni,

thanks for the report - this is fixed now.  When I can push again, it  
will show up in the git repo.


- Carsten

On Jun 6, 2010, at 4:21 AM, Giovanni Moretti wrote:

My first post to this list - thanks Dominik and all, your efforts  
are much appreciated.


I'm working up a presentation on orgmode for a local club and needed  
to prefix it with a brief emacs overview, and so included this:


#+BEGIN_EXAMPLE
 ctrl-P (previous line)
  |
  |
Ctrl-A   Ctrl-B  o  Ctrl-F   Ctrl-E
Col 1  back char  !   fwd charEOL
  !
 ctrl-N (next line)
#+END_EXAMPLE

:   ctrl-P (previous line)
:|
:|
: Ctrl-A   Ctrl-B  o  Ctrl-F   Ctrl-E
: Col 1   back char  |   fwd charEOL
:|
:   ctrl-N (next line)

I'm using Orgmode v6.36c and when exporting to HTML (and LaTex  
Beamer), the two lines containing the single vertical bar  
immediately below the ctrl-P line in the #+EXAMPLE block vanish,  
whereas using the alternate colon at the beginning of the line  
notation, the rendering is as expected.


Interestingly, enabling the +n option (#+BEGIN_EXAMPLE +n) causes  
the missing lines (lines 2  3) to reappear.


I don't think it's supposed to do this ...

Cheers
Giovanni


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


- Carsten




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


Re: [Orgmode] Bug: Pretty display of subscripts and hyperlinks

2010-06-07 Thread Carsten Dominik
Fixed, thanks for the report.  When repo.or.cz is up again, I will  
push the change.


- Carsten

On Jun 6, 2010, at 7:39 PM, Matt Lundin wrote:


Hi Carsten,

Git commit 70d24c5d036cd5787f719104a0ad2f157c5207b1 causes underscores
in hyperlinks to display parts of link and description as subscripts.
E.g., this link...

[[http://www.samplepage.com/an_underscore][Some description words]]

...displays the word Some in the description as a subscript. With  
M-x

visible-mode, the substring underscore][Some is displayed as a
subscript.

Thanks,
Matt

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


- Carsten




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


[Orgmode] How to open external link in Emacs-w3m from .org file?

2010-06-07 Thread Paul Chany
Hi,

I have installed GNU Emacs 23.1.1 (i486-pc-linux-gnu) of 2009-11-02 on
raven, modified by Debian.

In my .org files I have external links and want to open these pages in
Emacs W3m browser.
How can I setup variables to get this to work?

I have so far the following setup in my .emacs file:
 '(browse-url-browser-function (quote browse-url-w3))
 '(browse-url-new-window-flag t)

When I want to open such a link with C-c C-o I get message:
Cannot open load file: w3

Any advices will be appreciated!

-- 
Regards,
Paul Chany
You can freely correct my English.
http://csanyi-pal.info


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


[Orgmode] Re: How to open external link in Emacs-w3m from .org file?

2010-06-07 Thread Richard Riley
Paul Chany csanyi...@gmail.com writes:

 Hi,

 I have installed GNU Emacs 23.1.1 (i486-pc-linux-gnu) of 2009-11-02 on
 raven, modified by Debian.

 In my .org files I have external links and want to open these pages in
 Emacs W3m browser.
 How can I setup variables to get this to work?

 I have so far the following setup in my .emacs file:
  '(browse-url-browser-function (quote browse-url-w3))
  '(browse-url-new-window-flag t)

 When I want to open such a link with C-c C-o I get message:
 Cannot open load file: w3

 Any advices will be appreciated!


I haven't tested but used to use w3m before realising it was too slow and
incompatible with too many pages ;)

Try 'w3m-browse-url instead.


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


Re: [Orgmode] Re: org-babel-R export parameters

2010-06-07 Thread Russell Adams
On Mon, Jun 07, 2010 at 10:03:46AM +0100, Dan Davison wrote:
 Hi Russell,
 
 Thanks, that's clear. You may well be right that it would be appropriate
 to expose further information about the babel source block
 (e.g. the :file argument) to the external language. However, one general
 design consideration is that where possible we do want to avoid
 implementing ad-hoc language-specific behaviour. If we do go your route
 I would suggest that everything should be wrapped up in a single list
 object (hash in perl, dict in python, etc etc), and that that list/hash
 object should have a reasonably consistent name across languages
 (__org_babel_header_args__ or something).

I already thought of that, but R was my target here. I didn't want to
jump into a major design decision. ;]


 For now however, I would suggest taking the view that what you are doing
 is slightly non-standard org-babel usage, and therefore that it should
 be achieved more explicitly. E.g. how about the following approach?
 
 #+begin_src R :results file :var basename=myplot
   a - 1:4
   pngfile - sprintf(%s.png, basename)
   pdffile - sprintf(%s.pdf, basename)
   
   png(pngfile)
   plot(a)
   dev.off()
   
   pdf(pdffile)
   plot(a)
   dev.off()
   
   pngfile
 #+end_src

I like this better, and I can use dev.copy here too. The issue is a
plot is rarely one line. Most of my plots are a half page of code
between the data set, legend, etc.

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

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


[Orgmode] Removing (modify-syntax-entry ?# )

2010-06-07 Thread Leo
Hello Carsten,

Setting a comment starter without a corresponding comment ender is
problematic and the # creeps in mysteriously under auto-fill. For
example, in my current running emacs, this happens almost certainly in
all org files that has # in their header. The only (temporary) solution
seems to reboot emacs (which is painful and disruptive).

If you try eval (forward-comment 1) at the beginning of an org file that
has some #+... it will move to the end of file (the whole file is
regarded as one single comment). So when auto-fill a long text, it will
find the common prefix to be #.

In addition, I don't think org mode has clear comment syntax or ideas on
what to do with it.

I can't see any gain from (modify-syntax-entry ?# ) so I am proposing
removing it entirely and get rid of this mysterious and annoying bug
once and for all.

The attached patch may (though I think it is quite safe) cause some bugs
but those will be fixable unlike the one mentioned above.

Best wishes,

Leo


diff --git a/lisp/org/org.el b/lisp/org/org.el
index aae49fa..bb36ed8 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -4208,7 +4208,6 @@ The following commands are available:
 (org-set-tag-faces 'org-tag-faces org-tag-faces))
   ;; Calc embedded
   (org-set-local 'calc-embedded-open-mode # )
-  (modify-syntax-entry ?# )
   (modify-syntax-entry ?@ w)
   (if org-startup-truncated (setq truncate-lines t))
   (org-set-local 'font-lock-unfontify-region-function
@@ -4237,7 +4236,7 @@ The following commands are available:
 'org-block-todo-from-checkboxes))
 
   ;; Comment characters
-;  (org-set-local 'comment-start #) ;; FIXME: this breaks wrapping
+  (org-set-local 'comment-start #)
   (org-set-local 'comment-padding  )
 
   ;; Align options lines



-- 
CCL-USER (if you fail to plan (plan to fail))


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


[Orgmode] Emacs 21 doesn't pick utf-8 as the coding system

2010-06-07 Thread Steinar Bang
I'm trying to work on a file created on emacs 22 on Debian lenny, on
emacs 21 on RHEL4.  The org file in emacs 21 shows up with UTF-8
interpreted as iso-8859-1.

I've tried setting the coding explicitly with
 `C-x RET f utf-8-unix RET'
but that didn't seem to make any difference.

Are there lisp and mode-specific ways of fixing this? I'd rather not
mess with the locale settings...

Here are the locale settings:

On RHEL4:
LANG=
LC_CTYPE=POSIX
LC_NUMERIC=POSIX
LC_TIME=POSIX
LC_COLLATE=POSIX
LC_MONETARY=POSIX
LC_MESSAGES=POSIX
LC_PAPER=POSIX
LC_NAME=POSIX
LC_ADDRESS=POSIX
LC_TELEPHONE=POSIX
LC_MEASUREMENT=POSIX
LC_IDENTIFICATION=POSIX
LC_ALL=

On debian lenny:
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=POSIX
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=


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


[Orgmode] Timestamp format questions

2010-06-07 Thread Joost Kremers
Hi all,

Being a long-time Emacs user, I've finally decided to take the plunge and try
org-mode. I'm still in the process of figuring out what the best way is for me
to use it, (and I suspect I'll need a few more weeks to do so ;-) but I'm
wondering about timestamps, especially about how to represent certain things
that seem to me rather common but aren't discussed explicitly in the manual.

Most pressing: how can I say that a certain event occurs every week on a certain
day and time, but only for a limited period? E.g., for classes I teach I want to
be able to say 'this class takes place from April 8 through July 8, every
Thursday from 12.00 to 14.00. If I write:

   2010-04-08 Thu 12:00-14.00 +1w

I get the correct time and interval, but of course it doesn't stop at the
correct date. However, if I write

   2010-04-08 Thu 12:00-14.00 +1w--2010-07-08 Thu

then it shows up *every day* in the agenda view, not just on Thursdays. (That
actually looks like a bug to me, but perhaps I'm doing something wrong.)

Also, is there a way to say that a certain event that occurs every week does not
occur on one specific date? For example, I teach a class every Thursday, but the
Thu. 13th of May was Ascension Day, so the class was cancelled. I would like the
event to not show up on such days.

BTW, I'm using Aquamacs 2.0, (org-version) says 6.33x, in case that's
relevant.

TIA

Joost


-- 
Dr. Joost Kremers
Georg-August-Universität
Seminar für Deutsche Philologie
Käte-Hamburger-Weg 3
D-37073 Göttingen

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


[Orgmode] Agenda is slow because of vc-mode

2010-06-07 Thread Daniel Clemente
Hi.

  I have a shell script which exports my agenda to a file. It's pretty
slow: about 90 seconds. There are many files (200 .org files, 76k
lines, 3'6 Mb, 1600 open tasks) but the performance should be better.
  I found a way to bring it down to 11 seconds: temporarily disable
the version control tools I'm using (bazaar, git). To test, just
change their names so that Emacs can't run them.

  Since this slowness is caused by vc-mode, I wonder if it's possible
for Org to open the agenda files without enabling vc-mode, for vc-mode
is not necessary for org-mode.
  I fear not, because org-agenda-get-day-entries uses
org-get-agenda-file-buffer to open a buffer normally, and this buffer
should be fully functional for later usage.

  As a hack, I used (defun vc-find-file-hook () nil) in my script;
this does the trick.

  Greetings,

Daniel

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


Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-06-07 Thread Michael Sperber

Eric Schulte schulte.e...@gmail.com writes:

 I've replaced the calls to `line-number-at-pos' with a single call to
 `count-lines'.  Is count lines (also part of simple.el) also missing
 from xemacs? 

No, `count-lines' should work.  Thanks for the other changes!

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla

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


Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-06-07 Thread Michael Sperber

Eric Schulte schulte.e...@gmail.com writes:

 And two more

  o Symbol's function definition is void: assoc-default when trying to 
 display an image
 [...]
  o Symbol's function definition is void: make-temp-file when using 
 org-babel-dot
 [...]

Both of these are in XEmacs 21.5, but not 21.4.  As 21.4 is almost not
moving anymore, it may not be worth the effort to add them to 21.4.
(Volker would have to wait quite a while to get a 21.4 that works with
this.)  My suggestion is to leave org-mode and XEmacs 21.4 as is, and
for Volker to copy the definitions from 21.5 to his init.el.
(Attached.)  Is this acceptable?

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
(defun assoc-default (key alist optional test default)
  Find object KEY in a pseudo-alist ALIST.
ALIST is a list of conses or objects.  Each element (or the element's car,
if it is a cons) is compared with KEY by evaluating (TEST (car elt) KEY).
If that is non-nil, the element matches;
then `assoc-default' returns the element's cdr, if it is a cons,
or DEFAULT if the element is not a cons.

If no element matches, the value is nil.
If TEST is omitted or nil, `equal' is used.
  (let (found (tail alist) value)
(while (and tail (not found))
  (let ((elt (car tail)))
(when (funcall (or test 'equal) (if (consp elt) (car elt) elt) key)
  (setq found t value (if (consp elt) (cdr elt) default
  (setq tail (cdr tail)))
value))


(defun make-temp-file (prefix optional dir-flag suffix)
  Create a temporary file.
The returned file name (created by appending some random characters at the
end of PREFIX, and expanding against the return value of `temp-directory' if
necessary), is guaranteed to point to a newly created empty file.  You can
then use `write-region' to write new data into the file.

If DIR-FLAG is non-nil, create a new empty directory instead of a file.

If SUFFIX is non-nil, add that at the end of the file name.

This function is analagous to mkstemp(3) under POSIX, avoiding the race
condition between testing for the existence of the generated filename (under
POSIX with mktemp(3), under Emacs Lisp with `make-temp-name') and creating
it.
  (let ((umask (default-file-modes))
(temporary-file-directory (temp-directory))
file)
(unwind-protect
(progn
  ;; Create temp files with strict access rights.  It's easy to
  ;; loosen them later, whereas it's impossible to close the
  ;; time-window of loose permissions otherwise.
  (set-default-file-modes #o700)
  (while (condition-case ()
 (progn
   (setq file
 (make-temp-name
  (expand-file-name prefix
temporary-file-directory)))
   (if suffix
   (setq file (concat file suffix)))
   (if dir-flag
   (make-directory file)
 (write-region  nil file nil 'silent nil 'excl))
   nil)
   (file-already-exists t))
;; the file was somehow created by someone else between
;; `make-temp-name' and `write-region', let's try again.
nil)
  file)
  ;; Reset the umask.
  (set-default-file-modes umask
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: org-babel-R export parameters

2010-06-07 Thread Erik Iverson

snip

The idea is I want to be able to see the inline PNG image of my graph
while writing, and when I export I'll point the latex exporter to the
PDF. This provides a vector format for Latex, instead of a low
resolution bitmap. Yes you can use PDF's as includes, and they look
great because they are a vector format.


I have this exact same issue.  One idea I haven't explored, but that might be 
possible, is to generate PDFs in org-babel, and then display the pdf using emacs 
doc-view, which converts to png for display in an emacs buffer, if I understand 
correctly.


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


[Orgmode] Re: MobileOrg for Android starts to become really usable

2010-06-07 Thread Matthew Jones
I do plan on adding DropBox support but would like to get some other
features working first.

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Mon, Jun 7, 2010 at 3:02 AM, Detlef Steuer detlef.ste...@gmx.de wrote:

 Hi!

 Do you plan to add dropbox support into mobileorg-android?
 That would be just great!

 Thank you anyway for your efforts, even if dropbox gets dropped!

 Detlef

 On Fri, 28 May 2010 14:40:05 -0400
 Matthew Jones bsdmatb...@gmail.com wrote:

  Sven, thanks for the wonderful feedback.  MobileOrg Android does attach a
  timestamp to the note (similar to what the iphone version does, just
 below
  the headline) but anything else you want as part of the heading you do
 have
  to type manually.
 
  I haven't yet published a roadmap because I've been on this frenetic pace
 to
  try to get close to feature parity with the iPhone version.   I'm
 currently
  working on giving you the ability to change TODO states... this is a bit
 of
  a challenge because of how I store each of the org files.   Richard's
 iPhone
  version actually reads the contents of the file into a database (I think?
   Or at least... some other data structure) which lends itself well to the
  org-mobile-push model where an updated heading just gets pushed into the
  mobileorg.org file.When I wrote my implementation I had not fully
  grasped that concept yet so I just store the file and parse it on-demand
 as
  you drill down into your file's contents.   In order to support editing
  files and changing TODO states, I need to switch to Richard's model of
  storing the components that make up the file instead of trying to parse
 it
  on-demand.
 
  Once I have this finished I plan to release the Beta, and at the same
 time
  push the application into the Android Market (still free and open source,
  mind you) as well as release comprehensive documentation.   I think
 (hope)
  that I can put the information on Richard's site dedicated to his version
 of
  MobileOrg and have his documentation be valid and easily understood for
 both
  version.
 
  73,
  Matthew W. Jones (KI4ZIB)
  http://matburt.net
 
 
  On Fri, May 28, 2010 at 5:05 AM, Sven Bretfeld sven.bretf...@gmx.ch
 wrote:
 
   Hi to all, hi Matthew
  
   I had a look at matburt's Github today and found the new
 0.4alpha-build.
   Now, MobOrg4And supports the capturing of notes. That's what I was
   waiting for all the time. I can say that Note capturing works on my HTC
   Magic, albeit I had little time so far to test it more than once or
   twice.
  
   I just wanted to say thank you very much!
  
   Note taking is rudimentary at the moment. As far as I can see, you have
   to type todo-keywords, tags and active timestamps manually. But that
   doesn't matter too much at the moment. The current alternatives (RTM,
   Toodledo) have similar inconveniences. However, in MobOrg4And we are in
   our familiar org-syntax, so /everything/ can be done without complex
   awk/sed
   operations after syncing.
  
   @Matthew: Do you have some kind of roadmap published anywhere?
  
   Greetings,
  
   Sven
  
   ___
   Emacs-orgmode mailing list
   Please 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
 Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] repo.or.cz down?

2010-06-07 Thread Ian Barton

On 07/06/10 04:58, Nick Dokos wrote:

Carsten Dominikcarsten.domi...@gmail.com  wrote:



I have not been able to reach repo.or.cz for more than a day now.  Is
it just me?



No. I pulled yesterday some time but I just tried again and I could
not.


I had trouble reaching it this morning, but it's OK now.

Ian.

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


Re: [Orgmode] Re: MobileOrg for Android starts to become really usable

2010-06-07 Thread Henri-Paul Indiogine
Matthew Jones bsdmatb...@gmail.com writes:
 I do plan on adding DropBox support but would like to get some other
 features working first.

Thanks Matthew.  I recently started using DropBox on my desktop, laptop
and Xperia phone.  All my main org files are now in my DropBox.  It is a
fantastic application.

It would be wonderful to have MobileOrg work with DropBox.

Best,


Henri-Paul Indiogine
Email: hindiog...@gmail.com
Skype: hindiogine
Website: http://www.coe.tamu.edu/~enrico

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


[Orgmode] Re: Proposal: Emtest as tester

2010-06-07 Thread Benjamin Andresen
Hey Tom,

I was wondering what the status was of the emtest inclusion in org-mode?

Looks like the tehom-master in the org-mode repo is not the right one
(last commit Wed Apr 28 16:39:59 2010 -0500)

br,
benny

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


[Orgmode] Re: Timestamp format questions

2010-06-07 Thread Matt Lundin
Hi Joost,

Joost Kremers joostkrem...@fastmail.fm writes:

 Most pressing: how can I say that a certain event occurs every week on
 a certain day and time, but only for a limited period? E.g., for
 classes I teach I want to be able to say 'this class takes place from
 April 8 through July 8, every Thursday from 12.00 to 14.00. If I
 write:

2010-04-08 Thu 12:00-14.00 +1w

 I get the correct time and interval, but of course it doesn't stop at the
 correct date. However, if I write

2010-04-08 Thu 12:00-14.00 +1w--2010-07-08 Thu

 then it shows up *every day* in the agenda view, not just on Thursdays. (That
 actually looks like a bug to me, but perhaps I'm doing something
 wrong.)

You can use diary sexps to schedule more complex appointments.

, (info (org) Timestamps) 
| 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)
`

See also the following FAQ entry:
http://orgmode.org/worg/org-faq.php#diary-sexp-in-org-files

The function org-diary-class nicely covers the scenario above:

--8---cut here---start-8---
* 12:00-14:00 Weekly class
%%(org-diary-class 4 8 2010 7 8 2010 4)
--8---cut here---end---8---

http://orgmode.org/worg/org-faq.php#org-diary-class

 Also, is there a way to say that a certain event that occurs every
 week does not occur on one specific date? For example, I teach a class
 every Thursday, but the Thu. 13th of May was Ascension Day, so the
 class was cancelled. I would like the event to not show up on such
 days.

--8---cut here---start-8---
* 12:00-14:00 Weekly class
%%(org-diary-class 4 8 2010 7 8 2010 4 19)
;; iso number of the week to skip
--8---cut here---end---8---

Best,
Matt

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


Re: [Orgmode] Re: org-babel-R export parameters

2010-06-07 Thread Erik Iverson

snip


#+begin_src R :results file :var basename=myplot
  a - 1:4
  pngfile - sprintf(%s.png, basename)
  pdffile - sprintf(%s.pdf, basename)
  
  png(pngfile)

  plot(a)
  dev.off()
  
  pdf(pdffile)

  plot(a)
  dev.off()
  
  pngfile

#+end_src


I like this better, and I can use dev.copy here too. The issue is a
plot is rarely one line. Most of my plots are a half page of code
between the data set, legend, etc.



You could just make your complex plots functions, and then call your 
function in in one line. Or if you're using lattice or ggplot2, create 
objects representing the plot, and then plot them in one line.





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


Re: [Orgmode] Re: org-babel-R export parameters

2010-06-07 Thread Russell Adams
On Mon, Jun 07, 2010 at 01:40:32PM -0500, Erik Iverson wrote:
 You could just make your complex plots functions, and then call your  
 function in in one line. Or if you're using lattice or ggplot2, create  
 objects representing the plot, and then plot them in one line.

Funny you should mention that, I already did. ;]

So my current issue is that it appears that even though I set :export
none, the png is still included in my Latex output.

Suggestions?

==
* Heading

  blah blah blah blah blah blah blah blah blah blah blah blah blah

#+BEGIN_SRC R :results file :exports none :var basename=MyFile

doublePlot = function (base, plotFunc) {

  # basename from org-babel
  myPng = paste(base,png,sep=.)
  myPdf = paste(base,pdf,sep=.)

  png(myPng,
  width  = 1024,
  height = 500)

  plotFunc()

  dev.off()

  pdf(myPdf,
  paper = 'usr')

  plotFunc()

  dev.off()

  print(myPng)

}

a = c(1,2,3,4)

doublePlot(base=basename, plotFunc=function(){
 plot(a)
 })

#+END_SRC

#+results:
[[file:MyFile.png]]

#+LATEX: \includegraphics[width=\textwidth]{MyFile.pdf}
==




--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

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


Re: [Orgmode] Re: org-babel-R export parameters

2010-06-07 Thread Eric Schulte
Hi Russel,

Russell Adams rlad...@adamsinfoserv.com writes:

[...]

 So my current issue is that it appears that even though I set :export
 none, the png is still included in my Latex output.

 Suggestions?


The png is still included your output because the link to the png is
part of your org-mode buffer.


 #+results:
 [[file:MyFile.png]]


Currently org-babel isn't bold enough to remove existing results during
export.  The :exports none argument simply means that babel will not run
the source-code block on export.

I personally find this useful because it allows me to use code blocks to
generate results, and then when I'm content with the file I can set
:exports none to avoid re-generating the file on every export -- while
retaining the existing link keeps the file included in my export.

I do see how this could be confusing, and maybe it would be appropriate
to begin stripping out the results of code blocks on export.

Best -- Eric

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


[Orgmode] Worldcup + time zone question

2010-06-07 Thread Dirk-Jan C . Binnema
Hi All,

I made a little org-mode schedule for the Football World Cup in South-Africa
(attached); it may be useful for some.

Anyway, my question: the times are the local times in South Africa -- is there
some way to have the times shown in my org-agenda automatically corrected for
my local time zone?

Thanks,
Dirk.

#+STARTUP:content
#+category:FIFA2010

Note: all time are local (UTC+2 times)

* Group A  :A:
** Uruguay- France   2010-06-11 Fri 20:30   
** South Africa   - Mexico   2010-06-11 Fri 16:00  
** South Africa   - Uruguay  2010-06-16 Wed 20:30   
** France - Mexico   2010-06-17 Thu 20:30   
** France - South Africa 2010-06-22 Tue 16:00   
** Mexico - Uruguay  2010-06-22 Tue 16:00
   
* Group B  :B:
** Korea Republic - Greece   2010-06-12 Sat 13:30   
** Argentina  - Nigeria  2010-06-12 Sat 16:00   
** Argentina  - Korea Republic   2010-06-17 Thu 13:30   
** Greece - Nigeria  2010-06-17 Thu 16:00   
** Greece - Argentina2010-06-22 Tue 20:30   
** Nigeria- Korea Republic   2010-06-22 Tue 20:30
   
* Group C  :C:
** England- USA  2010-06-12 Sat 20:30   
** Algeria- Slovenia 2010-06-13 Sun 13:30   
** Slovenia   - USA  2010-06-18 Fri 16:00   
** England- Algeria  2010-06-18 Fri 20:30   
** Slovenia   - England  2010-06-23 Wed 16:00   
** USA- Algeria  2010-06-23 Wed 16:00   

* Group D  :D:
** Serbia - Ghana2010-06-13 Sun 16:00   
** Germany- Australia2010-06-13 Sun 20:30   
** Germany- Serbia   2010-06-18 Fri 13:30   
** Ghana  - Australia2010-06-19 Sat 16:00   
** Australia  - Serbia   2010-06-23 Wed 20:30   
** Ghana  - Germany  2010-06-23 Wed 20:30   

* Group E  :E:
** Netherlands- Denmark  2010-06-14 Mon 13:30   
** Japan  - Cameroon 2010-06-14 Mon 16:00   
** Netherlands- Japan2010-06-19 Sat 13:30   
** Cameroon   - Denmark  2010-06-19 Sat 20:30   
** Cameroon   - Netherlands  2010-06-24 Thu 20:30   
** Denmark- Japan2010-06-24 Thu 20:30   

* Group F  :F:
** Italy  - Paraguay 2010-06-14 Mon 20:30   
** New Zealand- Slovakia 2010-06-15 Tue 13:30   
** Slovakia   - Paraguay 2010-06-20 Sun 13:30   
** Italy  - New Zealand  2010-06-20 Sun 16:00   
** Paraguay   - New Zealand  2010-06-24 Thu 16:00   
** Slovakia   - Italy2010-06-24 Thu 16:00   

* Group G  :G:
** Côte d'Ivoire  - Portugal 2010-06-15 Tue 16:00   
** Brazil - Korea DPR2010-06-15 Tue 20:30   
** Brazil - Côte d'Ivoire2010-06-20 Sun 20:30   
** Portugal   - Korea DPR2010-06-21 Mon 13:30   
** Korea DPR  - Côte d'Ivoire2010-06-25 Fri 16:00   
** Portugal   - Brazil   2010-06-25 Fri 16:00   

* Group H  :H:
** Honduras   - Chile2010-06-16 Wed 13:30   
** Spain  - Switzerland  2010-06-16 Wed 16:00   
** Chile  - Switzerland  2010-06-21 Mon 16:00   
** Spain  - Honduras 2010-06-21 Mon 20:30   
** Chile  - Spain2010-06-25 Fri 20:30   
** Switzerland- Honduras 2010-06-25 Fri 20:30   

* 8th Finals  :8F:
** M1: 1A - 2B 2010-06-26 Sat 16:00
** M3: 1C - 2D 2010-06-26 Sat 20:30
** M4: 1D - 2C 2010-06-27 Sun 16:00
** M2: 1B - 2A 2010-06-27 Sun 20:30
** M5: 1E - 2F 2011-06-27 Mon 16:00
** M7: 1G - 2H 2010-06-28 Mon 20:30
** M6: 1F - 2E 2011-06-28 Tue 16:00
** M8: 1H - 2G 2010-06-29 Tue 20:30


* Quarterfinals   :QF:
** QC: M5 - M7 2010-07-02 Fri 16:00 
** QA: M1 - M3 2010-07-02 Fri 20:30
** QB: M2 - M4 2010-07-03 Sat 16;00
** QD: M6 - M8 2010-07-03 Sat 20:30

* Semifinals  :SF:
** S1: QA - QC 2010-07-06 Tue 20:30
** S2: QB - QD 2010-07-07 Wed 20:30
   
* Third place:3RD:
** Loser S1 - Loser S2 

Re: [Orgmode] Re: org-babel-R export parameters

2010-06-07 Thread Erik Iverson



I personally find this useful because it allows me to use code blocks to
generate results, and then when I'm content with the file I can set
:exports none to avoid re-generating the file on every export -- while
retaining the existing link keeps the file included in my export.

I do see how this could be confusing, and maybe it would be appropriate
to begin stripping out the results of code blocks on export.


1 vote for that from me, for the exact same situation as this thread 
describes, i.e., I want to preview graphics in emacs, but have PDFs 
included in LaTeX upon export.


I have cobbled together something this afternoon that uses doc-view to 
overlay a png over a PDF results file.  There are a couple things to 
sort out, but I'll post that when I get home, it could possibly help 
here, at least with not having to generate both types of files from 
R/org-mode.



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


Re: [Orgmode] Re: org-babel-R export parameters

2010-06-07 Thread Russell Adams
On Mon, Jun 07, 2010 at 12:44:43PM -0700, Eric Schulte wrote:
 The png is still included your output because the link to the png is
 part of your org-mode buffer.


That explains it. So here's the fix, add # at the beginning of the
line with the inline image.

==


* HEading

  blah blah blah blah blah blah blah blah blah blah blah blah blah


#+BEGIN_SRC R :results raw :exports none :var basename=MyFile
# Data from org
doublePlot = function (base, plotFunc) {

  # basename from org-babel
  myPng = paste(base,png,sep=.)
  myPdf = paste(base,pdf,sep=.)

  png(myPng,
  width  = 1024,
  height = 500)

  plotFunc()

  dev.off()

  pdf(myPdf,
  paper = 'usr')

  plotFunc()

  dev.off()

  print(paste(# [[file:,myPng,]],sep=))

}

a = c(1,2,3,4)

doublePlot(base=basename, plotFunc=function(){
 plot(a)
 })

#+END_SRC

#+results:
# [[file:MyFile.png]]


#+LATEX: \includegraphics[width=\textwidth]{MyFile.pdf}
==


--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

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


Re: [Orgmode] Re: org-babel-R export parameters

2010-06-07 Thread Eric Schulte
Erik Iverson er...@ccbr.umn.edu writes:

 I personally find this useful because it allows me to use code blocks to
 generate results, and then when I'm content with the file I can set
 :exports none to avoid re-generating the file on every export -- while
 retaining the existing link keeps the file included in my export.

 I do see how this could be confusing, and maybe it would be appropriate
 to begin stripping out the results of code blocks on export.

 1 vote for that from me, for the exact same situation as this thread
 describes, i.e., I want to preview graphics in emacs, but have PDFs
 included in LaTeX upon export.


Upon reflection, I agree with you (and Russel) that just because results
were lying around in the buffer before export doesn't mean that the
':exports none' and ':exports code' header arguments should have their
meaning subverted.

I've made this change to the exporter (in the latest git HEAD) and
thanks to the way Org-mode handles export, the removal of results during
export does *not* mean that the results will be permanently removed
after export -- said differently, exporting will have no lasting effect
on the contents of the org-mode buffer.

Thanks to both of you for bringing this up.


 I have cobbled together something this afternoon that uses doc-view to
 overlay a png over a PDF results file.  There are a couple things to
 sort out, but I'll post that when I get home, it could possibly help
 here, at least with not having to generate both types of files from
 R/org-mode.

sounds great, I look forward to seeing it.  It seems to be that such a
pdf inline preview would be useful across general org-mode usage, not
just in the context of babel.

Best -- Eric

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


[Orgmode] better result insertion into Org-mode buffers

2010-06-07 Thread Eric Schulte
Hi,

In a (fairly) recent thread [1] Graham Smith has brought up the fact
that org-babel does not replace existing results in-place where they
originally existed in an org-mode buffer, but rather deletes any
existing results, and inserts new results immediately afterwards.
Thanks for bringing this up Graham.

In a related note, Dan has mentioned that it would be nice to have an
append option for building new results onto existing results.

I've just pushed up a fix (described at [2]) which takes care of the
issue Graham raised, and also adds both append and prepend keywords
to the :results header argument.

Thanks -- Eric

Footnotes: 
[1]  http://thread.gmane.org/gmane.emacs.orgmode/22837/focus=22860

[2]  
http://eschulte.github.com/babel-dev/DONE-results-deletion-and-insertion.html


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


Re: [Orgmode] day-agenda: show whole-day-events first

2010-06-07 Thread Eraldo Helal
Carsten Dominik carsten.domi...@gmail.com writes:

 Have you looked in the customization group org-agenda-sorting?
In fact I did, but I misunderstood that part (error on my side).
,
| ;; time-specific entries are below whole-day entries in agenda
| (setq org-sort-agenda-notime-is-late nil)
`
I tested that variable and found it to do what I intended.
Great Great Great Great =]
Thank you

Greetings from Austria,
Eraldo


PS:
Is there any way to get the deadlines to the end since they
are not directly part of the current date.
,[ I thought of leaving the deadlined events below like so: ]
| - day events
| - scheduled day events
| - time events
| - scheduled time events
| - deadlined events
`
 Maybe changing deadline warning days to 0 and adding a custom agenda
 block at the end showing  only the not today deadlines?

I also thought of making my own custom blocked day/week agenda view.
But they don't have the same functionality anymore as far as I got that.
(e.g. pressing c = goto calendar on that day, toggle grid, etc)

This is no biggie since I can toggle deadlines on/off with ! in the
day/week-agenda. :)


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


Re: [Orgmode] day-agenda: show whole-day-events first

2010-06-07 Thread Daniel Martins
It works fine BUT my TODOS without timer appear before the appts as soon as
I set

(setq org-sort-agenda-notime-is-late nil)

can I push them back to the end of the view again?

Daniel

2010/6/7 Eraldo Helal era...@eraldo.org

 Carsten Dominik carsten.domi...@gmail.com writes:

  Have you looked in the customization group org-agenda-sorting?
 In fact I did, but I misunderstood that part (error on my side).
 ,
 | ;; time-specific entries are below whole-day entries in agenda
 | (setq org-sort-agenda-notime-is-late nil)
 `
 I tested that variable and found it to do what I intended.
 Great Great Great Great =]
 Thank you

 Greetings from Austria,
 Eraldo


 PS:
 Is there any way to get the deadlines to the end since they
 are not directly part of the current date.
 ,[ I thought of leaving the deadlined events below like so: ]
 | - day events
 | - scheduled day events
 | - time events
 | - scheduled time events
 | - deadlined events
 `
  Maybe changing deadline warning days to 0 and adding a custom agenda
  block at the end showing  only the not today deadlines?

 I also thought of making my own custom blocked day/week agenda view.
 But they don't have the same functionality anymore as far as I got that.
 (e.g. pressing c = goto calendar on that day, toggle grid, etc)

 This is no biggie since I can toggle deadlines on/off with ! in the
 day/week-agenda. :)


 ___
 Emacs-orgmode mailing list
 Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Worldcup + time zone question

2010-06-07 Thread Daniel Martins
Dirk,

Great schedule! I am really interested, in the same way, if it is possible
to adjust timezones to Brazil as well.

If it is not, I will adjust by hand your table.

Daniel

2010/6/7 Dirk-Jan C. Binnema djcb.b...@gmail.com

 Hi All,

 I made a little org-mode schedule for the Football World Cup in
 South-Africa
 (attached); it may be useful for some.

 Anyway, my question: the times are the local times in South Africa -- is
 there
 some way to have the times shown in my org-agenda automatically corrected
 for
 my local time zone?

 Thanks,
 Dirk.




 --
 Dirk-Jan C. Binnema  Helsinki, Finland
 e:d...@djcbsoftware.nl e%3ad...@djcbsoftware.nl   w:
 www.djcbsoftware.nl
 pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C

 ___
 Emacs-orgmode mailing list
 Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Worldcup + time zone question

2010-06-07 Thread Bill White
On Mon Jun 07 2010 at 14:48, Dirk-Jan C. Binnema djcb.b...@gmail.com wrote:

 Hi All,

 I made a little org-mode schedule for the Football World Cup in
 South-Africa (attached); it may be useful for some.

 Anyway, my question: the times are the local times in South Africa --
 is there some way to have the times shown in my org-agenda
 automatically corrected for my local time zone?

Norm Walsh's nifty wwtime.el may provide some ideas:
http://nwalsh.com/emacs/wwtime/

Cheers -

bw
-- 
Bill White . bi...@wolfram.com
No ma'am, we're musicians.

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


Re: [Orgmode] Worldcup + time zone question

2010-06-07 Thread Juan Pechiar
Here is a quick and dirty function to update all timestamps in a
buffer by N hours:

8

(defun uphours ( n )
  update all timestamps n hours
  (interactive nAdd hours: )
  (save-excursion
(goto-char (point-min))
 (while (re-search-forward [[] nil t)
   (when (org-at-timestamp-p t)
 (org-timestamp-change n 'hour)
 

8

S.Africa is UTC+2. To change to UTC-3 call with -5 as argument.

Use and modify as needed.

Regards,
.j.

On Mon, Jun 07, 2010 at 10:48:14PM +0300, Dirk-Jan C. Binnema wrote:
 I made a little org-mode schedule for the Football World Cup in South-Africa
 (attached); it may be useful for some.

 Anyway, my question: the times are the local times in South Africa -- is there
 some way to have the times shown in my org-agenda automatically corrected for
 my local time zone?

 #+STARTUP:content
 #+category:FIFA2010

 Note: all time are local (UTC+2 times)

 * Group A:A:
 ** Uruguay- France   2010-06-11 Fri 20:30

(will we beat France on Friday?)

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


Re: [Orgmode] Worldcup + time zone question

2010-06-07 Thread Russell Adams
Dirk,

My understanding is that time zones aren't currently supported in org,
or well supported in emacs in general. I've looked a few times at
allowing data entry from another TZ to just be converted to localtime,
and haven't had a good answer yet.

Thanks.

On Mon, Jun 07, 2010 at 10:48:14PM +0300, Dirk-Jan C. Binnema wrote:
 Hi All,
 
 I made a little org-mode schedule for the Football World Cup in South-Africa
 (attached); it may be useful for some.
 
 Anyway, my question: the times are the local times in South Africa -- is there
 some way to have the times shown in my org-agenda automatically corrected for
 my local time zone?
 
 Thanks,
 Dirk.
 

 #+STARTUP:content
 #+category:FIFA2010
 
 Note: all time are local (UTC+2 times)
 
 * Group A:A:
 ** Uruguay- France   2010-06-11 Fri 20:30   
 ** South Africa   - Mexico   2010-06-11 Fri 16:00  
 ** South Africa   - Uruguay  2010-06-16 Wed 20:30   
 ** France - Mexico   2010-06-17 Thu 20:30   
 ** France - South Africa 2010-06-22 Tue 16:00   
 ** Mexico - Uruguay  2010-06-22 Tue 16:00

 * Group B:B:
 ** Korea Republic - Greece   2010-06-12 Sat 13:30   
 ** Argentina  - Nigeria  2010-06-12 Sat 16:00   
 ** Argentina  - Korea Republic   2010-06-17 Thu 13:30   
 ** Greece - Nigeria  2010-06-17 Thu 16:00   
 ** Greece - Argentina2010-06-22 Tue 20:30   
 ** Nigeria- Korea Republic   2010-06-22 Tue 20:30

 * Group C:C:
 ** England- USA  2010-06-12 Sat 20:30   
 ** Algeria- Slovenia 2010-06-13 Sun 13:30   
 ** Slovenia   - USA  2010-06-18 Fri 16:00   
 ** England- Algeria  2010-06-18 Fri 20:30   
 ** Slovenia   - England  2010-06-23 Wed 16:00   
 ** USA- Algeria  2010-06-23 Wed 16:00   
 
 * Group D:D:
 ** Serbia - Ghana2010-06-13 Sun 16:00   
 ** Germany- Australia2010-06-13 Sun 20:30   
 ** Germany- Serbia   2010-06-18 Fri 13:30   
 ** Ghana  - Australia2010-06-19 Sat 16:00   
 ** Australia  - Serbia   2010-06-23 Wed 20:30   
 ** Ghana  - Germany  2010-06-23 Wed 20:30   
 
 * Group E:E:
 ** Netherlands- Denmark  2010-06-14 Mon 13:30   
 ** Japan  - Cameroon 2010-06-14 Mon 16:00   
 ** Netherlands- Japan2010-06-19 Sat 13:30   
 ** Cameroon   - Denmark  2010-06-19 Sat 20:30   
 ** Cameroon   - Netherlands  2010-06-24 Thu 20:30   
 ** Denmark- Japan2010-06-24 Thu 20:30   
 
 * Group F:F:
 ** Italy  - Paraguay 2010-06-14 Mon 20:30   
 ** New Zealand- Slovakia 2010-06-15 Tue 13:30   
 ** Slovakia   - Paraguay 2010-06-20 Sun 13:30   
 ** Italy  - New Zealand  2010-06-20 Sun 16:00   
 ** Paraguay   - New Zealand  2010-06-24 Thu 16:00   
 ** Slovakia   - Italy2010-06-24 Thu 16:00   
 
 * Group G:G:
 ** C??te d'Ivoire  - Portugal 2010-06-15 Tue 16:00   
 ** Brazil - Korea DPR2010-06-15 Tue 20:30   
 ** Brazil - C??te d'Ivoire2010-06-20 Sun 20:30   
 ** Portugal   - Korea DPR2010-06-21 Mon 13:30   
 ** Korea DPR  - C??te d'Ivoire2010-06-25 Fri 16:00   
 ** Portugal   - Brazil   2010-06-25 Fri 16:00   
 
 * Group H:H:
 ** Honduras   - Chile2010-06-16 Wed 13:30   
 ** Spain  - Switzerland  2010-06-16 Wed 16:00   
 ** Chile  - Switzerland  2010-06-21 Mon 16:00   
 ** Spain  - Honduras 2010-06-21 Mon 20:30   
 ** Chile  - Spain2010-06-25 Fri 20:30   
 ** Switzerland- Honduras 2010-06-25 Fri 20:30   
 
 * 8th Finals  :8F:
 ** M1: 1A - 2B 2010-06-26 Sat 16:00
 ** M3: 1C - 2D 2010-06-26 Sat 20:30
 ** M4: 1D - 2C 2010-06-27 Sun 16:00
 ** M2: 1B - 2A 2010-06-27 Sun 20:30
 ** M5: 1E - 2F 2011-06-27 Mon 16:00
 ** M7: 1G - 2H 2010-06-28 Mon 20:30
 ** M6: 1F - 2E 2011-06-28 Tue 16:00
 ** M8: 1H - 2G 2010-06-29 Tue 20:30
 
 
 * Quarterfinals   

Re: [Orgmode] For Org-mode on the go?

2010-06-07 Thread Torsten Wagner

I would be careful about that.
The price is nice but the question is how well the hardware works with a 
real open standard linux system.
I have an zaurus from sharp, which comes close to the nanonote. However, 
if I not go to use one of the heavy patched 2.4 kernels from sharp, 
suspend and resume is not working and the device hangs up.
That makes it rather useless since I don't want to power on and shutdown 
the device to add a note to org-mode and the 2.4 linux branch from sharp 
does not contain emacs.
Furtermore, I own a ebook-reader from a chinese manufacture and looking 
at the linux OS showed me that they really mess up many many things to 
bend it to working. Guess they are not really taking care of standards 
or of further user-based upgrades.


Thus, my suggestion please find out how well the hardware runs on 
GNU/Linux standard kernels and distributions (e.g., debian). If you know 
please report :D


Just my experience from some own org-mode on the go experiments.

Bye
Totti

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