Re: [Orgmode] [babel] feature request - tangle-and-evaluate-tangled-file

2010-07-21 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Eric


On 21/07/2010 00:41, Eric Schulte wrote:
 Hi Rainer,
 
 I see the problem.  When ess-load-file is called an even number of
 times, it results in flip-flopped buffers.  I'm not sure of a good

Thanks for the clarification.

 solution here, aside from possibly tangling to a 3rd file, e.g.
 
 #+begin_src R :tangle /tmp/nothing.R
  y - 9
 #+end_src
 
 to ensure a good final balance.  Alternately you could try wrapping the
 ess-load-file call in save-window-excursion, which will inhibit it's
 ability to change buffers -- and result in the *R* window taking over
 your frame.
 
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (save-window-excursion (ess-load-file 
 (buffer-file-name)
 #+end_src
 
 Sorry I can't be of more help.

No problem - now I know where the problem is sitting and I might be able
to work around it.

Just an idea: if I could put an if statement in the hook, so that only
when the buffer-file-name is a specific name, ess-load-file is called, I
assume that it should work?
I'll try that one out as well.

Cheers and thanks,

Rainer


 
 Best -- Eric
 
 Rainer M Krug r.m.k...@gmail.com writes:
 
 Hi Eric

 I just discovered a switching of buffers when tangling the following
 org file with the new org-babel-post-tangle-hook.

 Otherwise it is working perfectly now.


 #
 ** tangle R and load
   :PROPERTIES:
   :tangle:   to-load.r
   :END:

 evaluate this
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (ess-load-file (buffer-file-name
 #+end_src

 then tangle

 #+begin_src R :comments yes
  x - 8
 #+end_src
 t
 #+begin_src R
  y - 9
 #+end_src

 #+begin_src R :tangle file2.R
  y - 9
 #+end_src

 A second buffer will open with the R session.
 If you tangle a second time, these buffers are switching, i.e. where the
 .org buffer was is the R buffer and vice-versa.
 #


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxGoIUACgkQoYgNqgF2egq6/ACfWV1cv1tu1wlbsYH7oWubovwE
WBkAn3/8N1CSEsY5L8lvLwUxllUEPw+u
=RRhh
-END PGP SIGNATURE-

___
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] patch: add event reminders to iCalendar export

2010-07-21 Thread Carsten Dominik

Hi Eric,

this code is not in Org mode.

Thanks!

- Carsten

On Jul 11, 2010, at 12:26 AM, Eric S Fraga wrote:


Carsten et al.,

Okay, I've tried following the instructions for submitting patches.
I've learned more git than I thought I needed the past few days... ;-)

Anyway, I've uploaded my changes to

git://github.com/ericsfraga/esf-org.git

under branch icalalarm assuming I've done things correctly.  Please
do let me know if I should have done anything differently.

The changes are to allow timed events exported with an alarm reminder
if the variable org-icalendar-alarm-time is non-zero (defaults to 0 so
that default behaviour remains as it was before).

Thanks,
eric
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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] [babel] feature request - tangle-and-evaluate-tangled-file

2010-07-21 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/07/2010 09:23, Rainer M Krug wrote:
 Hi Eric
 
 
 On 21/07/2010 00:41, Eric Schulte wrote:
 Hi Rainer,
 
 I see the problem.  When ess-load-file is called an even number of
 times, it results in flip-flopped buffers.  I'm not sure of a good
 
 Thanks for the clarification.
 
 solution here, aside from possibly tangling to a 3rd file, e.g.
 
 #+begin_src R :tangle /tmp/nothing.R
  y - 9
 #+end_src
 
 to ensure a good final balance.  Alternately you could try wrapping the
 ess-load-file call in save-window-excursion, which will inhibit it's
 ability to change buffers -- and result in the *R* window taking over
 your frame.
 
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (save-window-excursion (ess-load-file 
 (buffer-file-name)
 #+end_src
 
 Sorry I can't be of more help.
 
 No problem - now I know where the problem is sitting and I might be able
 to work around it.
 
 Just an idea: if I could put an if statement in the hook, so that only
 when the buffer-file-name is a specific name, ess-load-file is called, I
 assume that it should work?
 I'll try that one out as well.

It seems, that it has nothing to do with ess-load-file. I'll send you
the file I am working on directly, as it is quite longish.

Cheers,

Rainer


 
 Cheers and thanks,
 
 Rainer
 
 
 
 Best -- Eric
 
 Rainer M Krug r.m.k...@gmail.com writes:
 
 Hi Eric

 I just discovered a switching of buffers when tangling the following
 org file with the new org-babel-post-tangle-hook.

 Otherwise it is working perfectly now.


 #
 ** tangle R and load
   :PROPERTIES:
   :tangle:   to-load.r
   :END:

 evaluate this
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (ess-load-file (buffer-file-name
 #+end_src

 then tangle

 #+begin_src R :comments yes
  x - 8
 #+end_src
 t
 #+begin_src R
  y - 9
 #+end_src

 #+begin_src R :tangle file2.R
  y - 9
 #+end_src

 A second buffer will open with the R session.
 If you tangle a second time, these buffers are switching, i.e. where the
 .org buffer was is the R buffer and vice-versa.
 #
 
 

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxGppYACgkQoYgNqgF2egomWQCghaDjANwwLdY3UJZGTwvxMLAJ
sAkAoIgWdlbBAttshxWpJXDn8K7tQMgN
=8NKQ
-END PGP SIGNATURE-

___
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] [babel] feature request - tangle-and-evaluate-tangled-file

2010-07-21 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/07/2010 09:49, Rainer M Krug wrote:
 On 21/07/2010 09:23, Rainer M Krug wrote:
 Hi Eric
 
 
 On 21/07/2010 00:41, Eric Schulte wrote:
 Hi Rainer,
 
 I see the problem.  When ess-load-file is called an even number of
 times, it results in flip-flopped buffers.  I'm not sure of a good
 
 Thanks for the clarification.
 
 solution here, aside from possibly tangling to a 3rd file, e.g.
 
 #+begin_src R :tangle /tmp/nothing.R
  y - 9
 #+end_src
 
 to ensure a good final balance.  Alternately you could try wrapping the
 ess-load-file call in save-window-excursion, which will inhibit it's
 ability to change buffers -- and result in the *R* window taking over
 your frame.
 
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (save-window-excursion (ess-load-file 
 (buffer-file-name)
 #+end_src
 
 Sorry I can't be of more help.
 
 No problem - now I know where the problem is sitting and I might be able
 to work around it.
 
 Just an idea: if I could put an if statement in the hook, so that only
 when the buffer-file-name is a specific name, ess-load-file is called, I
 assume that it should work?
 I'll try that one out as well.
 
 It seems, that it has nothing to do with ess-load-file. I'll send you
 the file I am working on directly, as it is quite longish.

I managed to reproduce the problem with the following org file:



** tangle R and load
  :PROPERTIES:
  :tangle:   to-load.r
  :END:

evaluate this
#+begin_src emacs-lisp :results silent :tangle no
  (add-hook 'org-babel-post-tangle-hook
(lambda () (message I'm in %s (buffer-file-name
#+end_src

then tangle

#+begin_src R :comments yes
 x - 8
#+end_src

#+begin_src R
 y - 9
#+end_src

#+begin_src R :tangle file2.R
 y - 9
#+end_src


What I did:

1) Opened a file containing the text above
2) evaluated the lisp code to set the hook
3) C-x 2 to create a second buffer which shows the same file
4) go to the top buffer and C-c C-v t to tangle
- - The top window is switching to a different buffer
5) reproducible here.

6) If I open to-load.r but make sure that both windows are displaying
the .org buffer, it doesn't happen - only that the second buffer is
switching to to-load.r

7) if to-load.r is not visited by a buffer but file2.R is, the switching
is there again.

Hope this helps,

Rainer


 
 Cheers,
 
 Rainer
 
 
 
 Cheers and thanks,
 
 Rainer
 
 
 
 Best -- Eric
 
 Rainer M Krug r.m.k...@gmail.com writes:
 
 Hi Eric

 I just discovered a switching of buffers when tangling the following
 org file with the new org-babel-post-tangle-hook.

 Otherwise it is working perfectly now.


 #
 ** tangle R and load
   :PROPERTIES:
   :tangle:   to-load.r
   :END:

 evaluate this
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (ess-load-file (buffer-file-name
 #+end_src

 then tangle

 #+begin_src R :comments yes
  x - 8
 #+end_src
 t
 #+begin_src R
  y - 9
 #+end_src

 #+begin_src R :tangle file2.R
  y - 9
 #+end_src

 A second buffer will open with the R session.
 If you tangle a second time, these buffers are switching, i.e. where the
 .org buffer was is the R buffer and vice-versa.
 #
 
 
 

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxGqzUACgkQoYgNqgF2ego8igCggpPRsoeA6x9PzY+E3bMaG8lg
gK0AnRn8nl1nj7vcWyO05jHgtUF3kMML
=HsUM
-END PGP SIGNATURE-

___
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] orgmode html export uses wrong browser

2010-07-21 Thread Vikas Rawal
From org, when I export an org buffer to html and open in browser
(using C-c C-e b), it opens epiphany web browser. On the other, if I
open a url from within orgmode, the urls are opened in firefox. How
can I change the browser that is used for viewing the exported html
files?

I am using debian sid, emacs23 and org 7.01.

Thanks,

Vikas

___
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-timeline and diary/calendar

2010-07-21 Thread Carsten Dominik


On Jul 20, 2010, at 11:15 PM, Martin Steffen wrote:




Hi,

is there a way to include diary entries (i.e., entries in an
emacs-calendar file) into the org timeline?


No, there is not.  The time line is just for one individual buffer.

One way around this would be to make an agenda for just the current  
buffer, with

C-c a  a

HTH

- Carsten




I have set

  (setq org-agenda-include-diary t)


which incluse the diary to the agenda-day view; but it seems that in  
the

timeline it is not included.


Thanks, Martin




___
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] Re: orgmode html export uses wrong browser

2010-07-21 Thread Noorul Islam K M
Vikas Rawal vikasli...@agrarianresearch.org writes:

 From org, when I export an org buffer to html and open in browser
 (using C-c C-e b), it opens epiphany web browser. On the other, if I
 open a url from within orgmode, the urls are opened in firefox. How
 can I change the browser that is used for viewing the exported html
 files?

 I am using debian sid, emacs23 and org 7.01.

I am using Debian Lenny, Emacs 23 and Org 7.01 and I have the following
in my .emacs

(setq browse-url-browser-function (quote browse-url-generic))
(setq browse-url-generic-program google-chrome)

For me, following your exact steps, opens google-chrome.

Thanks and Regards
Noorul

___
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] inline image with link to other than images in html export?

2010-07-21 Thread Carsten Dominik


On Jul 20, 2010, at 8:08 PM, Xiao-Yong Jin wrote:


Hi,

So the following can be used to show a thumbnail which links
to another image when exporting to html.

 [[file:highres.jpg][file:thumb.jpg]]

Is it possible for the link not to be restricted to image
files only?  Such that the following

 [[OTHER LINK][file:image.jpg]]



 [[http://google.org][file:image.jpg]]

for example?  Works just fine here...

- Carsten


would produce a link to OTHER LINK on the inlined image.jpg
when exported to html.


Thanks,
Xiao-Yong
--
Jc/*__o/*
X\ * (__
Y*/\  

___
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] Re: patch: add event reminders to iCalendar export

2010-07-21 Thread Bernt Hansen
Carsten Dominik carsten.domi...@gmail.com writes:

 this code is not in Org mode.
   now
   ^^^

-Bernt

___
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] Some problems with times in a spreadsheet

2010-07-21 Thread Cecil Westerhof
I have the following table:
|---+-++|
|   | Day | ProjectA   | ProjectB   |
|---+-++|
|   |  14 | 1@ 00' | 1@ 45' |
|   |  15 | 0@ 30' | 3@ 35' |
|   |  16 | 0@ 45' | 1@ 00' |
|   |  17 | 3@ 10' | 2@ 45' |
|   |  18 | 1@ 55' | 0@ 35' |
|   |  19 | 5@ 25' | 7@ 25' |
|   |  20 | 3@ 30' | 1@ 00' |
|---+-++|
| # | Total hours | 16@ 15' 0 | 18@ 5' 0  |
| ^ | | totalTime1 | totalTime2 |
|---+-++|
#+TBLFM: $totalTime1=vsum(@-i...@-i); f2 :: $totalTime2=vsum(@-i...@-i); f2

The string '0 @ 30' says that there were 0 hours and 30 minutes.

I have several problems here.

First of all I would like to see 16.25 instead of 16@ 15' 0. Is this
possible?

Secondly I have to define the formula for each project. In this case
there are only two, but when there are fifteen then it becomes a pain.
Is there a way to use just one formula?

When displaying with minutes instead of as a floating point number, is
it possible to display it without seconds? Instead of 16@ 15' 0 I would
like to get 16@ 15'.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

___
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] Minor Bug in ical2org awk script

2010-07-21 Thread Sven Bretfeld
Hi all, hi Eric

Eric Fraga's wonderful awk script to export/convert googlecalendar to
orgmode contains a minor bug in creating active timestamps. A date like
21.7.2010, 14-15 will be converted to

2010-07-21 14:00-15:00

What is missing here is the day of the week. It should be (in German):

2010-07-21 Mi 14:00-15:00

That is not a problem for Orgmode which doesn't need the day of the week
to display the entry correctly. But it's a problem for iCal-export. If
you import this date into googlecalendar without manually fixing the
weekday information, GoogleCalendar doesn't display the date correctly
but handles it as a whole-day-entry (i.e. without the time
information). I know the shortcoming is actually an iCal.el matter, but
it could be fixed on the awk script level, I think.

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


Re: [Orgmode] Patchwork: Patch 138 Accepted

2010-07-21 Thread Carsten Dominik


On Jul 16, 2010, at 5:22 PM, Samuel Wales wrote:


gmail threads by subject line only.


I did not know this - and I am interested to see if my new messages  
will be threaded correctly by GMail.



- 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] links and ID properties

2010-07-21 Thread Carsten Dominik


On Jul 14, 2010, at 7:50 PM, Eric Abrahamsen wrote:


In addition to using org-mode for scheduling and email integration and
all that, I've had great success setting up a translation environment
I'm finally pleased with. I keep vocabulary items in a separate file,
and then create links from vocabulary items into the actual text I'm
translating.

I've switched computers recently and in the process something has gone
wrong with the vocab links. So far as I know, org-link-to-org-use-id  
has
always had its default value of create-if-interactive-and-no-custom- 
id,

but now calling org-store-link no longer creates an ID property on the
target headline (there's no custom id).


It does for me.



Furthermore, the following the links from the text back into the
vocabulary file won't find the right targets: following links that I
created before I moved computers (when it still created the ID  
property)

say no match for the link (though the ID value is correct for both
target and link), and new links I've made (where no ID is created),  
just

find the top of the vocabulary file, not the actual vocabulary item (a
heading) within the file.

Storing links to a particular vocab item creates a link entry like  
this:


file:~/Documents/text/vocab.org::* (综合二处)

That particular text is a third-level heading, but following this link
just puts me at the top of the file.

I was using the git head version of org on both the old machine and  
this
one, but now I'm using emacs 23.2, where I was using emacs 24. The  
vocab

file is in the same directory as the text file, but none of these are
org agenda files. I don't know what else might be causing this  
problem!



First of all, I suspect that maybe you are not running the version of  
Org-mode you think you are.

What does M-x org-version return?

Second, you can try to recreate the file that links IDs to files.   
Just load

all the relevant Org files into Emacs and then run

M-x org-id-update-id-locations RET


Does this help?

- Carsten






On a semi-related topic, I've seen a couple of threads here recently
about using links to pull content from other places into the file
containing the links -- presumably something that would happen upon
export. I think something along these lines could be very useful -- in
my case I could choose a final translation of a certain term after all
the text is translated, then when I export the text, the proper  
English

translation is substituted into all locations that link to that term.
This could also be used to create master files that pull in content
from other places: importing subtrees, or creating \input or \include
statements in the case of LaTeX export.

Presumably this would involve a new link type (say include) that
points to a file or heading. When the org file is exported, that  
file or
heading would be dragged in to replace the link text. If the heading  
to
be included had a special property (say INCLUDE_AS), the value of  
that

property would be included instead of the text of the heading.

Anyway, this is just a possibilty -- perhaps it can already be done!  
I'd

be interested in hearing what people think.

Thanks,
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


- 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] .ics export w/Alarms. Possible?

2010-07-21 Thread Daniel E. Doherty
 David == David A Gershman dagersh...@dagertech.net writes:

David Hello,

David I was wondering if there was a feature in OrgMode to provide
David 'VALARM's when exporting to .ics?

David A sample event created, for example, in Sunbird generated
David this code:

David   BEGIN:VALARM TRIGGER;VALUE=DURATION:-PT5M
David DESCRIPTION:Mozilla Alarm: Lunch w/Bob ACTION:DISPLAY
David END:VALARM

For what its worth, I vote aye on this too.  I am hacking one-way sync
with Google calander, and from there to my Windows Mobile phone.

I really want my phone to yell at me when I have an appoinment coming
up, and would like to use org mode exclusively for calendaring.  This
feature would be a really great addition to org-mode.

Regards all,

-- 


Daniel E. Doherty

Up the airy mountain,
Down the rushy glen,
We daren't go a-hunting,
For fear of little men.
  --- William Allingham (Donegal, Ireland)

___
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] Some problems with times in a spreadsheet

2010-07-21 Thread Juan
On Wed, Jul 21, 2010 at 12:33:42PM +0200, Cecil Westerhof wrote:
 | # | Total hours | 16@ 15' 0 | 18@ 5' 0  |
 | ^ | | totalTime1 | totalTime2 |
 |---+-++|
 #+TBLFM: $totalTime1=vsum(@-i...@-i); f2 :: $totalTime2=vsum(@-i...@-i); f2

 First of all I would like to see 16.25 instead of 16@ 15' 0. Is this
 possible?

Calc's deg function does this.

use deg(vsum(...)) in the formulas

Regards,
.j.

___
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: images always inlined when exporting to HTML

2010-07-21 Thread Carsten Dominik

Hi Eric, Ulf,

please pull and check if this is fixed now.

Thanks!

- Carsten

On Jul 20, 2010, at 12:27 AM, Eric S Fraga wrote:


Having seen the recent message by Ulf regarding an org-mode button, I
thought I would do a little bit of work on my web site.
Unfortunately, this has caused me a problem!

It would appear that the handling of images in HTML export has changed
sometime recently and does not match the documentation (12.5.5 Images
in HTML export).  Specifically, whether a link to an image file has a
description or not is ignored and all my images are being inlined.

Attached are a simple org file that illustrates the problem and the
resulting HTML.  I think I'm up to date with org, although the
version number I get is a bit strange:

: Org-mode version 7.01trans (release_6.36.718.g78ef)
: GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
:  of 2010-05-16 on raven, modified by Debian

Any help greatly appreciated!

Thanks,
eric
mime-attachment.txt
examplebug.org
Table of Contents
• 1 problem with html export of links to images
1 problem with html export of links to images
I often have links to images that should be inline:



An example image to be displayed on the page

and images which are  but not displayed.

  (format %s\n%s (org-version) (emacs-version))
Author: Eric S Fraga

Date: 2010.07.19 23:16:44

HTML generated by org-mode 7.01trans in emacs 23

mip.png
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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] clocktable: maximum level 0 does not only avoid listing items but also does not calculate items

2010-07-21 Thread Carsten Dominik


On Jul 13, 2010, at 11:21 AM, Rainer Stengele wrote:


Hi all!

lately I use the marvelous clocktables a lot...

For toplevel clocktables which just sum up all I use :maxlevel 0

The manual reads

:maxlevelMaximum level depth to which times are listed in the  
table.


which I misunderstood.
I understood: an unlisted item does not mean that its time is not  
added!

But it looks like :maxlevel 0 does not add everything up.



I cannot reproduce this, :maxlevel 0 works for me.



Ok, maybe the manual is a bit misleading here.



How can I get a clocktable without any details which simply adds up  
everything in the scope?


BTW, the :stepskip0 parameter does not seem to be included in the  
manual.


It is in the manual.

- Carsten



Rainer



___
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] .ics export w/Alarms. Possible?

2010-07-21 Thread Giovanni Ridolfi
Daniel E. Doherty ddohert...@gmail.com writes:

 David == David A Gershman dagersh...@dagertech.net writes:

 David Hello,

 David I was wondering if there was a feature in OrgMode to provide
 David 'VALARM's when exporting to .ics?

I think it has already been implemented: 

6 hours ago Eric S FragaiCalendar export: Implement alarms

http://repo.or.cz/w/org-mode.git/commitdiff/2c31a3b00aa1572f1c34ae37f7fc97f7ed4cd0e1

pull the git version or download the latest org:

http://orgmode.org/org-latest.zip
http://orgmode.org/org-latest.tar.gz

cheers,
Giovanni, who was thinking to implement it ;-) 

___
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: skip entry with inherited tags

2010-07-21 Thread Carsten Dominik

Hi Martin,

I just looked at your patch.

If I have a normal agenda (i.e. *not* a block agenda), then your
patch will cause the preset filter *not* to be applied.

- Carsten

On Jul 13, 2010, at 10:34 PM, Martin Pohlack wrote:


Hi Carsten and Matt,

On 13.07.2010 20:48, Carsten Dominik wrote:

On Jul 13, 2010, at 7:41 PM, Martin Pohlack wrote:

Hard to respond to this vague situation :-).

It would be great if you could point me at more specific situations
that
might break or if others could test the patch.  I have been using it
for
more than a month now without problems.


The specific one I meant is if you use r or g to rebuild the agenda,
if you do something like a refile command which does an automatic
rebuild,
do you get back the view you expected?


Yes, I regularly use 'r'.  It works for me.  Refiling a single entry  
did

not show a problem.

Also, if you apply other filter commands, either with /, or  
narrowing
the filter with /, does that give the expected results while you  
are

in your block agenda?


I quickly applied a tag filter using '/' 'tab'.  Only the relevant
entries were shown.  Some block agendas become empty as expected.
Clearing the filter restores the expected full view.

I am not entirely sure that the patch does not have problems though.

Matt: could you give the patch a quick test at your end?


I will only be able to study this more closely after the release.


Take your time, I will wait for more details to emerge or feedback
from
other testers.

One more note here: The current situation for block agendas is a bit
problematic as their limitations are not documented afaik.

Writing custom agendas is not easy in itself.  If things don't work,
it
is really hard to distinguish between driver errors and  
limitations of

the block agendas.


Do you have suggestions on how to improve the situation?


* Well, the best thing to do would be to remove the limitations of the
 block agendas, obviously :-), which I hope this patch does.

* The second best thing is to document them.

I am aware of this tag filter limitation, but no others from the top  
of

my head.  Do others know more?

Cheers,
Martin


- 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] Re: orgmode html export uses wrong browser

2010-07-21 Thread Vikas Rawal

 
 I am using Debian Lenny, Emacs 23 and Org 7.01 and I have the following
 in my .emacs
 
 (setq browse-url-browser-function (quote browse-url-generic))
 (setq browse-url-generic-program google-chrome)
 


The problem, somehow, had to do with the default gnome browser.

Changed it to firefox with 

update-alternatives --config gnome-www-browser

And then orgmode export users firefox.

But if I want to use conkeror as gnome-www-browser, I
can't. update-alternatives does not give conkeror as an
option. Manually creating the link does not help either.

Vikas 

___
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] inline image with link to other than images in html export?

2010-07-21 Thread Xiao-Yong Jin
On Wed, 21 Jul 2010 11:41:55 +0200, Carsten Dominik wrote:

 On Jul 20, 2010, at 8:08 PM, Xiao-Yong Jin wrote:

 Hi,
 
 So the following can be used to show a thumbnail which links
 to another image when exporting to html.
 
 [[file:highres.jpg][file:thumb.jpg]]
 
 Is it possible for the link not to be restricted to image
 files only?  Such that the following
 
 [[OTHER LINK][file:image.jpg]]
 

  [[http://google.org][file:image.jpg]]

 for example?  Works just fine here...

 - Carsten

I'm sorry.  Please ignore my previous post.  Apparently an
emacs instance on one of my servers does not have the latest
org-mode loaded properly.  Just tried on my laptop and it
works perfectly with 7.01.

-- 
Jc/*__o/*
X\ * (__
Y*/\  

___
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: links and ID properties

2010-07-21 Thread Eric Abrahamsen
Carsten Dominik carsten.domi...@gmail.com writes:

 On Jul 14, 2010, at 7:50 PM, Eric Abrahamsen wrote:

 In addition to using org-mode for scheduling and email integration and
 all that, I've had great success setting up a translation environment
 I'm finally pleased with. I keep vocabulary items in a separate file,
 and then create links from vocabulary items into the actual text I'm
 translating.

 I've switched computers recently and in the process something has gone
 wrong with the vocab links. So far as I know, org-link-to-org-use-id
 has
 always had its default value of create-if-interactive-and-no-custom-
 id,
 but now calling org-store-link no longer creates an ID property on the
 target headline (there's no custom id).

 It does for me.


[...]



 First of all, I suspect that maybe you are not running the version of
 Org-mode you think you are.
 What does M-x org-version return?

 Second, you can try to recreate the file that links IDs to files.
 Just load
 all the relevant Org files into Emacs and then run

 M-x org-id-update-id-locations RET

After tracking down that command, It seems the only problem is that I
didn't have org-id in org-modules. I don't think I've ever had it in
there (did it use to get loaded by default?), but adding it solved my
problems.

Thanks!
Eric



 Does this help?

 - Carsten



 

 On a semi-related topic, I've seen a couple of threads here recently
 about using links to pull content from other places into the file
 containing the links -- presumably something that would happen upon
 export. I think something along these lines could be very useful -- in
 my case I could choose a final translation of a certain term after all
 the text is translated, then when I export the text, the proper
 English
 translation is substituted into all locations that link to that term.
 This could also be used to create master files that pull in content
 from other places: importing subtrees, or creating \input or \include
 statements in the case of LaTeX export.

 Presumably this would involve a new link type (say include) that
 points to a file or heading. When the org file is exported, that
 file or
 heading would be dragged in to replace the link text. If the heading
 to
 be included had a special property (say INCLUDE_AS), the value of
 that
 property would be included instead of the text of the heading.

 Anyway, this is just a possibilty -- perhaps it can already be done!
 I'd
 be interested in hearing what people think.

 Thanks,
 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

 - 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


___
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: images always inlined when exporting to HTML

2010-07-21 Thread Eric S Fraga
On Wed, 21 Jul 2010 16:06:59 +0200, Carsten Dominik carsten.domi...@gmail.com 
wrote:
 
 Hi Eric, Ulf,
 
 please pull and check if this is fixed now.
 
 Thanks!
 
 - Carsten

Definitely fixed!  Thanks.  My work web pages are now back to what they
should be :-)
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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: orgmode html export uses wrong browser

2010-07-21 Thread Vikas Rawal

 But if I want to use conkeror as gnome-www-browser, I
 can't. update-alternatives does not give conkeror as an
 option. Manually creating the link does not help either.

Sorry, I need to correct myself. Manually creating the link does work.

Conkeror is now the default browser.

Vikas

___
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] .ics export w/Alarms. Possible?

2010-07-21 Thread Eric S Fraga
On Wed, 21 Jul 2010 16:27:40 +0200, Giovanni Ridolfi 
giovanni.rido...@yahoo.it wrote:
 
 Daniel E. Doherty ddohert...@gmail.com writes:
 
  David == David A Gershman dagersh...@dagertech.net writes:
 
  David Hello,
 
  David I was wondering if there was a feature in OrgMode to provide
  David 'VALARM's when exporting to .ics?
 
 I think it has already been implemented: 
 
 6 hours ago   Eric S FragaiCalendar export: Implement alarms
 
 http://repo.or.cz/w/org-mode.git/commitdiff/2c31a3b00aa1572f1c34ae37f7fc97f7ed4cd0e1
 
 pull the git version or download the latest org:

and then make sure you set the variable org-icalendar-alarm-time to
the number of minutes which should be used for any exported timed
event.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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] Minor Bug in ical2org awk script

2010-07-21 Thread Eric S Fraga
On 21 Jul 2010 12:39:50 +0200, Sven Bretfeld sven.bretf...@gmx.ch wrote:
 
 Hi all, hi Eric
 
 Eric Fraga's wonderful awk script to export/convert googlecalendar to
 orgmode contains a minor bug in creating active timestamps. A date like
 21.7.2010, 14-15 will be converted to
 
 2010-07-21 14:00-15:00
 
 What is missing here is the day of the week. It should be (in German):
 
 2010-07-21 Mi 14:00-15:00

Sven,

attached is an updated awk script which should do what you want.
Please test it out as it should be generic (with respect to locale).

I hadn't done this originally because the way I was creating the time
stamps was rather clumsy.  As I'm now using strftime in awk, adding
the day of the week was trivial...

eric
# awk script for converting an iCal formatted file to a sequence of org-mode 
headings.
# this may not work in general but seems to work for day and timed events from 
Google's
# calendar, which is really all I need right now...
#
# usage:
#   awk -f THISFILE  icalinputfile.ics  orgmodeentries.org
#
# Note: change org meta information generated below for author and
# email entries!
#
# Known bugs:
# - not so much a bug as a possible assumption: date entries with no time
#   specified are assumed to be independent of the time zone.
#
# Eric S Fraga
# 20100629 - initial version
# 20100708 - added end times to timed events
#  - adjust times according to time zone information
#  - fixed incorrect transfer for entries with : embedded within the 
text
#  - added support for multi-line summary entries (which become 
headlines)
# 20100709 - incorporated time zone identification
#  - fixed processing of continuation lines as Google seems to
#have changed, in the last day, the number of spaces at
#the start of the line for each continuation...
#  - remove backslashes used to protect commas in iCal text entries
#
# Last change: 2010.07.21 17:03:01
#--

# a function to take the iCal formatted date+time, convert it into an
# internal form (seconds since time 0), and adjust according to the
# local time zone (specified by +-seconds calculated in the BEGIN
# section)

function datetimestamp(input)
{
# convert the iCal Date+Time entry to a format that mktime can understand
datespec = 
gensub(([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])T([0-9][0-9])([0-9][0-9])([0-9][0-9]).*[\r]*,
 \\1 \\2 \\3 \\4 \\5 \\6, g, input);
# print date spec :  datespec; convert this date+time into
# seconds from the beginning of time and include adjustment for
# time zone, as determined in the BEGIN section below.  For time
# zone adjustment, I have not tested edge effects, specifically
# what happens when UTC time is a different day to local time and
# especially when an event with a duration crosses midnight in UTC
# time.  It should work but...
timestamp = mktime(datespec) + seconds;
# print adjusted:  timestamp
# print Time stamp  :  strftime(%Y-%m-%d %H:%M, timestamp);
return timestamp;
}

BEGIN {
# use a colon to separate the type of data line from the actual contents
FS = :;

# determine the number of seconds to use for adjusting for time
# zone difference from UTC.  This is used in the function
# datetimestamp above.  The time zone information returned by
# strftime() is in hours * 100 so we multiply by 36 to get
# seconds.  This does not work for time zones that are not an
# integral multiple of hours (e.g. Newfoundland)
seconds = gensub(([+-])0, \\1, , strftime(%z)) * 36;

date = ;
entry = 
first = 1;  # true until an event has been found
headline = 
icalentry =   # the full entry for inspection
id = 
indescription = 0;
time2given = 0;

print #+TITLE: Main Google calendar entries
print #+AUTHOR:Eric S Fraga
print #+EMAIL: e.fr...@ucl.ac.uk
print #+DESCRIPTION: converted using the ical2org awk script
print #+CATEGORY: google
print  
}

# continuation lines (at least from Google) start with two spaces
# if the continuation is after a description or a summary, append the entry
# to the respective variable

/^[ ]+/ { 
if (indescription) {
entry = entry gensub(\r, , g, gensub(^[ ]+, , , $0));
} else if (insummary) {
summary = summary gensub(\r, , g, gensub(^[ ]+, , , $0))
}
icalentry = icalentry \n $0
}

/^BEGIN:VEVENT/ {
# start of an event.  if this is the first, output the preamble from the 
iCal file
if (first) {
print * COMMENT original iCal preamble
print gensub(\r, , g, icalentry)
icalentry = 
}
first = false;
}
# any line that starts at the left with a non-space character is a new data 
field

/^[A-Z]/ {
# we ignore DTSTAMP lines as they change every time you download
# the iCal format file which leads to a 

Re: [Orgmode] [babel] feature request - tangle-and-evaluate-tangled-file

2010-07-21 Thread Eric Schulte
Hi Rainer,

Thanks for your patience and persistence.  I've pushed up what I believe
should be a fix for this excess buffer movement.  There still may be
some issues with things like ess-load-file, but those can now optionally
be squashed by wrapping your hook functions with `save-window-excursion'
as shown.

#+begin_src emacs-lisp :results silent :tangle no
  (add-hook 'org-babel-post-tangle-hook
(lambda () (save-window-excursion
(ess-load-file (buffer-file-name)
#+end_src

Best -- Eric

Rainer M Krug r.m.k...@gmail.com writes:

 On 21/07/2010 09:49, Rainer M Krug wrote:
 On 21/07/2010 09:23, Rainer M Krug wrote:
 Hi Eric
 
 
 On 21/07/2010 00:41, Eric Schulte wrote:
 Hi Rainer,
 
 I see the problem.  When ess-load-file is called an even number of
 times, it results in flip-flopped buffers.  I'm not sure of a good
 
 Thanks for the clarification.
 
 solution here, aside from possibly tangling to a 3rd file, e.g.
 
 #+begin_src R :tangle /tmp/nothing.R
  y - 9
 #+end_src
 
 to ensure a good final balance.  Alternately you could try wrapping the
 ess-load-file call in save-window-excursion, which will inhibit it's
 ability to change buffers -- and result in the *R* window taking over
 your frame.
 
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (save-window-excursion (ess-load-file 
 (buffer-file-name)
 #+end_src
 
 Sorry I can't be of more help.
 
 No problem - now I know where the problem is sitting and I might be able
 to work around it.
 
 Just an idea: if I could put an if statement in the hook, so that only
 when the buffer-file-name is a specific name, ess-load-file is called, I
 assume that it should work?
 I'll try that one out as well.
 
 It seems, that it has nothing to do with ess-load-file. I'll send you
 the file I am working on directly, as it is quite longish.

 I managed to reproduce the problem with the following org file:


 
 ** tangle R and load
   :PROPERTIES:
   :tangle:   to-load.r
   :END:

 evaluate this
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (message I'm in %s (buffer-file-name
 #+end_src

 then tangle

 #+begin_src R :comments yes
  x - 8
 #+end_src

 #+begin_src R
  y - 9
 #+end_src

 #+begin_src R :tangle file2.R
  y - 9
 #+end_src
 

 What I did:

 1) Opened a file containing the text above
 2) evaluated the lisp code to set the hook
 3) C-x 2 to create a second buffer which shows the same file
 4) go to the top buffer and C-c C-v t to tangle
 - The top window is switching to a different buffer
 5) reproducible here.

 6) If I open to-load.r but make sure that both windows are displaying
 the .org buffer, it doesn't happen - only that the second buffer is
 switching to to-load.r

 7) if to-load.r is not visited by a buffer but file2.R is, the switching
 is there again.

 Hope this helps,

 Rainer


 
 Cheers,
 
 Rainer
 
 
 
 Cheers and thanks,
 
 Rainer
 
 
 
 Best -- Eric
 
 Rainer M Krug r.m.k...@gmail.com writes:
 
 Hi Eric

 I just discovered a switching of buffers when tangling the following
 org file with the new org-babel-post-tangle-hook.

 Otherwise it is working perfectly now.


 #
 ** tangle R and load
   :PROPERTIES:
   :tangle:   to-load.r
   :END:

 evaluate this
 #+begin_src emacs-lisp :results silent :tangle no
   (add-hook 'org-babel-post-tangle-hook
 (lambda () (ess-load-file (buffer-file-name
 #+end_src

 then tangle

 #+begin_src R :comments yes
  x - 8
 #+end_src
 t
 #+begin_src R
  y - 9
 #+end_src

 #+begin_src R :tangle file2.R
  y - 9
 #+end_src

 A second buffer will open with the R session.
 If you tangle a second time, these buffers are switching, i.e. where the
 .org buffer was is the R buffer and vice-versa.
 #
 
 
 

___
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] [babel] Re: org-babel and OCaml - help?

2010-07-21 Thread Erik L. Arneson
Eric Schulte schulte.e...@gmail.com writes:
 dyb...@lnouv.com (Erik L. Arneson) writes:
 Great, I will start hacking away at it.  What's the process I need to go
 through to sign FSF papers?

 See http://orgmode.org/worg/org-contribute.php#sec-2 for information on
 FSF copyright assignment.

I've submitted the paperwork, so now I'm just waiting to hear back from
them.  I'm still curious, though, as to how much you'd like me to change the
back-end behavior (i.e. the generated OCaml code and the way return
values are read) before checking with the community for their thoughts
and such.

The first table I tried to test on looked something like this:

--8---cut here---start-8---
#+tblname: test
| John | 5 | 1.02 |
| Mary | 6 | 9.00 |
| Bob  | 7 | 0.50 |
--8---cut here---end---8---

With the patch you recently submitted, this makes an invalid array of
arrays in OCaml, so that's why I was thinking it should generate an
array of tuples instead, so the output might look like this:

--8---cut here---start-8---
let test = 
  [| (John, 5, 1.02);
 (Mary, 6, 9.00);
 (Bob, 7, 0.50) |]
--8---cut here---end---8---

It doesn't seem like many people are using ob-ocaml.el yet, so I can
probably just make that change, document it, and then hope for the best,
right?

-- 
Erik Arneson dyb...@lnouv.com
  GPG Key ID: 1024D/62DA1D25
  Office: +1.541.291.9776
  Skype: callto://pymander


___
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: links and ID properties

2010-07-21 Thread Carsten Dominik


On Jul 21, 2010, at 5:55 PM, Eric Abrahamsen wrote:


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


On Jul 14, 2010, at 7:50 PM, Eric Abrahamsen wrote:

In addition to using org-mode for scheduling and email integration  
and
all that, I've had great success setting up a translation  
environment
I'm finally pleased with. I keep vocabulary items in a separate  
file,

and then create links from vocabulary items into the actual text I'm
translating.

I've switched computers recently and in the process something has  
gone

wrong with the vocab links. So far as I know, org-link-to-org-use-id
has
always had its default value of create-if-interactive-and-no-custom-
id,
but now calling org-store-link no longer creates an ID property on  
the

target headline (there's no custom id).


It does for me.



[...]




First of all, I suspect that maybe you are not running the version of
Org-mode you think you are.
What does M-x org-version return?

Second, you can try to recreate the file that links IDs to files.
Just load
all the relevant Org files into Emacs and then run

M-x org-id-update-id-locations RET


After tracking down that command, It seems the only problem is that I
didn't have org-id in org-modules. I don't think I've ever had it in
there (did it use to get loaded by default?), but adding it solved my
problems.


I have just added and autoload for org-id-store-link.  I guess if you  
use


(setq org-link-to-org-use-id 'create-if-interactive-and-no-custom- 
id)


(which is the default), then org-id should be autoloaded.

- 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] Re: Behavior of Gnus when called from an hyperlink

2010-07-21 Thread Sébastien Vauban
Hi Bernt,

Bernt Hansen wrote:
 Sébastien Vauban writes:
 David Maus wrote:
 Tassilo Horn wrote:
 [...@mundaneum] /nc -vv mail imap

 Did twice the same request. Did take twice 5 mins...

 In my case, the culprit seems well to be our mail server, then.

 Maybe a problem is that I keep all of my emails (but the spams...) since the
 beginning: now, over 140,000 emails entered my INBOX -- only the spams left
 it.

 What would be your pieces of advice in such a case? Do I need to test
 something extra? Get a local imap server? Others (like asking for fixing the
 search on our Courier mail server)?

 I have an IMAP server on my local 100MB/sec network and one of my (spam)
 folders has 148200 messages in it. If I link to one of those messages in
 Gnus, close Gnus, and access the link from org-mode it finds the email in 13
 seconds (8 seconds if Gnus is already open which is how I normally leave it
 running)

 If you are accessing your mail server on a slower network then that will
 adversely affect your response times.

I'm using a 100 Mbps network as well. That does not seem to be the problem,
and as stated by Tassilo, only one request is made...


 Mirroring your mail server with offline imap or some other tool and linking
 to the local mirror might help your access times. I've never used that
 myself but others have reported success with this.

I am (or was) a bit reluctant about this, as I always try (or tried) to have
portable solutions that my colleagues can use on Windows. Some of them use my
.emacs file, just changing user-name variables and some such. Same for my
.gnus file.

Installing local imap servers only running on Ubuntu is thus inserting a
difference that others won't be able to match. But if that's the way to go.

Bernt, what's your IMAP server, by the way?

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: Behavior of Gnus when called from an hyperlink

2010-07-21 Thread Sébastien Vauban
Hi Tassilo,

Tassilo Horn wrote:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 My main account uses Courier on Debian, too and search for a particular
 message id within ~7000 messages is quite fast.

 In my case, the culprit seems well to be our mail server, then.

 Yes, but not you've learned much about profiling and debugging elisp. ;-)

Oh yes. And that is really unvaluable. I can dream beginning to write my own
ELisp code, now, being able to trace and easily follow what my code would do,
without having to write (message ...) calls (with the problem that I could
not display every object value.

Thanks a lot to you all for that.


 What would be your pieces of advice in such a case? Do I need to test
 something extra? Get a local imap server? Others (like asking for fixing
 the search on our Courier mail server)?

 I'd definitively drop a mail to the admins. Searching for a message-id is
 quite a common task, so that should be as fast as possible. And I'm pretty
 sure Courier has some option to index at least the message-ids.

I'll do.

Thanks a lot for your help...

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: Tables and environment with parameters

2010-07-21 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
 On Jul 12, 2010, at 9:49 PM, Sébastien Vauban wrote:
 Carsten Dominik wrote:
 Carsten Dominik wrote:
 On Jun 28, 2010, at 4:30 PM, Sébastien Vauban wrote:
 Carsten Dominik wrote:
 On Jun 23, 2010, at 11:30 PM, Sébastien Vauban wrote:

 Since one of the last updates -- I guess --, I now have a problem
 exporting the tables: I see the meta-tags in the PDF output! Very
 new...

 Though, in the meanwhile, note that this is not as bad as it could be:
 in fact, I'd love to be able to print (when I want it, though) some of
 the table meta-information, such as table name and formulas.

 That'd be great to see that, at certain times, in the output PDF --
 would we be able to customize its font size or so.

 What do you think?

 What do you think of that idea for debugging purpose, or for giving more
 info back to the reader?

Nobody reacted on this point. Does that mean it's useless?  Or is it still a
wished feature by others?  I would love to have, in many cases, the formulas
printed in very tiny characters just below the tables. What do you all think
of this?


 What I called meta-tags are the two lines `#+ATTR_LaTeX:' and `#
 +TBLFM:' that weren't visible in the PDF before... Maybe I should say
 table properties.

 So, as I said, for checking purpose, or for giving more information
 (about the formulas) to the reader, that's no so bad to see that, when
 asked for.

 Of course, it should be formatted properly, and not interpreted as pure
 LaTeX. In my example, in the PDF, Brutes is written in subscript because
 of the underscore in front of it.

 this might have been fixed, can you please check?

 Just updated ([2010-07-12 Mon 21:38]).

 Still not OK for the tables enclosed in =org-special-blocks=, well OK for
 the other ones:

 This is now fixed, thank you for your report.

Yep, it works. Thanks a lot!!

Two remarks, though:

- the org-special-block must begin in column 0; otherwise, it fails.

- the faces applied inside the org-special-block are wrong:

--8---cut here---start-8---
There are text properties here:
  font-lock-fontified  t
  font-lock-multiline  t
  fontifiedt
  pabbrev-addedt
--8---cut here---end---8---

  The normal faces are not applied anymore for the lines ATTR_LaTeX and
  TBLNAME, among others.

  It should be:

--8---cut here---start-8---
There are text properties here:
  face org-meta-line
  font-lock-fontified  t
  fontifiedt
  pabbrev-addedt
--8---cut here---end---8---

  Example:

--8---cut here---start-8---
#+BEGIN_changemargin {-4.2cm}{0cm}
#+ATTR_LaTeX: align=lr
#+TBLNAME: Autres_Frais_Pro_FNI
|   || Invest. total (\EUR) |
|---++--|
|   | Documentation et formation |   147.50 |
|   | Publicité (site Web : DNS + hosting 3 ans) |   214.25 |
|---++--|
|   | Total  |  |
| ^ ||  |
#+END_changemargin
--8---cut here---end---8---

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: Behavior of Gnus when called from an hyperlink

2010-07-21 Thread Sébastien Vauban
Hi Tassilo,

Tassilo Horn wrote:
 Bernt Hansen be...@norang.ca writes:
 Mirroring your mail server with offline imap or some other tool and linking
 to the local mirror might help your access times.

 If Sébastien's admins tell him that they cannot get the search faster, that
 would be a good investment. I recommend Dovecot as server and OfflineIMAP
 for synchronizing the local with possibly many remote accounts/servers.
 Dovecot has plugins even to do index every mail completely, and then you can
 use Gnus' nnir backend to perform searches for arbitrary text in the mails
 (including text in the bodies) in nearly instant time.

 But of course, that adds another layer of indirection requiring some
 configs. IMO, when you often rename/create/delete IMAP folders, OfflineIMAP
 doesn't do to well, at least in my limited experiences. It's designed to
 never ever loose mail (which is surely most important), but when deleting
 folders on the local Dovecot using Gnus, the deletion never propagated to
 the remote server and the next synchronization fetched the deleted folder
 again from the remote side...

I'll drop an email to my admin.

Even if feasable, doing your way seems to add a layer of complexity to the
installation... Would you have config to share, would I go that way?

Thanks a lot, anyway, for your precious advice.

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: Behavior of Gnus when called from an hyperlink

2010-07-21 Thread Sébastien Vauban
Hi David,

David Maus wrote:
 Sébastien Vauban wrote:
 What would be your pieces of advice in such a case? Do I need to test
 something extra? Get a local imap server? Others (like asking for fixing
 the search on our Courier mail server)?

 Well, IMO there might be nothing to fix on the server side. Although a
 user might expect searches to be fast there is no directive in the specs
 about the fastness of the SEARCH command. This should of course not prevent
 you from dropping a mail to the IMAP server admins about your problem to at
 least point at this performance issue with large mailboxes.

 At the client side I asked myself why Gnus does not use the cached message.
 Some vague guesses:

 I've checked the cache; in /home/sva/Mail/cache/nnimap+me:INBOX.work, I have 
 a
 copy of the linked email:

   -rw-r--r-- 1 sva sva   1631 2010-06-28 14:09 28606

 Okay, Gnus caches the message but would have to search in all cached
 messages for the message id header. 28606 might be the UID of the message
 in the mailbox. To confirm this login manually and prefix the search command
 with UID

 ,
 | 0x3 UID SEARCH HEADER Message-ID 871vbrxzo6@mundaneum.com
 `

 If this search returns 28606 then we can assume that Gnus indeed caches by
 UID[1]. This means that Gnus needs to query the server what the UID of the
 message with a particular message id is and could than use the cache.

Your guess is right:

--8---cut here---start-8---
[...@mundaneum] /nc -vv mail imap
Connection to mail 143 port [tcp/imap2] succeeded!
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT 
THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS XMAGICTRASH] 
Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc.  See COPYING for 
distribution information.
0x1 LOGIN sva not-displayed
0x1 OK LOGIN Ok.
0x2 SELECT INBOX.mc
* FLAGS ($MDNSent Junk gnus-save gnus-forward NonJunk $Forwarded \Draft 
\Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS ($MDNSent Junk gnus-save gnus-forward NonJunk $Forwarded 
\* \Draft \Answered \Flagged \Deleted \Seen)] Limited
* 27084 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1097250695] Ok
* OK [MYRIGHTS acdilrsw] ACL
0x2 OK [READ-WRITE] Ok
0x3 UID SEARCH HEADER Message-ID 871vbrxzo6@mundaneum.com

* SEARCH 28606
0x3 OK SEARCH done.
--8---cut here---end---8---


 This is the point where I conclude that there can't be done anything about
 it except modifying Gnus' cache mechanism.[2]

Do you think that would happen?  Are there people aware of this, and willing
to do such a change?

Problem is I focused on Gnus for 5 years, after a careful election of the
program I would invest time in -- by reading a lot of blogs and comments on
the Web. I think I'm too bound to it now, to give a try to WL. Or you should
really insist a lot ;-)


 So the fall back would be: Not to keep everything in the IMAP mailbox but
 expire old messages to a local folder. Here I have rule that says:
 Everything older than 180 days is moved from IMAP inbox to a local archive
 folder. The implications are, of course, that links to messages older than
 180 days break. To mitigate this I use Namazu[3] to index my local archives
 and in case I need to follow such a broken Org link I could open the link by
 performing a search for the message-id first[4].

It seems WL is better suited for this. Your solution with 180 days is a nice
work around, but I fear its impacts -- having broken links.


 In the case of Gnus we might modify org-gnus-open to, say, perform a mairix
 search for the message id if called with prefix and open the message in the
 search result folder.

Would I have to invest time on looking at mairix possibilities?

Will/Would someone work on your proposed workaround?

Thanks a lot for your help (addressed to you, and Nick, Tassilo, Bernt, in
particular for this topic),
  Seb

-- 
Sébastien Vauban


___
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] Correct babel format for ditaa?

2010-07-21 Thread John Hendy
Hi,


I have been having a difficult time with an export (which includes a ditaa
graphic) to PDF via LaTeX recently and am puzzled by it. Which is the
correct format?

1) Supported by:
- http://doc.norang.ca/org-mode.html#playingwithditaa
- http://orgmode.org/Changes.html#ob-configuration-changes (indirectly seems
to indicate this format?)

#+begin_src ditaa :file file.png :cmdline -r -S -s 2.5
---
Picture here
---
#+end_src


2) Supported by:
- http://orgmode.org/worg/org-contrib/org-exp-blocks.php
-
http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html

#+begin_ditaa file.png -r -S -s 2.5
---
Picture here
---
#+end_ditaa

Only #2 is working for me currently, though I suspect that #1 is the 'truer'
form? Not sure what's going on...


Thanks,
John

P.S. Is there a way to enlarge the output? Using the -s option only seems to
make the resolution higher, not change the actual size (inches, pixels,
whatever) in the LaTeX output...
___
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] Correct babel format for ditaa?

2010-07-21 Thread Eric Schulte
Hi John,

Yes, (1) below is the preferred format, however the ditaa language is
not enabled by default.  Please customize the org-babel-load-languages
variable to enable support for evaluating ditaa code blocks, and then
try the code block syntax mentioned in (1) below again and a ditaa
figure should be successfully exported.

A benefit of the (1) (aka Babel) method below is that code blocks can be
evaluated live from inside the Org-mode buffer with C-c C-c.  See
Chapter 14 of the manual or the relevant portion of the quick guide
http://orgmode.org/guide/Working-With-Source-Code.html for more
information on using Babel.

Best -- Eric

John Hendy jw.he...@gmail.com writes:

 Hi,


 I have been having a difficult time with an export (which includes a ditaa
 graphic) to PDF via LaTeX recently and am puzzled by it. Which is the
 correct format?

 1) Supported by:
 - http://doc.norang.ca/org-mode.html#playingwithditaa
 - http://orgmode.org/Changes.html#ob-configuration-changes (indirectly seems
 to indicate this format?)

 #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5
 ---
 Picture here
 ---
 #+end_src


 2) Supported by:
 - http://orgmode.org/worg/org-contrib/org-exp-blocks.php
 -
 http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html

 #+begin_ditaa file.png -r -S -s 2.5
 ---
 Picture here
 ---
 #+end_ditaa

 Only #2 is working for me currently, though I suspect that #1 is the 'truer'
 form? Not sure what's going on...


 Thanks,
 John

 P.S. Is there a way to enlarge the output? Using the -s option only seems to
 make the resolution higher, not change the actual size (inches, pixels,
 whatever) in the LaTeX output...
 ___
 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] Correct babel format for ditaa?

2010-07-21 Thread John Hendy
Thanks Eric... I should have included that my .emacs file has the following
(which I followed from here:
http://orgmode.org/Changes.html#ob-configuration-changes):

;; setup ditaa
(setq org-ditaa-jar-path ~/.elisp/org.git/contrib/scripts/ditaa.jar)
(org-babel-do-load-languages
 'org-babel-load-languages
 '((ditaa . t)
   (gnuplot . t)))
(require 'ob-ditaa)

If I understand correctly, the (ditaa . t) and (require 'ob-ditaa) are
redundant but since it wasn't working, I tried both. Is this what I need to
have babel work with ditaa?

Thanks for any input...
John

On Wed, Jul 21, 2010 at 4:57 PM, Eric Schulte schulte.e...@gmail.comwrote:

 Hi John,

 Yes, (1) below is the preferred format, however the ditaa language is
 not enabled by default.  Please customize the org-babel-load-languages
 variable to enable support for evaluating ditaa code blocks, and then
 try the code block syntax mentioned in (1) below again and a ditaa
 figure should be successfully exported.

 A benefit of the (1) (aka Babel) method below is that code blocks can be
 evaluated live from inside the Org-mode buffer with C-c C-c.  See
 Chapter 14 of the manual or the relevant portion of the quick guide
 http://orgmode.org/guide/Working-With-Source-Code.html for more
 information on using Babel.

 Best -- Eric

 John Hendy jw.he...@gmail.com writes:

  Hi,
 
 
  I have been having a difficult time with an export (which includes a
 ditaa
  graphic) to PDF via LaTeX recently and am puzzled by it. Which is the
  correct format?
 
  1) Supported by:
  - http://doc.norang.ca/org-mode.html#playingwithditaa
  - http://orgmode.org/Changes.html#ob-configuration-changes (indirectly
 seems
  to indicate this format?)
 
  #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5
  ---
  Picture here
  ---
  #+end_src
 
 
  2) Supported by:
  - http://orgmode.org/worg/org-contrib/org-exp-blocks.php
  -
 
 http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html
 
  #+begin_ditaa file.png -r -S -s 2.5
  ---
  Picture here
  ---
  #+end_ditaa
 
  Only #2 is working for me currently, though I suspect that #1 is the
 'truer'
  form? Not sure what's going on...
 
 
  Thanks,
  John
 
  P.S. Is there a way to enlarge the output? Using the -s option only seems
 to
  make the resolution higher, not change the actual size (inches, pixels,
  whatever) in the LaTeX output...
  ___
  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] [babel] Re: org-babel and OCaml

2010-07-21 Thread Eric Schulte
Hi Erik,

dyb...@lnouv.com (Erik L. Arneson) writes:

 Eric Schulte schulte.e...@gmail.com writes:
 dyb...@lnouv.com (Erik L. Arneson) writes:
 Great, I will start hacking away at it.  What's the process I need to go
 through to sign FSF papers?

 See http://orgmode.org/worg/org-contribute.php#sec-2 for information on
 FSF copyright assignment.

 I've submitted the paperwork, so now I'm just waiting to hear back from
 them.  I'm still curious, though, as to how much you'd like me to change the
 back-end behavior (i.e. the generated OCaml code and the way return
 values are read) before checking with the community for their thoughts
 and such.


Judging from the traffic on the mailing list I don't think there are
many users of the Babel ocaml implementation.

You're certainly free to experiment with as wide of a range of
implementation options as you like.  Given that any patches will
necessarily move through this list, I think that we're guaranteed that
anyone interested in the ob-ocaml implementation will have a chance to
participate in the development.


 The first table I tried to test on looked something like this:

 #+tblname: test
 | John | 5 | 1.02 |
 | Mary | 6 | 9.00 |
 | Bob  | 7 | 0.50 |

 With the patch you recently submitted, this makes an invalid array of
 arrays in OCaml, so that's why I was thinking it should generate an
 array of tuples instead, so the output might look like this:

 let test = 
   [| (John, 5, 1.02);
  (Mary, 6, 9.00);
  (Bob, 7, 0.50) |]


The only issue I see with that approach is that different dimensions of
the incoming value are treated differently, i.e. the first dimension is
an array, the second is a tuple, how would the third of fourth
dimensions be represented?

It looks like nested arrays may be possible using Matrix primitives (see
[1]) maybe this would be preferable?


 It doesn't seem like many people are using ob-ocaml.el yet, so I can
 probably just make that change, document it, and then hope for the best,
 right?

I'd recommend that you experiment with new changes locally, and then
send patches to the list where they can be reviewed and applied.

Cheers -- Eric

Footnotes: 
[1]  http://caml.inria.fr/resources/doc/faq/core.en.html#data-structures


___
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] .ics export w/Alarms. Possible?

2010-07-21 Thread Sven Bretfeld
Hi

Eric S Fraga ucec...@ucl.ac.uk writes:

 On Wed, 21 Jul 2010 16:27:40 +0200, Giovanni Ridolfi 
 giovanni.rido...@yahoo.it wrote:

 pull the git version or download the latest org:

 and then make sure you set the variable org-icalendar-alarm-time to
 the number of minutes which should be used for any exported timed
 event.

There is something strange. Having installed the org version from git
and having set org-icalendar-alarm-time to 10, GoogleCalendar displays
appointments two hours too late. 

Strangely, the ics files produced with both versions are exactly the
same (including the headers) with exception of the VALARM lines. Here is
an example:

, mygtd.ics by org-mode 7.01trans (Git Version)
|
| BEGIN:VCALENDAR
| VERSION:2.0
| X-WR-CALNAME:mygtd
| PRODID:-//Sven Bretfeld//Emacs with Org-mode//EN
| X-WR-TIMEZONE:CEST
| X-WR-CALDESC:nil
| CALSCALE:GREGORIAN
| BEGIN:VEVENT
| UID: TS-0a63bfff-e765-4bd6-9cbb-f628431e8835
| DTSTART:20101013T11
| DTEND:20101013T13
| SUMMARY:APPT Vorbereitungssitzung IKGF-Tagung als MA-Veranstaltung
| DESCRIPTION: 2010-10-13 Mi 11:00-13:00
| CATEGORIES:Termine
| BEGIN:VALARM
| ACTION:DISPLAY
| DESCRIPTION:APPT Vorbereitungssitzung IKGF-Tagung als MA-Veranstaltung
| TRIGGER:-P0D0H10M0S
| END:VALARM
| END:VEVENT
`

The above appointment shows up wrongly as 13:00-15:00 in GoogleCalendar. 

, mygtd.ics by org-mode 7.01g (Current Version)
| 
| BEGIN:VCALENDAR
| VERSION:2.0
| X-WR-CALNAME:mygtd
| PRODID:-//Sven Bretfeld//Emacs with Org-mode//EN
| X-WR-TIMEZONE:CEST
| X-WR-CALDESC:nil
| CALSCALE:GREGORIAN
| BEGIN:VEVENT
| UID: TS-0a63bfff-e765-4bd6-9cbb-f628431e8835
| DTSTART:20101013T11
| DTEND:20101013T13
| SUMMARY:APPT Vorbereitungssitzung IKGF-Tagung als MA-Veranstaltung
| DESCRIPTION: 2010-10-13 Mi 11:00-13:00
| CATEGORIES:Termine
`

This one displays correctly as 11:00-13:00 in GoogleCalendar.

A timezone issue? But how, if both files are identical in the essential
parts? 

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


Re: [Orgmode] Correct babel format for ditaa?

2010-07-21 Thread Eric Schulte
Hi John,

Yes the following should be sufficient

;; setup ditaa
(setq org-ditaa-jar-path ~/.elisp/org.git/contrib/scripts/ditaa.jar)
(org-babel-do-load-languages
 'org-babel-load-languages
 '((ditaa . t)
   (gnuplot . t)))


What happens if you try to evaluate the following in an Org-mode buffer
with C-c C-c?

#+begin_src ditaa :file example.png
  +---+
  |   |
  | ditaa example |
  |   |
  +---+
#+end_src

Best -- Eric

John Hendy jw.he...@gmail.com writes:

 Thanks Eric... I should have included that my .emacs file has the following
 (which I followed from here:
 http://orgmode.org/Changes.html#ob-configuration-changes):

 ;; setup ditaa
 (setq org-ditaa-jar-path ~/.elisp/org.git/contrib/scripts/ditaa.jar)
 (org-babel-do-load-languages
  'org-babel-load-languages
  '((ditaa . t)
(gnuplot . t)))
 (require 'ob-ditaa)

 If I understand correctly, the (ditaa . t) and (require 'ob-ditaa) are
 redundant but since it wasn't working, I tried both. Is this what I need to
 have babel work with ditaa?

 Thanks for any input...
 John

 On Wed, Jul 21, 2010 at 4:57 PM, Eric Schulte schulte.e...@gmail.comwrote:

 Hi John,

 Yes, (1) below is the preferred format, however the ditaa language is
 not enabled by default.  Please customize the org-babel-load-languages
 variable to enable support for evaluating ditaa code blocks, and then
 try the code block syntax mentioned in (1) below again and a ditaa
 figure should be successfully exported.

 A benefit of the (1) (aka Babel) method below is that code blocks can be
 evaluated live from inside the Org-mode buffer with C-c C-c.  See
 Chapter 14 of the manual or the relevant portion of the quick guide
 http://orgmode.org/guide/Working-With-Source-Code.html for more
 information on using Babel.

 Best -- Eric

 John Hendy jw.he...@gmail.com writes:

  Hi,
 
 
  I have been having a difficult time with an export (which includes a
 ditaa
  graphic) to PDF via LaTeX recently and am puzzled by it. Which is the
  correct format?
 
  1) Supported by:
  - http://doc.norang.ca/org-mode.html#playingwithditaa
  - http://orgmode.org/Changes.html#ob-configuration-changes (indirectly
 seems
  to indicate this format?)
 
  #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5
  ---
  Picture here
  ---
  #+end_src
 
 
  2) Supported by:
  - http://orgmode.org/worg/org-contrib/org-exp-blocks.php
  -
 
 http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html
 
  #+begin_ditaa file.png -r -S -s 2.5
  ---
  Picture here
  ---
  #+end_ditaa
 
  Only #2 is working for me currently, though I suspect that #1 is the
 'truer'
  form? Not sure what's going on...
 
 
  Thanks,
  John
 
  P.S. Is there a way to enlarge the output? Using the -s option only seems
 to
  make the resolution higher, not change the actual size (inches, pixels,
  whatever) in the LaTeX output...
  ___
  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


[Orgmode] indent levels in dynamic block clock?

2010-07-21 Thread jeff stern
hi, please forgive me if this is a FAQ. i could not find it in the
manual nor by searching the list archives.

i love the dynamic block clock feature (C-c C-x C-r) and love that i
can set certain paramters
(http://orgmode.org/manual/Clocking-work-time.html).

i was wondering if it is already possible to indent the 2nd column by
the level? or whether this would require new coding?

for instance, suppose my dynamic block has :scope 3, then

i'd like all level 1 items to have no indentation
level 2 items would appear, say, 2 spaces in
level 3 items would appear, say, 3 spaces in

so that instead of this:

| L | Headline |   Time |  |  |
|---+--++--+--|
|   | *Total time* | *4:00* |  |  |
|---+--++--+--|
|   | *File time*  | *3:57* |  |  |
| 1 | email communication  |   0:15 |  |  |
| 1 | Case management/documenting/organization |   0:25 |  |  |
| 1 | training |   0:08 |  |  |
| 2 | contact John Doe || 0:08 |  |
| 1 | well-being   |   2:03 |  |  |
| 2 | warts|| 2:03 |  |
| 3 | DONE find books on warts ||  | 2:03 |

it might appear more like this:

| L | Headline |   Time |  |  |
|---+--++--+--|
|   | *Total time* | *4:00* |  |  |
|---+--++--+--|
|   | *File time*  | *3:57* |  |  |
| 1 | email communication  |   0:15 |  |  |
| 1 | Case management/documenting/organization |   0:25 |  |  |
| 1 | training |   0:08 |  |  |
| 2 |   contact John Doe   || 0:08 |  |
| 1 | well-being   |   2:03 |  |  |
| 2 |   warts  || 2:03 |  |
| 3 | DONE find books on warts ||  | 2:03 |


has this been done already and i'm just missing something obvious?

if not, does anyone have any ideas where i'd start to write the code
to implement this? (i'm a newbie at lisp)

thanks!

___
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] Minor Bug in ical2org awk script

2010-07-21 Thread Sven Bretfeld
Hi Eric

Eric S Fraga ucec...@ucl.ac.uk writes:

 attached is an updated awk script which should do what you want.
 Please test it out as it should be generic (with respect to locale).

It's working perfectly. Thank you very much.

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


Re: [Orgmode] .ics export w/Alarms. Possible?

2010-07-21 Thread Eric S Fraga
On 22 Jul 2010 00:21:30 +0200, Sven Bretfeld sven.bretf...@gmx.ch wrote:

[I've pruned the CC list, by the way]

[...]

 There is something strange. Having installed the org version from git
 and having set org-icalendar-alarm-time to 10, GoogleCalendar displays
 appointments two hours too late. 
 
 Strangely, the ics files produced with both versions are exactly the
 same (including the headers) with exception of the VALARM lines. Here is
 an example:

[...]

 A timezone issue? But how, if both files are identical in the essential
 parts? 
 
 Greetings,
 
 Sven

Sven,

unfortunately, I really have no idea what is going on here.  I'm not
really that conversant with the full iCalendar specifications although
I have read the relevant parts of the specification [1] and I think
I've got things right.  

However, my experience with Google's calendar has left me less than
impressed.  There seem to be quite a few idiosyncrasies (I'm trying to
be polite here ;-) in what Google is doing and I have a feeling that
the bug may be there?

Does the 2 hour time shift you find correspond to your time zone
relative to UTC?  It could be that when google processes the VALARM
element, it wipes out the time zone information for the whole entry
and treats it as UTC when inserting it.

Sorry I can't be of much help.

eric

Footnotes: 
[1]  http://www.ietf.org/rfc/rfc2445.txt

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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] Minor Bug in ical2org awk script

2010-07-21 Thread Eric S Fraga
On 22 Jul 2010 00:55:12 +0200, Sven Bretfeld sven.bretf...@gmx.ch wrote:
 
 Hi Eric
 
 Eric S Fraga ucec...@ucl.ac.uk writes:
 
  attached is an updated awk script which should do what you want.
  Please test it out as it should be generic (with respect to locale).
 
 It's working perfectly. Thank you very much.
 
 Greetings,
 
 Sven

Excellent!  Thanks for the confirmation.  I'm glad *something* is
working right at least...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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] .ics export w/Alarms. Possible?

2010-07-21 Thread Sven Bretfeld
Eric S Fraga ucec...@ucl.ac.uk writes:

 unfortunately, I really have no idea what is going on here.  I'm not
 really that conversant with the full iCalendar specifications although
 I have read the relevant parts of the specification [1] and I think
 I've got things right.  

I have experimented a little longer. Explicitly setting the timezone in
the org-export-icalender group to Europe/Berlin solves the issue. But
it's strange that this is necessary in case of the git version, but not
in the stable version of org. I, too, don't think that this is an Emacs
issue. Something must confuse the import of ics files in Google when
they become to complex. In an ics file with VALARM entries Google
somehow doesn't recognize X-WR-TIMEZONE:CEST correctly.

Thank you

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


Re: [Orgmode] Correct babel format for ditaa?

2010-07-21 Thread John Hendy
That works as does the attempt on my *home* computer. I was at work earlier.
I'm truly perplexed as from memory I just cannot think of anything different
between the home and work .emacs files that would do this. I want to go back
and look at the load languages section from the work one, though, as I got
the same error at home prior to adding that section. I'm wondering if I have
a typo somewhere (though I did copy and paste what's below so just not
sure!).

I'll try again and post back tomorrow. I truly appreciate the help.

John

On Wed, Jul 21, 2010 at 10:22 PM, Eric Schulte schulte.e...@gmail.comwrote:

 Hi John,

 Yes the following should be sufficient

 ;; setup ditaa
 (setq org-ditaa-jar-path ~/.elisp/org.git/contrib/scripts/ditaa.jar)
 (org-babel-do-load-languages
  'org-babel-load-languages
  '((ditaa . t)
   (gnuplot . t)))


 What happens if you try to evaluate the following in an Org-mode buffer
 with C-c C-c?

 #+begin_src ditaa :file example.png
  +---+
  |   |
  | ditaa example |
  |   |
  +---+
 #+end_src

 Best -- Eric

 John Hendy jw.he...@gmail.com writes:

  Thanks Eric... I should have included that my .emacs file has the
 following
  (which I followed from here:
  http://orgmode.org/Changes.html#ob-configuration-changes):
 
  ;; setup ditaa
  (setq org-ditaa-jar-path ~/.elisp/org.git/contrib/scripts/ditaa.jar)
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((ditaa . t)
 (gnuplot . t)))
  (require 'ob-ditaa)
 
  If I understand correctly, the (ditaa . t) and (require 'ob-ditaa) are
  redundant but since it wasn't working, I tried both. Is this what I need
 to
  have babel work with ditaa?
 
  Thanks for any input...
  John
 
  On Wed, Jul 21, 2010 at 4:57 PM, Eric Schulte schulte.e...@gmail.com
 wrote:
 
  Hi John,
 
  Yes, (1) below is the preferred format, however the ditaa language is
  not enabled by default.  Please customize the org-babel-load-languages
  variable to enable support for evaluating ditaa code blocks, and then
  try the code block syntax mentioned in (1) below again and a ditaa
  figure should be successfully exported.
 
  A benefit of the (1) (aka Babel) method below is that code blocks can be
  evaluated live from inside the Org-mode buffer with C-c C-c.  See
  Chapter 14 of the manual or the relevant portion of the quick guide
  http://orgmode.org/guide/Working-With-Source-Code.html for more
  information on using Babel.
 
  Best -- Eric
 
  John Hendy jw.he...@gmail.com writes:
 
   Hi,
  
  
   I have been having a difficult time with an export (which includes a
  ditaa
   graphic) to PDF via LaTeX recently and am puzzled by it. Which is the
   correct format?
  
   1) Supported by:
   - http://doc.norang.ca/org-mode.html#playingwithditaa
   - http://orgmode.org/Changes.html#ob-configuration-changes(indirectly
  seems
   to indicate this format?)
  
   #+begin_src ditaa :file file.png :cmdline -r -S -s 2.5
   ---
   Picture here
   ---
   #+end_src
  
  
   2) Supported by:
   - http://orgmode.org/worg/org-contrib/org-exp-blocks.php
   -
  
 
 http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html
  
   #+begin_ditaa file.png -r -S -s 2.5
   ---
   Picture here
   ---
   #+end_ditaa
  
   Only #2 is working for me currently, though I suspect that #1 is the
  'truer'
   form? Not sure what's going on...
  
  
   Thanks,
   John
  
   P.S. Is there a way to enlarge the output? Using the -s option only
 seems
  to
   make the resolution higher, not change the actual size (inches,
 pixels,
   whatever) in the LaTeX output...
   ___
   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


[Orgmode] first time setting up mobile-org -- no files produced

2010-07-21 Thread Michael Gilbert
Hi —

Using Dropbox. Startup includes:

(setq org-mobile-inbox-for-pull ~/OrgMode/Flagged.org)
(setq org-mobile-directory ~/Documents/Dropbox/MobileOrg)

M-x org-mobile-push does something. But no files are pushed to the MobileOrg 
folder. I set debug-on-error and I get no error. I've reloaded .el files.

Next steps? I'm sure this is glaringly obvious to someone

TIA.

— Michael


___
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