[Orgmode] Renumbering of footnotes, and list line spaces

2010-07-12 Thread Adam
Am using Org-mode version 6.21b

The Org Manual section 2.10, suggest that  s, r, S, n, d  commands are 
available if a prefix-argument is supplied to the Footnote action command  
C-c C-x f. 

When I enter   C-u  C-c  C-x  f a footnote command menu appears with 
only the following; [s]ort  |  convert to [n]umeric  |  [d]elete  

I wish to Sort or to Renumber the footnotes. Sort does not appear to sort 
the collection numerically, and renumber seems unavailable. 

For Plain Lists,  I wish to include a line space after each list entry. Is 
there a simple way to do this ? 


___
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-12 Thread Rainer M Krug
Hi Eric,

On Fri, Jul 9, 2010 at 5:44 PM, Eric Schulte schulte.e...@gmail.com wrote:

 Hi Rainer,

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

  On Thu, Jul 8, 2010 at 9:03 PM, Eric Schulte schulte.e...@gmail.com
 wrote:
 [...]
 
  (add-hook 'org-babel-post-tangle-hook
   (lambda () (ess-load-file (buffer-file-name
 
 
  Unfortunately, this does not work. I put the code above into my
  emacs.organd nothing happens - not even an error message. I tried to
  use the C-h v to customise the variable, but I don't manage it.

 If the variable isn't registered with C-h v, then it sounds like maybe
 you need to update Org-mode, and/or re-run make clean  make.


OK - that is working now.



  In addition, The filename for es-load-file shoud not be the buffer
  name, but the buffer name with the extension replaced with R.
 

 `buffer-file-name', returns the name of the file that the buffer is
 visiting, so wouldn't this already be the case if the filename ends with
 .R?


Isn't the buffer from which I am tangling the org buffer, and not the result
from the tangling? (see below for further remarks.



 This minimal example with the hook defined as above works for me.  After
 tangling I can jump to the *R* buffer where both x and y are defined.

 --8---cut here---start-8---
 ** tangle R and load
   :PROPERTIES:
   :tangle:   to-load.r
   :END:

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

 #+begin_src R
  y - 9
 #+end_src
 --8---cut here---end---8---


Not here -

Emacs and org-mode version:

GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
Org-mode version 6.36trans (release_6.36.603.g227b)

1) if no R process is running, I get the following message:
ess-start-process-specific: No ESS processes running; not yet implemented to
start (Initial,nil)
No problem 0 I can start an R process manually.

2) when an R session is running, I get the following error message from ESS:
Errors: Use C-c ` to find error.
Symbol's function definition is void: with-temp-filebuffer

and from ESS:

Error in source(/home/rkrug/tmp/R.org) :
  /home/rkrug/tmp/R.org:1:1: unexpected '^'
1: **

it seems to submit the org file (the buffer is saved as R.org) to R.

So buffer-file-name should actually be replaced with the name from the file
name resulting from the tangling, in the easiest case (which would be fine
with me) the org buffer name with .org replaced with .R.
So I did the following (my firs elisp code!):

  (add-hook 'org-babel-post-tangle-hook
(lambda () (ess-load-file (replace-regexp-in-string .org .R
buffer-file-name

and it is working - except that I still get the Symbol's function definition
is void: with-temp-filebuffer , but it does not seem to do anything.

Thanks a lot,

Rainer





 
  I am sorry about all these questions, but emacs-lisp I have never used
  emacs-lisp (I should - and I will!)
 

 No problem at all, but be careful about learning too much lisp as you
 may begin to grow dissatisfied with R :)

 Best -- Eric

 
  Cheers and thanks for your patience,
 
  Rainer
 
 
  Best -- Eric
 
  Rainer M Krug r.m.k...@gmail.com writes:
 
   Hi
  
   I am using org-babel for literate programming in R and I am using the
   following approach to test the code:
  
   1) tangle
   2) refresh buffer containing the tangled code (I use auto-revert-mode
 or
   global-auto-revert-mode for that)
   3) load the tangled file into an existing R session via ESS R for
  evaluation
  
   This involves switching between buffers in always the same sequence.
   Therefore my suggestion:
  
   would it be possible to have a tangle-and-evaluate-tangled-file
  funcction,
   which is doing this automatically?
  
   C-c - 0 and org-babel-execute-buffer do not work in this case, as
  functions
   are split over several code blocks in R.
  
   Cheers,
  
   Rainer
 




-- 
NEW GERMAN FAX NUMBER!!!

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

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com
___
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] [google] updated awk script for google to org conversion

2010-07-12 Thread Sven Bretfeld
Hi Eric

Thank you very much for the script and the idea. I'm a fan of MobileOrg
for Android, but the diary functions are not convenient to deal with at
the moment. So I adopted your method for date handling. Some
observations:

1. wget doesn't overwrite an older basic.ics laying in the same folder.
   Instead it names the files of further downloads to basic.ics.1,
   basic.ics.2 and so on. Therefore I added an additional line (rm $ICS)
   to your shell-script (not the awk-script, but the one with the
   automatized procedure you sent in a previous posting):

--8---cut here---start-8---
#!/bin/bash

ICS=/home/sven/bin/google2org/basic.ics
ORG=/home/sven/aktuell/myconf/googlecalendar.org
AWK=/home/sven/bin/google2org/ical2org.awk

cd /home/sven/bin/google2org/
wget http://www.google.com/calendar/ical/[...]/basic.ics

timezone=$(date +%z | sed 's/^\([+-]\)0/\1/')

seconds=$(($timezone*36))

awk -f $AWK  $ICS  $ORG

rm $ICS
--8---cut here---end---8---

2. Running the above script with cron, makes Emacs continually ask if
   googlecalendar.org should really be edited, because the file had
   changed on disk. So I put the whole thing into an Emacs function:

--8---cut here---start-8---
(defun my-org-to-google ()
  (interactive)
  (save-excursion
  (find-file ~/aktuell/myconf/mygtd.org)
  (org-export-icalendar-this-file))
)

(defun my-google-to-org ()
  (interactive)
  (save-excursion
(kill-buffer googlecalendar.org)
(shell-command
 (format
  sh /home/sven/bin/google2org/importgoogle.sh)))
)

(if (string-equal system-name kamaloka)
(run-at-time 3:00am nil 'my-org-to-google)
(run-at-time nil 3600 'my-google-to-org)
)
--8---cut here---end---8---

Every night a new ical-export is created from my main org-file at
3:00am, waiting to be uploaded in the morning (do you know if it's
possible to automatically import this to GoogleCL?). Every hour the new
entries of GoogleCL are imported to googlecalendar.org (which I include
my agenda-files, of course). To avoid problems, this happens only on one
of my PCs (kamaloka).

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] [BUG] #+begin_src wo. language blocks XHTML export

2010-07-12 Thread David Maus
SEric Schulte wrote:
Thomas S. Dye t...@tsdye.com writes:

 On Jul 8, 2010, at 9:09 AM, Eric Schulte wrote:

 Sebastian Rose sebastian_r...@gmx.de writes:

 [...]

 It can be considered an error, since the docs say:

  ...This is done with the ‘src’ block, where you also need to
 specify the name of the major mode that should be used to fontify
 the example...


 I would vote that this be considered an error as a source block
 doesn't make sense w/o a source language.  If others agree with this
 interpretation, I would be happy to submit a patch which actively
 raises an errors when this cases is encountered.

 Cheers -- Eric

 This seems like the right approach to me.

 Tom

As promised here's a patch which raises errors when source blocks don't
have a specified language.  I would prefer if the error could indicate
which block caused the problem, but I don't know how to accomplish this.

Maybe we could store a marker in a text property of (source) blocks
right before they are processed in the input file?

Best,
  -- David

-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpRlTB8zNWXP.pgp
Description: 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] Hide timestamps for several days time range in agenda

2010-07-12 Thread Julien Barnier
Hi,

I'm currently trying to use the agenda a bit more, but there is one thing I
didn't manage :

If i've got a several days timerange entry, such as the following :

*** 2010-07-22 jeu.--2010-07-23 ven. Paris

The result in my current agenda view is :

Jeudi  22 Juillet 2010
   -- 2010-07-22 jeu.--2010-07-23 ven. Paris
Vendredi   23 Juillet 2010
   -- 2010-07-22 jeu.--2010-07-23 ven. Paris


My question is : how do I hide the timestamps in these entries ? What I'd like
to obtain would be simply :

Jeudi  22 Juillet 2010
   -- Paris
Vendredi   23 Juillet 2010
   -- Paris


Thanks in advance for any idea,

Julien


___
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] [SOLVED] Re: nicely managing multiple calendars in the agenda

2010-07-12 Thread Sébastien Vauban
Hi Nick,

Nick Dokos wrote:
 =?utf-8?Q?S=C3=A9bastien_Vauban?= wxhgmqzgw...@spammotel.com wrote:
 Nick Dokos wrote:
 S=C3=A9bastien Vauban 
 wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org wrote:

 (setq org-tag-faces
   '((home . (:background #D4EAFF :italic t))
 (work . (:italic t :background #F9E816

 Though, only the color spec above is taken into account. Tags are not in
 italics like for all the others:

  (org-tag ((t (:foreground rgb:81/6A/7D :background rgb:F7/B8/DE 
 :italic t

 Maybe a bug?

 Or maybe the font does not come in italic? AFAIK, if that's the case,
 then the italic attribute is just ignored.

 Nice try -- and you're definitely right asking (as this could easily be
 overlooked), but here that's not the case: my font is Consolas (under
 Ubuntu), which comes in italics.

 And I get _all the tags in italics_, thanks to the above specification of
 `org-tag' -- _all but 2_ tags: `home' and `work', which come in their
 upright version, independently of the argument passed in `org-tag-faces'.
 
 I've just noticed, in the 1000's of lines in my `*Messages*' buffer,
 something that can explain the noticed behavior:
 
 --8---cut here---start-8---
 Invalid face attribute :italic t [54 times]
 --8---cut here---end---8---
 
 Though, I don't understand why that attribute is invalid in the above spec!?

Replacing `:italic t' by `:slant italic' does the trick!

--8---cut here---start-8---
(setq org-tag-faces
  '((home . (:slant italic :background pale green))
(work . (:slant italic :background #F9E816
--8---cut here---end---8---

Just wanted to share the solution...

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] how to include time when setting deadlines?

2010-07-12 Thread Michael Gilbert
Hi —

I understand the time format in orgmode, but something is eluding me. Many of 
my projects have specific times for deadlines (that is to say, time of day on 
the date due). I can't see how to enter that other than by hand. When I type 
C-c C-d, I get the wonderful date prompt system. But I have not been able to 
discover how to get that to prompt me for the time or to include a time, like 
it includes month and day, etc. I've spent some time with the manual and 
searching the archives, but my search skills haven't prevailed. Any advice?

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


Re: [Orgmode] [BUG] #+begin_src wo. language blocks XHTML export

2010-07-12 Thread Carsten Dominik


On Jul 12, 2010, at 10:13 AM, David Maus wrote:


SEric Schulte wrote:

Thomas S. Dye t...@tsdye.com writes:



On Jul 8, 2010, at 9:09 AM, Eric Schulte wrote:


Sebastian Rose sebastian_r...@gmx.de writes:

[...]


It can be considered an error, since the docs say:

...This is done with the ‘src’ block, where you also need to
specify the name of the major mode that should be used to fontify
the example...



I would vote that this be considered an error as a source block
doesn't make sense w/o a source language.  If others agree with  
this

interpretation, I would be happy to submit a patch which actively
raises an errors when this cases is encountered.

Cheers -- Eric


This seems like the right approach to me.

Tom


As promised here's a patch which raises errors when source blocks  
don't
have a specified language.  I would prefer if the error could  
indicate
which block caused the problem, but I don't know how to accomplish  
this.


Maybe we could store a marker in a text property of (source) blocks
right before they are processed in the input file?


The problem here is that during export, the source code is taken
from a temporary buffer containing an already modifed copy of the
original buffer.

Another solution would be to include into the message is short
part of the code itself (maybe the first line...) - this should
make it possible to identify the problematic block reasonably easily.

- 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] how to include time when setting deadlines?

2010-07-12 Thread Puneeth
On Mon, Jul 12, 2010 at 2:33 PM, Michael Gilbert m...@gilbert.org wrote:
 Hi —

 I understand the time format in orgmode, but something is eluding me. Many of 
 my projects have specific times for deadlines (that is to say, time of day on 
 the date due). I can't see how to enter that other than by hand. When I type 
 C-c C-d, I get the wonderful date prompt system. But I have not been able to 
 discover how to get that to prompt me for the time or to include a time, like 
 it includes month and day, etc. I've spent some time with the manual and 
 searching the archives, but my search skills haven't prevailed. Any advice?

What you get is really a date time prompt and not just a date prompt.
You could enter date in any of the ways given in the org-manual [1].

There is just one example on how to enter the time, given in the manual
 22 sept 0:34  -- 2006-09-22 0:34

But, entering time this way works with whatever format you use for
entering the date. Enter the date and then enter time with a space
separating the date and time.

HTH,
Puneeth

[1] 
http://orgmode.org/manual/The-date_002ftime-prompt.html#The-date_002ftime-prompt

___
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] Failed to create radio tables

2010-07-12 Thread Nicolas Goaziou
Hello,
 Carsten Dominik writes:
 Corrected it where?  In you branch where you are working on the list
 code?

Yes, on my branch. But here is the change applying to master.

Regards,

-- Nicolas

From bceff0485db6a7f8686c1024afe1810414f78a63 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou n.goaz...@gmail.com
Date: Mon, 12 Jul 2010 11:12:57 +0200
Subject: [PATCH] Fix regexp for `org-list-send-list'.

* lisp/org-list.el (org-list-send-list): regexp defining the start of
  a radio list is now on par with the one used for radio tables.
---
 lisp/org-list.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-list.el b/lisp/org-list.el
index 2aacd09..0a51ca7 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -1277,7 +1277,7 @@ this list.
 (save-excursion
   (org-list-goto-true-beginning)
   (beginning-of-line 0)
-  (unless (looking-at #\\+ORGLST: *SEND +\\([a-zA-Z0-9_]+\\) +\\([^ 
\t\r\n]+\\)\\( +.*\\)?)
+  (unless (looking-at [ \t]*#\\+ORGLST[: \t][ \t]*SEND[ \t]+\\([^ 
\t\r\n]+\\)[ \t]+\\([^ \t\r\n]+\\)\\([ \t]+.*\\)?)
(if maybe
(throw 'exit nil)
  (error Don't know how to transform this list
-- 
1.7.1.1

___
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: [google] updated awk script for google to org conversion

2010-07-12 Thread Rémi Vanicat
Sven Bretfeld sven.bretf...@gmx.ch writes:


[...]


 2. Running the above script with cron, makes Emacs continually ask if
googlecalendar.org should really be edited, because the file had
changed on disk. So I put the whole thing into an Emacs function:


you could use auto-revert-mode:

  Toggle reverting buffer when file on disk changes.

  With arg, turn Auto Revert mode on if and only if arg is positive.
  This is a minor mode that affects only the current buffer.
  Use `global-auto-revert-mode' to automatically revert all buffers.
  Use `auto-revert-tail-mode' if you know that the file will only grow
  without being changed in the part that is already in the buffer.


[...]


-- 
Rémi Vanicat


___
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-export-section-number-format, doc typo and question

2010-07-12 Thread Robert Klein

On Sun, 11 Jul 2010 15:14:58 +0200, Bernt Hansen be...@norang.ca wrote:


Bernt Hansen be...@norang.ca writes:


Robert Klein rokl...@roklein.de writes:


To my question, I can't seem to get this option to work I've got the
following line in the file header:


#+OPTIONS: section-number-format:(quote (((I .)) . .))


Despite this I get sections numbered 1, 2, 3 etc.

I'd be very grateful for a working example.


Hi Robert,

I think you need to set the variable instead

(setq org-export-section-number-format '(((I .)) . .))

or via the customize interface.



This also seems to work

#+BIND: org-export-section-number-format (((I .)) . .)



Hi Bernt,

thank you very much!

I´ll got with the #+BIND: at the moment.  I suspect the setq
will cause all my files to be in roman...

btw, a great many thanks, too, for the documentation at norang.ca.

It was a great help and I suspect it will continue to be of help
for quite a while to come.

Best wishes
Robert


___
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] How to setup xdg for org-protocol ?

2010-07-12 Thread Sebastian Rose
Julien Fantin julien.fan...@gmail.com writes:
 Thanks Sebastian and David,
 I now have firefox working, I had to use that html file though, as firefox
 wouldn't bring up the application selection dialog with the test links on
 worg.
 Will now look into getting xdg-mime to work for chromium ...
 Or, of course Firefox 3.5 specific (works without installed Gnome
 libraries).  Worked fine for me (dwm), just one thing that is IIRC
 not mentioned on Worg: You have to click on protocol link to set path
 to emacsclient.  E.g.

 cat  /tmp/test.html
 a href=org-protocol:///click/a
 ^D

 and open /tmp/test.html in Firefox.


Such links are on the dokumentation page in worg:

   http://orgmode.org/worg/org-contrib/org-protocol.php#sec-3_5


Was it the mouse click, that made it work?

If so, I could add a note on that page `for FF 3.5 click on one of these
links ...'.


   Sebastian

___
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: Hide timestamps for several days time range in agenda

2010-07-12 Thread Rémi Vanicat
Julien Barnier jul...@no-log.org writes:

 Hi,

 I'm currently trying to use the agenda a bit more, but there is one thing I
 didn't manage :

 If i've got a several days timerange entry, such as the following :

 *** 2010-07-22 jeu.--2010-07-23 ven. Paris


[...]


 My question is : how do I hide the timestamps in these entries ? What I'd like
 to obtain would be simply :

What appear on the agenda is the title of entry, that is what is on ***
line. Just put the timestamp on another line: 

*** Paris
  2010-07-22 jeu.--2010-07-23 ven. 


___
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: New CSS for orgmode and Worg ?

2010-07-12 Thread Christian Egli
Bastien bastien.gue...@wikimedia.fr writes:

 Christian Egli christian.e...@sbszh.ch writes:

 What I'd like to see is something more aligned with the css for asciidoc
 which makes for a very pleasant and readable experience.

 Yes, the CSS behind asciidoc is neat.

 Unfortunatelly my expertise is limited to trial and error when it
 comes to css.

 Trial and error will be very useful for suggested CSS.

Actually, come to think of it: I had totally forgotten that I once took
the css from org
(http://repo.or.cz/w/org-mode.git/blob/HEAD:/ORGWEBPAGE/org.css) and
added some asciidoc styling to it. An example output can be seen at
http://www.daisyproducer.org/. It is in a works for me state, I think
I probably hard coded some assumptions I had on my side.

The css is attached. 

If there is demand I could merge it with the original org.css or create
a patch.

Thanks
Christian

@media all
{
body {
  margin: 1em 5% 1em 5%;
}

a {
  color: blue;
  text-decoration: underline;
}
a:visited {
  color: fuchsia;
}

em {
  font-style: italic;
  color: navy;
}

strong {
  font-weight: bold;
  color: #083194;
}

tt {
  color: navy;
}

h1, h2, h3, h4, h5, h6 {
  color: #527bbd;
  font-family: sans-serif;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

h1, h2, h3 {
  border-bottom: 2px solid silver;
}
h2 {
  padding-top: 0.5em;
}
h3 {
  float: left;
}
h3 + * {
  clear: left;
}

div.sectionbody {
  font-family: serif;
  margin-left: 0;
}

hr {
  border: 1px solid silver;
}

p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

ul, ol, li  p {
  margin-top: 0;
}

pre {
  padding: 0;
  margin: 0;
}

#table-of-contents {
font-size: 85%;
line-height: 1.4em;
}

#table-of-contents ul {
list-style: none;
margin: 7px 0px 7px 15px ;
padding: 0px;
}

div.content { /* Block element content. */
  padding: 0;
}

dl {
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}
dt {
  margin-top: 0.5em;
  margin-bottom: 0;
  font-style: normal;
  color: navy;
}
dd  *:first-child {
  margin-top: 0.1em;
}

ul, ol {
list-style-position: outside;
}

table {
border:3px solid #527bbd;
border-left-style:none;
border-right-style:none;
margin-bottom:1.5em;
margin-top:0.25em;
}
thead {
  font-family: sans-serif;
  font-weight: bold;
  border-bottom: 3px solid #527bbd;
}
tfoot {
  font-weight: bold;
}
th, td {
border-bottom: 1px solid #527bbd;
}
tbody tr:hover {
color: #527bbd;
}

code {font-size: 10pt;}

img {
border: none;
}

.share img {
opacity: .4;
-moz-opacity: .4;
filter: alpha(opacity=40);
}

.share img:hover {
opacity: 1;
-moz-opacity: 1;
filter: alpha(opacity=100);
}


}  /* END OF @media all */


@media screen
{
  body {
	margin: 10px 6% 10px 180px;
	font-family: serif;
  }

  .logo-link {
position: fixed;
top: 10px;
left: 30px;
  }

  #table-of-contents {
	position: fixed;
	display: block;
	left: 10px;
	width: 150px;
	min-height:60px;
	max-height:90%;
	overflow:auto;
  }

  #table-of-contents h2 {
	display:none;
  }



  /* These style are only for IE: */

  * html {
overflow-y: hidden;
padding-bottom:0px;
margin:0px;
  }

  * html body {
height: 100%;
overflow-y: auto;
font-size: 100%;
margin: 0px 0px 0px 180px;
padding: 0px 10% 0px 0px;
  }

  * html #table-of-contents {
position: absolute;
width:150px;
  }

  * html h1 {
margin-top:10px;
  }

  * html .logo-link {
position: absolute;
top: 10px;
left: 30px;
  }

}  /* END OF @media screen */




/* Printing */



@page
{
	margin-top:3cm;
margin-bottom:2.5cm;
}

@page :left
{
  margin-left:1.5cm;
  margin-right:2cm;
}

@page :right
{
  margin-left:2cm;
  margin-right:1.5cm;
}


@media print
{
  body {
	margin:0px;
	font-family: Verdana, Helvetica, sans-serif;
  }

  div {
orphans:2;
  }

  p {
orphans:2;
  }

  li {
orphans:2;
  }

  .logo-link {
top: 10px;
left: 30px;
  }

  #table-of-contents h2 {
margin-top:1.5cm;
page-break-before:auto;
border-style:none;
  }

  #text-table-of-contents {
width:50%;
margin-top:1cm;
margin-left:0cm;
margin-right:auto;
text-align:left;
  }

  #table-of-contents ul {
text-align:left;
  }

  h2 {
/* page-break-before:always; */
  }

  pre {
page-break-inside:avoid;
  }

  /* Hide all org-info.js stuff for printing: */

  div#org-info-js_console-container {
display:none;
  }

  div.org-info-js_local-toc {
display:none;
  }

  table.org-info-js_info-navigation {
display:none;
  }
  div.org-info-js_header-navigation {
display:none;
visibility:hidden; /* needed to overwrite the hardcoded style setting... */
  }

}  /* END OF @media print */

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org

[Orgmode] Re: Hide timestamps for several days time range in agenda

2010-07-12 Thread Julien Barnier
Rémi Vanicat vanicat at debian.org writes:

 What appear on the agenda is the title of entry, that is what is on ***
 line. Just put the timestamp on another line: 
 
 *** Paris
   2010-07-22 jeu.--2010-07-23 ven. 

Yes, this workaround works, thanks !

However, I've noticed that if I only put a single timestamp for an event, it is
dropped in the agenda view, unlike time ranges. For example :

*** 2010-08-01 dim. Paris

will give :

Dimanche1 Août 2010
Paris

That's why I wondered if there is an option to keep the same behavior with time
ranges.

Thanks,

Julien


___
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] how to include time when setting deadlines?

2010-07-12 Thread Michael Gilbert
 I understand the time format in orgmode, but something is eluding me. Many 
 of my projects have specific times for deadlines (that is to say, time of 
 day on the date due). I can't see how to enter that other than by hand. When 
 I type C-c C-d, I get the wonderful date prompt system. But I have not been 
 able to discover how to get that to prompt me for the time or to include a 
 time, like it includes month and day, etc. I've spent some time with the 
 manual and searching the archives, but my search skills haven't prevailed. 
 Any advice?
 
 What you get is really a date time prompt and not just a date prompt.
 You could enter date in any of the ways given in the org-manual [1].
 
 There is just one example on how to enter the time, given in the manual
 22 sept 0:34  -- 2006-09-22 0:34
 
 But, entering time this way works with whatever format you use for
 entering the date. Enter the date and then enter time with a space
 separating the date and time.

That part I understand. Here is my habit: I type C-c Cd and then use the 
SHIFT-arrow key in the minibuffer to select the date. I see that I can type in 
one of many strings that would give me the date and time, but I was looking for 
something equally simple. Not that entering the date + time string in one 
format or another isn't also simple. 

Playing with that a bit, I just discovered that I can still select the DATE in 
that manner in the minibuffer and if I then just type in the time in place, I 
get the fully formed DATE+TIME deadline. That works. I think I was naively 
assuming there was a similar navigation shortcut for the TIME component.

Thank you!

— 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


Re: [Orgmode] patch for org mode

2010-07-12 Thread Carsten Dominik


On Jul 9, 2010, at 1:05 PM, Stephen Eglen wrote:


hi Carsten,
sorry for delay.


+...@comment SJE: org-feed is not autoloaded - should that be  
mentioned?


The main entry points in org-feed are autoloaded - what do you mean
here?


sorry, no worries, I hadn't tried running the code, so the
org-feed-alist was not visible as a variable.

By the way, Mark Scala recently posted the following excellent  
snippet:


(setq org-feed-alist
 '((Slashdot
 http://rss.slashdot.org/Slashdot/slashdot;
 ~/txt/org/feeds.org Slashdot Entries)))

That would make for a better example than the one currently in the
documentation, as everyone should be able to run it.


Good idea, thanks, I changed that.

- 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: longlines-mode [6.36trans]

2010-07-12 Thread Carsten Dominik


On Jul 8, 2010, at 3:44 AM, Aidan Gauland wrote:

Normally, when I save an Org buffer with no trailing newline, a  
newline will
be placed at the end of the buffer (so that the file ends with a  
newline).
But when I enable longlines-mode, a newline is no longer added  
automatically,
and I must add one manually.  If I turn longlines-mode off, Emacs  
does not go
back to adding a newline automatically.  I'm not sure if this a bug  
with
Org-mode or longlines-mode or Emacs or what, but I have only noticed  
this when
using Org-mode.  If this is not a bug in Org-mode, I apologise and  
hope that

it's not any trouble for you to pass this on to the Emacs developers.


I think longlines.el is pretty much obsolete with word-wrap in Emacs 23.
And it has never worked well with Org mode.

- Carsten



Emacs  : GNU Emacs 24.0.50.4 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
of 2010-07-05 on neko
Package: Org-mode version 6.36trans

current state:
==
(setq
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
vars)

org-metaup-hook '(org-babel-load-in-session-maybe)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
org-export-latex-format-toc-function 'org-export-latex-format-toc- 
default

org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers
	org-cycle-show-empty-lines org-optimize-window-after- 
visibility-change)

org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
org-mode-hook '(#[nil \300\301\302\303\304$\207
	 [org-add-hook change-major-mode-hook org-show-block-all  
append local] 5]

 #[nil 
\300\301\302\303\304$\207
	 [org-add-hook change-major-mode-hook org-babel-show-result- 
all append


local]
 5]
 
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash- 
at-point


org-babel-execute-src-block-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-export-interblocks '((lob org-babel-exp-lob-one-liners)

(src org-babel-exp-inline-src-blocks))
org-occur-hook '(org-first-headline-recenter)
org-from-is-user-regexp \\Aidan Gauland\\
org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- 
toc


 org-beamer-auto-fragile-frames

 
org-beamer-place-default-actions-for-lists)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-export-blocks '((src org-babel-exp-src-blocks nil)

 (comment org-export-blocks-format-comment t)

 (ditaa org-export-blocks-format-ditaa nil)

 (dot org-export-blocks-format-dot nil))
)

___
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] Failed to create radio tables

2010-07-12 Thread Nicolas Goaziou
I forgot to post changes in templates.

Btw, it seems that you reverted changes in documentation in
94689a04b00f88932e63024ae29bacea4dbcc752, but it is still #+ORGLST and
not #+ORGLIST.

Regards,

-- Nicolas

From dff3343a8989f1f280fdf15f64bcf47ba9ac7f56 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou n.goaz...@gmail.com
Date: Mon, 12 Jul 2010 14:40:18 +0200
Subject: [PATCH] Fix templates for radio list.

* lisp/org-list.el (org-list-radio-list-templates): Fix templates.
---
 lisp/org-list.el |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/org-list.el b/lisp/org-list.el
index 0a51ca7..49b8e2b 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -195,19 +195,19 @@ When the indentation would be larger than this, it will 
become
 % END RECEIVE ORGLST %n
 \\begin{comment}
 #+ORGLST: SEND %n org-list-to-latex
-| | |
+-
 \\end{comment}\n)
 (texinfo-mode @c BEGIN RECEIVE ORGLST %n
 @c END RECEIVE ORGLST %n
 @ignore
 #+ORGLST: SEND %n org-list-to-texinfo
-| | |
+-
 @end ignore\n)
 (html-mode !-- BEGIN RECEIVE ORGLST %n --
 !-- END RECEIVE ORGLST %n --
 !--
 #+ORGLST: SEND %n org-list-to-html
-| | |
+-
 --\n))
   Templates for radio lists in different major modes.
 All occurrences of %n in a template will be replaced with the name of the
-- 
1.7.1.1


___
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] [PATCH] Add the ability to remove time ranges specifications for agenda items that span on several days

2010-07-12 Thread Julien Barnier
Carsten Dominik carsten.dominik at gmail.com writes:

 No, there is currently not.

I just coded a small patch that seems to work. It introduces a new custom
variable to org-agenda, called org-agenda-remove-timeranges-from-blocks (there
could be a better name !) which, when non-nil, removes the time ranges
specifications from agenda lines.

Short example with the following entry :

*** 2010-07-16 lun.--2010-07-17 mer. Test entry

If the variable is set to nil :

Vendredi   16 Juillet 2010
   -- 2010-07-16 lun.--2010-07-17 mer. Test entry
Samedi 17 Juillet 2010
   -- 2010-07-16 lun.--2010-07-17 mer. Test entry

If the variable is non-nil :

Vendredi   16 Juillet 2010
   --  Test entry
Samedi 17 Juillet 2010
   --  Test entry


Feel free to modify the patch or to find it quite unuseful :-)

Sincerely,

Julien

---
 lisp/org-agenda.el |   14 +-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 191ee52..7a10375 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1336,6 +1336,11 @@ the headline/diary entry.
  (const :tag Never nil)
  (const :tag When at beginning of entry beg)))
 
+(defcustom org-agenda-remove-timeranges-from-blocks nil
+  Non-nil means remove time ranges specifications in agenda
+items that span on several days.
+  :group 'org-agenda-line-format
+  :type 'boolean)
 
 (defcustom org-agenda-default-appointment-duration nil
   Default duration for appointments that only have a starting time.
@@ -4790,13 +4795,20 @@ FRACTION is what fraction of the head-warning time has
passed.
(setq tags (org-get-tags-at))
(looking-at \\*+[ \t]+\\([^\r\n]+\\))
(setq head (match-string 1))
+   (setq remove-re
+ (if org-agenda-remove-timeranges-from-blocks
+ (concat
+   (regexp-quote s1) .*?
+  --
+   (regexp-quote s2) .*?)
+   nil))
(setq txt (org-format-agenda-item
   (format
(nth (if (= d1 d2) 0 1)
 org-agenda-timerange-leaders)
(1+ (- d0 d1)) (1+ (- d2 d1)))
   head category tags
-  timestr)))
+  timestr nil remove-re)))
  (org-add-props txt props
'org-marker marker 'org-hd-marker hdmarker
'type block 'date date
-- 
1.7.1



___
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-07-12 Thread Dave Kritzberg
Hello Matthew and Orgmode Users,

Is there any compatibility issue with mobile-org and the iPhone OS v. 4?

Thanks,
Dave Kritzberg


On Sun, May 30, 2010 at 4:33 PM, Matthew Jones bsdmatb...@gmail.com wrote:

 With regard to the note capture display, I'm not sure how I feel about
 this... I like having the save button on the page because it reduces the
 number of clicks to save the note which can be huge if you are just trying
 to quickly jot something down.   I do, however, need to fix it so that the
 Save button is always visible.The thing about this particular Activity
 display is that the text box is always fixed to some percentage of the
 display... so that the save button would never be off the page but rather
 the Text box would scroll if you had too much text in it.   I may consider
 adding the save button to a menu once I add more options to the Capture
 screen (like adding a TODO flag, or Tags) but I think it's most intuitive if
 the save button is on the display mainly because you can't miss it, some
 things about Android happen in the background so that if you navigate away
 from the page it automatically saves the contents... but that's not how this
 capture page works (and I don't know that I would want it to automatically
 save if you hit the back button) this allows it to fit into the workflow and
 makes it obvious that you have to hit the save button to accomplish the save
 action. These are just my thoughts.   As I bake out the Capture system I
 will certainly revisit it if the flow works better to have it under the
 'Menu' action.

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


 On Sun, May 30, 2010 at 12:21 PM, Robert Goldman rpgold...@sift.infowrote:

 julien cubizolles j.cubizolles at free.fr writes:

 
  Le vendredi 28 mai 2010 à 11:05 +0200, Sven Bretfeld a écrit :
   Hi to all, hi Matthew
  
   I can say that Note capturing works on my HTC
   Magic,
  Working also on my LG GW620, however the SAVE Button gets hidden by the
 on-screen keyboard.
  I think I've seen other android apps keeping some buttons visible
  whether the keyboard is or isn't displayed.

 If I might comment --- one of the worst things about Android applications,
 IMO,
 is the way they are confusing about whether menus should be displayed in
 page,
 or invoked by the menu button.

 I'd urge you to avoid the on-page display in favor of the menu button.  If
 you
 stick to that the user never needs to remember to scroll down to find the
 controls and there are just too many ways for the on-page display to be
 rendered
 either hard to reach or completely inaccessible.  This problem is made
 worse
 (especially by contrast with the iPhone) because you don't have full
 knowledge
 of the screen dimensions.

 So I'd suggest that if a button is important (save, send, schedule, etc.)
 that
 you make it reachable by the center menu button.

 HtH,
 cheers,
 r



 ___
 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


[Orgmode] Help installing org-mode on a MAC please?

2010-07-12 Thread Erwin Panen

Hi everyone,

This is perhaps a trivial question, so please bear with me.

I recently switched over to Mac, so I'm not familiar yet with all 
inside-out Mac. At first I installed Aquamacs, but to be more compatible 
I'd prefer to keep up with org-mode using git.


I managed to install homebrew, next git, and was able to use git to get 
a clone of org-mode so that's allright.

(using git clone git://repo.or.cz/org-mode.git)
Next I tried to follow the FAQ: How do I keep current with Org mode 
development? 
(http://orgmode.org/worg/org-faq.php#keeping-current-with-Org-mode-development)


When I do: $ cd org-mode  make  make doc  make install
everything seems to go allright, but I get an error in the end 
complaining about LateX not being installed.
So I installed MacTEX and tried running the above once more, with the 
same error.


When I open up a terminal window and issue emacs, it opens up emacs 
allright, but I find no xemacs? Is this not included with org-mode.git?


Thanks for helping out!

Erwin




___
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: why would org-mode-hook be a void variable?

2010-07-12 Thread Michael Gilbert

 I guess my main question is why org-mode-hook would be a void
 variable. Did I not capture something from the instructions in the
 manual? Is there something that needs to be set before hand? I'm just
 not sure where to look.
 
 Did you initialize org-mode with
 
 (require 'org-install)

Yes. Made sure of it. No change.

Any other ideas?

— 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


[Orgmode] Re: [google] updated awk script for google to org conversion

2010-07-12 Thread Michael Steiner

On 2010-07-12 05:22, Rémi Vanicat wrote:

Sven Bretfeldsven.bretf...@gmx.ch  writes:


[...]



2. Running the above script with cron, makes Emacs continually ask if
googlecalendar.org should really be edited, because the file had
changed on disk. So I put the whole thing into an Emacs function:



you could use auto-revert-mode:


That's what i do: i slightly changed ical2org.awk by replacing line 77

 print #+TITLE: Main Google calendar entries

with

 print #+TITLE: Main Google calendar entries -*- mode: 
auto-revert; mode: org; -*-


which does make it automatic exactly for this files.  Works fairly well. 
In addition as i only do one-way sync i also turn the files (via 
file-permissions) read-only so the buffer is read-only and not 
accidentally modifled ..


-michael-

BTW: Sven, if you use option -O outputfilename you don't have the 
problem .[0-9] files; besides it's easier to manage multiple calendars ...





___
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-07-12 Thread Richard Moreland
Hi Dave,

I've been using the current version of MobileOrg on iOS 4.0 since an
early beta and haven't had any trouble.  In addition, I've been
testing a new version that builds against the 4.0 SDK and thus
benefits from some of the new features like instant state save and
restore/multitasking.

-Richard

On Sun, Jul 11, 2010 at 1:56 AM, Dave Kritzberg
dave.kritzb...@gmail.com wrote:
 Hello Matthew and Orgmode Users,

 Is there any compatibility issue with mobile-org and the iPhone OS v. 4?

 Thanks,
 Dave Kritzberg


 On Sun, May 30, 2010 at 4:33 PM, Matthew Jones bsdmatb...@gmail.com wrote:

 With regard to the note capture display, I'm not sure how I feel about
 this... I like having the save button on the page because it reduces the
 number of clicks to save the note which can be huge if you are just trying
 to quickly jot something down.   I do, however, need to fix it so that the
 Save button is always visible.    The thing about this particular Activity
 display is that the text box is always fixed to some percentage of the
 display... so that the save button would never be off the page but rather
 the Text box would scroll if you had too much text in it.   I may consider
 adding the save button to a menu once I add more options to the Capture
 screen (like adding a TODO flag, or Tags) but I think it's most intuitive if
 the save button is on the display mainly because you can't miss it, some
 things about Android happen in the background so that if you navigate away
 from the page it automatically saves the contents... but that's not how this
 capture page works (and I don't know that I would want it to automatically
 save if you hit the back button) this allows it to fit into the workflow and
 makes it obvious that you have to hit the save button to accomplish the save
 action.     These are just my thoughts.   As I bake out the Capture system I
 will certainly revisit it if the flow works better to have it under the
 'Menu' action.
 73,
 Matthew W. Jones (KI4ZIB)
 http://matburt.net


 On Sun, May 30, 2010 at 12:21 PM, Robert Goldman rpgold...@sift.info
 wrote:

 julien cubizolles j.cubizolles at free.fr writes:

 
  Le vendredi 28 mai 2010 à 11:05 +0200, Sven Bretfeld a écrit :
   Hi to all, hi Matthew
  
   I can say that Note capturing works on my HTC
   Magic,
  Working also on my LG GW620, however the SAVE Button gets hidden by the
 on-screen keyboard.
  I think I've seen other android apps keeping some buttons visible
  whether the keyboard is or isn't displayed.

 If I might comment --- one of the worst things about Android
 applications, IMO,
 is the way they are confusing about whether menus should be displayed in
 page,
 or invoked by the menu button.

 I'd urge you to avoid the on-page display in favor of the menu button.
  If you
 stick to that the user never needs to remember to scroll down to find the
 controls and there are just too many ways for the on-page display to be
 rendered
 either hard to reach or completely inaccessible.  This problem is made
 worse
 (especially by contrast with the iPhone) because you don't have full
 knowledge
 of the screen dimensions.

 So I'd suggest that if a button is important (save, send, schedule, etc.)
 that
 you make it reachable by the center menu button.

 HtH,
 cheers,
 r



 ___
 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



___
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] Help installing org-mode on a MAC please?

2010-07-12 Thread Juan
Hi Erwin,

I'm using Mac also (not Aquamacs emacs, but EmacsForMacOSX instead).

XEmacs is a completely different branch of Emacs, which I don't think
is available for OSX.

Then there is the text-mode emacs you run from the terminal.

And then there is the emacs you installed (Aquamacs), which runs on
its own graphics window (outside Terminal.app).

So don't confuse those 3 emacs versions.

You only need to install LaTeX if you want to build the documentation
(make doc). This is not strictly necessary.

Also, I have to modify the Makefile from org-mode to fit my emacs
installation. Aquamacs emacs should be similar, just check the exact
location of the Emacs application and change accordingly.

This is how my org-mode Makefile looks:

8
   ##--
   ##  YOU MUST EDIT THE FOLLOWING LINES
   ##--

   # Name of your emacs binary
   EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs

   # Where local software is found
   prefix=/Applications/Emacs.app

   # Where local lisp files go.
   lispdir = $(prefix)/Contents/Resources/lisp/org

   # Where info files go.
   infodir = $(prefix)/Contents/Resources/info
8

The rest of the Makefile you leave as is.

Hope this helps.

Regards,
.j.

On Sun, Jul 11, 2010 at 05:43:26PM +0200, Erwin Panen wrote:
 I recently switched over to Mac, so I'm not familiar yet with all
 inside-out Mac. At first I installed Aquamacs, but to be more
 compatible I'd prefer to keep up with org-mode using git.

 I managed to install homebrew, next git, and was able to use git to
 get a clone of org-mode so that's allright.
 (using git clone git://repo.or.cz/org-mode.git)
 Next I tried to follow the FAQ: How do I keep current with Org mode
 development? 
 (http://orgmode.org/worg/org-faq.php#keeping-current-with-Org-mode-development)

 When I do: $ cd org-mode  make  make doc  make install
 everything seems to go allright, but I get an error in the end
 complaining about LateX not being installed.
 So I installed MacTEX and tried running the above once more, with
 the same error.

 When I open up a terminal window and issue emacs, it opens up emacs
 allright, but I find no xemacs? Is this not included with
 org-mode.git?

___
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] Renumbering of footnotes, and list line spaces

2010-07-12 Thread David Maus
Adam wrote:
Am using Org-mode version 6.21b

The Org Manual section 2.10, suggest that  s, r, S, n, d  commands are
available if a prefix-argument is supplied to the Footnote action command
C-c C-x f.

When I enter   C-u  C-c  C-x  f a footnote command menu appears with
only the following; [s]ort  |  convert to [n]umeric  |  [d]elete

The manual is about current Org mode and 6.21b did just support sorting,
converting and deleting footnotes.  So no renumbering in 6.21b.

I wish to Sort or to Renumber the footnotes. Sort does not appear to sort
the collection numerically, and renumber seems unavailable.

I've tried to sort and it works: The footnotes in the footnote section
are sorted by their appearance in the main text.  E.g.


,
| * This is just a test
|
|   Here is the first, but has number two11!!1[fn:2]
|
|   Here is one [fn:1].
|
| * Footnotes
|
| [fn:1] A footnote!
|
| [fn:2] See!
`

Becomes

,
| * This is just a test
|
|   Here is the first, but has number two11!!1[fn:2]
|
|   Here is one [fn:1].
|
| * Footnotes
| [fn:2] See!
|
| [fn:1] A footnote!
|
`

After sorting (C-u C-c C-x f s).

For Plain Lists,  I wish to include a line space after each list entry. Is
there a simple way to do this ?

Create the new list item by pressing M-RET.

HTH
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpzAL83Qgrf9.pgp
Description: 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] [babel] re-hash cached blocks on each execution? or, force re-hash?

2010-07-12 Thread Austin Frank
Hello!

I would find it extremely useful if the org-babel-execute-* family of
commands re-hashed the executed blocks on each execution, or,
alternatively, accepted a prefix argument that meant re-execute this
block even if cached, and replace the cache-hash if necessary.

Currently, if a block is cached, when I change something inside the
block and then execute the block again, the hash in the #+results line
doesn't change.  In cases where the contents of the block change but the
output of the block does not, this makes it very difficult to tell
whether the block has been re-executed or not.

If there are good reasons not to re-hash the block on each execution and
update the hash in the results line, I would like to be able to force
this behavior.  In cases where I know that I want the block to be
re-hashed and re-executed, it seems like C-u C-c C-c or C-u C-u C-c C-c
would be a natural and org-ish way to force this.

Here's a simple test case:

--8---cut here---start-8---
* elisp example
#+source:  elisp-test
#+BEGIN_SRC emacs-lisp :cache yes
(print hello world)
(print re-hash and re-execute, please!)
#+END_SRC

#+results[f6dfc164b16889f1569fcd3242ba3de721853bc8]: elisp-test
: hello world

Now I change the above block in place (but reproduce the changes
sequentially here):

#+source:  elisp-test
#+BEGIN_SRC emacs-lisp :cache yes
(print hello world)
(print re-hash and re-execute, please!)
#+END_SRC

#+results[f6dfc164b16889f1569fcd3242ba3de721853bc8]: elisp-test
: re-hash and re-execute, please!

Note that the block changed, and the results changed, but the hash did
not.

Now we change it again, in a way that doesn't change the output:

#+source:  elisp-test
#+BEGIN_SRC emacs-lisp :cache yes
(setq four (+ 2 2))
(print hello world)
(print re-hash and re-execute, please!)
#+END_SRC

#+results[f6dfc164b16889f1569fcd3242ba3de721853bc8]: elisp-test
: re-hash and re-execute, please!

Again the block changed, but this time the results did not change and
neither did the hash.  This makes it very hard to tell whether the code
has been re-executed or not.  If the hash changed when the block
changed, I could tell that the new code had been detected and run.

Finally, we check whether the previous change was actually evaluated:

* elisp test
#+source:  elisp-test
#+BEGIN_SRC emacs-lisp :cache yes
(setq four (+ 2 2))
(print hello world)
(print re-hash and re-execute, please!)
(print four)
#+END_SRC

#+results[f6dfc164b16889f1569fcd3242ba3de721853bc8]: elisp-test
: 4

So the block is re-evaluated when it's changed, but the hash isn't
updated.  The only way we can tell if an altered block is re-run is if
the output changes, but that won't necessarily be the case for every
change in a block.  It would be very useful if the block were re-hashed
before each execution, and the cache line updated whenever the hash
changes.  One possible solution is to force re-hashing and re-execution
with a prefix argument (or double prefix argument, if preferred).
--8---cut here---end---8---


Thanks,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


pgpjr3yn7t5DQ.pgp
Description: 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] [BABEL] tangling with leaving non-source code lines as empty lines?

2010-07-12 Thread Rainer M Krug
Hi Eric,

would it be possible, when tangling, to leave lines without source code in
the resulting code file as empty lines? The reasoning would be that error
messages (at least in R) give the line in which the error occurred. If the
line numbers in which the code sits would be preserved (by leaving empty
lines where no code is in the .org file), debugging would be much easier.

By the way: I am using the after tangle hook and it works absolutely
perfectly.

Thanks and cheers,

Rainer


-- 
NEW GERMAN FAX NUMBER!!!

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

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com
___
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: remember template is slow

2010-07-12 Thread Buck Brody
Bernt,

Here are the results:

org-remember  1
   2.497 2.497
org-do-remember   1
   2.496 2.496
org-remember-apply-template   1
   2.493999  2.493999
org-mode  1
   2.259 2.259
org-install-agenda-files-menu 1
   2.258 2.258
org-agenda-files  1
   2.257 2.257
org-select-remember-template  1
   0.229 0.229
org-remember-handler  1
   0.001 0.001
org-set-regexps-and-options   1
   0.001 0.001
org-remember-finalize 1
   0.001 0.001
org-fix-tags-on-the-fly   2
   0.001 0.0005
org-delete-backward-char  1
   0.001 0.001
org-remember-kill 1
   0.001 0.001
org-set-font-lock-defaults1
   0.001 0.001
org-hide-wide-columns 2
   0.001 0.0005
org-align-tags-here   2
   0.001 0.0005
On Sat, Jul 10, 2010 at 5:49 AM, Bernt Hansen be...@norang.ca wrote:

 Daniel J. Sinder dan...@sindercity.com writes:

  On Wed, Jul 7, 2010 at 9:30 AM, Buck Brody buckbr...@gmail.com wrote:
 
      I'm finding that my remember templates are slow to load.  I've got a 
  lag of about three to four
      seconds.  I know that doesn't sound like much, but it's kind of puts a 
  kink in the workflow.  I
      use GNU emacs on Windows.  I also have cygwin installed, and I have 
  noticed that the problem
      doesn't occur when using cygwin.  Any ideas?
 
  For what it's worth, I've also had this problem for a while now.  However, 
  I *do* use emacs w/
  cygwin:
  Windows XP (w/ Cygwin)
  GNU Emacs 23.2.1
  Org-mode version 6.36trans (release_6.36.453.g0cd4)
 
  I suspect (for no particular reason other than disdain for Windows) that it 
  is related to poor file
  system (NTFS) access speeds.  For example, maybe org is trying to open 
  several files to look for
  TODO keywords and/or tags?

 You may want to try profiling the code as described by Carsten in the
 following post:

 http://thread.gmane.org/gmane.emacs.orgmode/13182

 That may provide additional information to show exactly where the
 slowdown is taking place.

 Regards,
 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] Org-babel init

2010-07-12 Thread Jordi Inglada
Hi all,

I am having the same problem as this user here:

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html

and the contrib/lisp directory is indeed in my load path.

I am using a git changeset cloned today (Org-mode version 6.34trans
(release_6.36.608.gc1ef)).

I have tried using emacs -q and then loading an .el file containing
only the following lines:

(setq load-path (cons /home/inglada/local/src/org-mode/lisp load-path))
(setq load-path (cons /home/inglada/local/src/org-mode/contrib/lisp 
load-path))

(require 'org-install)
(require 'org-babel-init)
(require 'org-babel-python)

and I get the same result.

Thank you very much for your help.

Jordi

___
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 init

2010-07-12 Thread Richard Riley
Jordi Inglada jordi.ingl...@cesbio.cnes.fr writes:

 Hi all,

 I am having the same problem as this user here:

 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html

 and the contrib/lisp directory is indeed in my load path.

 I am using a git changeset cloned today (Org-mode version 6.34trans
 (release_6.36.608.gc1ef)).

 I have tried using emacs -q and then loading an .el file containing
 only the following lines:

 (setq load-path (cons /home/inglada/local/src/org-mode/lisp load-path))
 (setq load-path (cons /home/inglada/local/src/org-mode/contrib/lisp 
 load-path))

 (require 'org-install)
 (require 'org-babel-init)
 (require 'org-babel-python)

 and I get the same result.

 Thank you very much for your help.

 Jordi

 ___
 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



I havent looked in detail but I recently had issues with it. Here is my
init.el. No idea if its even relevant to be honest, but babel works for
elisp files ;)


--8---cut here---start-8---
;;; init.el --- Where all the magic begins
;;
;; This file loads both
;; - Org-mode : http://orgmode.org/ and
;; - Org-babel: 
http://orgmode.org/worg/org-contrib/babel/org-babel.php#library-of-babel
;;
;; It then loads the rest of our Emacs initialization from Emacs lisp
;; embedded in literate Org-mode files.

;; Load up Org Mode and Org Babel for elisp embedded in Org Mode files
(setq dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name)))

(let* ((org-dir (expand-file-name
 lisp (expand-file-name
 org-mode dotfiles-dir)))
   (org-contrib-dir (expand-file-name
 lisp (expand-file-name
 contrib (expand-file-name
.. org-dir
 (load-path (append (list org-dir org-contrib-dir (concat org-dir /babel))
  (or load-path nil
  ;; load up Org-mode and Org-babel
  (require 'org-install)
  (require 'ob-tangle)
)

;; load up all literate org-mode files in this directory
;;(mapc #'org-babel-load-file (directory-files dotfiles-dir t \\.org$))
(org-babel-load-file ~/.emacs.d/emacs-init.org)
;;; init.el ends here
--8---cut here---end---8---


Hopefully it helps.

r.


___
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] Help: Agenda not working anymore

2010-07-12 Thread Markus Heller

Hello,

today, after starting emacs, the agenda does not work anymore.  I type 
C-a a to get the daily overview, but org gets stuck at CONTENTS...done 
(see message buffer at the end).


When I try f9-m (see Bernt's set-up), I get the following message in the 
mini-buffer: mapcar: Wrong type argument: listp, \.\.\.


I pulled the latest release, but that didn't help unfortunately.

My versions:

Org-mode: Org-mode version 6.36trans (release_6.36.608.gc1ef)
emacs: 23.2.1
Windoze XP

Please help :)

Thanks!!
Markus

*Messages* after C-a a:
Loading c:/Documents and 
Settings/mheller/.emacs.d/org-mode/contrib/lisp/org-checklist.el 
(source)...done
Loading c:/Documents and 
Settings/mheller/.emacs.d/org-mode/contrib/lisp/org-depend.el 
(source)...done
Loading c:/Documents and 
Settings/mheller/.emacs.d/org-mode/contrib/lisp/org-expiry.el 
(source)...done
Loading c:/Documents and 
Settings/mheller/.emacs.d/site-lisp/color-theme-6.6.0/themes/color-theme-example.el 
(source)...done
Loading c:/Documents and 
Settings/mheller/.emacs.d/site-lisp/color-theme-6.6.0/themes/color-theme-library.el 
(source)...done
Loading c:/Documents and 
Settings/mheller/.emacs.d/site-lisp/themes/color-theme-railscasts.el 
(source)...done

Loading paren...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Press key for agenda command:
OVERVIEW
CONTENTS...done
Starting new Ispell process [default] ...
Restoring clock data
Loading c:/Documents and Settings/mheller/.emacs.d/org-clock-save.el 
(source)...done

OVERVIEW
Loading vc-git...done
OVERVIEW
CONTENTS...done
OVERVIEW
CONTENTS...done
OVERVIEW
CONTENTS...done
Quit


___
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: Help: Agenda not working anymore

2010-07-12 Thread Markus Heller

On 7/12/2010 9:29 AM, Markus Heller wrote:

Hello,

today, after starting emacs, the agenda does not work anymore. I type
C-a a to get the daily overview, but org gets stuck at CONTENTS...done
(see message buffer at the end).

When I try f9-m (see Bernt's set-up), I get the following message in the
mini-buffer: mapcar: Wrong type argument: listp, \.\.\.

I pulled the latest release, but that didn't help unfortunately.


I did some more testing:  No matter what agenda command I use, it 
emacs/org always get stuck at CONTENTS...done.  Doesn't matter if it's 
C-a a, or C-a t ...



My versions:

Org-mode: Org-mode version 6.36trans (release_6.36.608.gc1ef)
emacs: 23.2.1
Windoze XP


The same issue exists when using emacs 23.1.1.

ANy ideas?  ANyone?


Please help :)

Thanks!!
Markus

*Messages* after C-a a:
Loading c:/Documents and
Settings/mheller/.emacs.d/org-mode/contrib/lisp/org-checklist.el
(source)...done
Loading c:/Documents and
Settings/mheller/.emacs.d/org-mode/contrib/lisp/org-depend.el
(source)...done
Loading c:/Documents and
Settings/mheller/.emacs.d/org-mode/contrib/lisp/org-expiry.el
(source)...done
Loading c:/Documents and
Settings/mheller/.emacs.d/site-lisp/color-theme-6.6.0/themes/color-theme-example.el
(source)...done
Loading c:/Documents and
Settings/mheller/.emacs.d/site-lisp/color-theme-6.6.0/themes/color-theme-library.el
(source)...done
Loading c:/Documents and
Settings/mheller/.emacs.d/site-lisp/themes/color-theme-railscasts.el
(source)...done
Loading paren...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Press key for agenda command:
OVERVIEW
CONTENTS...done
Starting new Ispell process [default] ...
Restoring clock data
Loading c:/Documents and Settings/mheller/.emacs.d/org-clock-save.el
(source)...done
OVERVIEW
Loading vc-git...done
OVERVIEW
CONTENTS...done
OVERVIEW
CONTENTS...done
OVERVIEW
CONTENTS...done
Quit


___
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-babel init

2010-07-12 Thread Erik Iverson

You need to see:

http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html


Jordi Inglada wrote:

Hi all,

I am having the same problem as this user here:

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html

and the contrib/lisp directory is indeed in my load path.

I am using a git changeset cloned today (Org-mode version 6.34trans
(release_6.36.608.gc1ef)).

I have tried using emacs -q and then loading an .el file containing
only the following lines:

(setq load-path (cons /home/inglada/local/src/org-mode/lisp load-path))
(setq load-path (cons /home/inglada/local/src/org-mode/contrib/lisp 
load-path))

(require 'org-install)
(require 'org-babel-init)
(require 'org-babel-python)

and I get the same result.

Thank you very much for your help.

Jordi

___
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] Failed to create radio tables

2010-07-12 Thread Carsten Dominik


On Jul 12, 2010, at 2:44 PM, Nicolas Goaziou wrote:


I forgot to post changes in templates.



Applied, thanks.



Btw, it seems that you reverted changes in documentation in
94689a04b00f88932e63024ae29bacea4dbcc752, but it is still #+ORGLST and
not #+ORGLIST.


I reverted them before applying your patch, assuming that you'd have  
these in your patch.

Thanks!

- 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] Help: Agenda not working anymore

2010-07-12 Thread Erik Iverson

Could be related:

I just pulled latest from git this morning:  my agenda seems to compile, 
but I get in the *Messages* buffer:


concat: Wrong type argument: listp, * Letters

Backtrace follows:

Debugger entered--Lisp error: (wrong-type-argument listp * Letters)
  nth(0 * Letters)
  (concat (?\\( (regexp-quote \\) (nth 0 el) [^[:alnum:]] \\))
  (list (concat (?\\( (regexp-quote \\) (nth 0 el) [^[:alnum:]] 
\\)) (\` (0 ...)))
  (lambda (el) (list (concat (?\\( ... ... [^[:alnum:]] \\)) (\` 
...)))(* Letters)
  mapcar((lambda (el) (list (concat (?\\( ... ... [^[:alnum:]] 
\\)) (\` ...))) (* Letters ** Latin (Agrave \\`{A} nil 
Agrave; A À À) (agrave \\`{a} nil agrave; a à à) 
(Aacute \\'{A} nil Aacute; A Á Á) (aacute \\'{a} nil 
aacute; a á á) (Acirc \\^{A} nil Acirc; A Â Â) 
(acirc \\^{a} nil acirc; a â â) (Atilde \\~{A} nil 
Atilde; A Ã Ã) (atilde \\~{a} nil atilde; a ã ã) 
(Auml \\\{A} nil Auml; Ae Ä Ä) (auml \\\{a} nil 
auml; ae ä ä) (Aring \\AA{} nil Aring; A Å Å) 
(AA \\AA{} nil Aring; A Å Å) (aring \\aa{} nil 
aring; a å å) (AElig \\AE{} nil AElig; AE Æ Æ) 
(aelig \\ae{} nil aelig; ae æ æ) (Ccedil \\c{C} nil 
Ccedil; C Ç Ç) (ccedil \\c{c} nil ccedil; c ç ç) 
(Egrave \\`{E} nil Egrave; E È È) (egrave \\`{e} nil 
egrave; e è è) (Eacute \\'{E} nil Eacute; E É É) 
(eacute \\'{e} nil eacute; e é é) (Ecirc \\^{E} nil 
Ecirc; E Ê Ê) (ecirc \\^{e} nil ecirc; e ê ê) 
(Euml \\\{E} nil Euml; E Ë Ë) (euml \\\{e} nil 
euml; e ë ë) (Igrave \\`{I} nil Igrave; I Ì Ì) 
(igrave \\`{i} nil igrave; i ì ì) (Iacute \\'{I} nil 
Iacute; I Í Í) (iacute \\'{i} nil iacute; i í í) 
(Icirc \\^{I} nil Icirc; I Î Î) (icirc \\^{i} nil 
icirc; i î î) (Iuml \\\{I} nil Iuml; I Ï Ï) 
(iuml \\\{i} nil iuml; i ï ï) (Ntilde \\~{N} nil 
Ntilde; N Ñ Ñ) (ntilde \\~{n} nil ntilde; n ñ ñ) 
(Ograve \\`{O} nil Ograve; O Ò Ò) (ograve \\`{o} nil 
ograve; o ò ò) (Oacute \\'{O} nil Oacute; O Ó Ó) 
(oacute \\'{o} nil oacute; o ó ó) (Ocirc \\^{O} nil 
Ocirc; O Ô Ô) (ocirc \\^{o} nil ocirc; o ô ô) 
(Otilde \\~{O} nil Otilde; O Õ Õ) (otilde \\~{o} nil 
otilde; o õ õ) (Ouml \\\{O} nil Ouml; Oe Ö Ö) 
(ouml \\\{o} nil ouml; oe ö ö) (Oslash \\O nil 
Oslash; O Ø Ø) (oslash \\o{} nil oslash; o ø ø) 
(OElig \\OE{} nil OElig; OE OE Œ) ...))

  (font-lock-add-keywords nil (mapcar (lambda ... ...) org-entities))
  org-pretty-entities()
  run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  (progn (org-mode) (org-create-dblock props) (org-update-dblock) 
(font-lock-fontify-buffer) (forward-line 2) (buffer-substring (point) 
(progn ... ...)))
  (unwind-protect (progn (org-mode) (org-create-dblock props) 
(org-update-dblock) (font-lock-fontify-buffer) (forward-line 2) 
(buffer-substring ... ...)) (and (buffer-name temp-buffer) (kill-buffer 
temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn 
... ... ... ... ... ...) (and ... ...)))
  (with-current-buffer temp-buffer (unwind-protect (progn ... ... ... 
... ... ...) (and ... ...)))
  (let ((temp-buffer ...)) (with-current-buffer temp-buffer 
(unwind-protect ... ...)))
  (with-temp-buffer (org-mode) (org-create-dblock props) 
(org-update-dblock) (font-lock-fontify-buffer) (forward-line 2) 
(buffer-substring (point) (progn ... ...)))
  org-get-clocktable(:link t :maxlevel 2 :tstart 733965 :tend 733972 
:scope agenda)
  apply(org-get-clocktable (:link t :maxlevel 2 :tstart 733965 :tend 
733972 :scope agenda))

  (setq tbl (apply (quote org-get-clocktable) p))
  (let ((org-agenda-files ...) (p 
org-agenda-clockreport-parameter-plist) tbl) (setq p (org-plist-delete p 
:block)) (setq p (plist-put p :tstart clocktable-start)) (setq p 
(plist-put p :tend clocktable-end)) (setq p (plist-put p :scope ...)) 
(setq tbl (apply ... p)) (insert tbl))
  (progn (let (... ... tbl) (setq p ...) (setq p ...) (setq p ...) 
(setq p ...) (setq tbl ...) (insert tbl)))
  (if (and org-agenda-clockreport-mode clocktable-start) (progn (let 
... ... ... ... ... ... ...)))
  (when (and org-agenda-clockreport-mode clocktable-start) (let (... 
... tbl) (setq p ...) (setq p ...) (setq p ...) (setq p ...) (setq tbl 
...) (insert tbl)))
  (let* ((org-agenda-start-on-weekday ...) (thefiles ...) (files 
thefiles) (today ...) (sd ...) (start ...) (day-numbers ...) (day-cnt 0) 
(inhibit-redisplay ...) s e rtn rtnall file date d start-pos end-pos 
todayp nd wd clocktable-start clocktable-end) (setq 
org-agenda-redo-command (list ... ... start-day ndays)) (setq ndays (or 
ndays org-agenda-ndays) nd ndays) (while ( ndays 1) (push ... 
day-numbers) (setq ndays ...)) (setq day-numbers (nreverse day-numbers)) 
(setq clocktable-start (car day-numbers) clocktable-end (1+ ...)) 
(org-prepare-agenda Day/Week) (org-set-local (quote org-starting-day) 
(car day-numbers)) (org-set-local (quote org-include-all-loc) 
include-all) (org-set-local (quote org-agenda-span) 
(org-agenda-ndays-to-span nd)) (when (and ... 

Re: [Orgmode] Org-babel init

2010-07-12 Thread Eric Schulte
Hi Jordi,

With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
you no longer need to add the contrib directory to your load path, or
require org-babel-init.  The following should work for you.

(setq load-path (cons /home/inglada/local/src/org-mode/lisp load-path))
(require 'org-install)
(require 'ob-python)

note that for a language-specific require, you now prefix the language
name with ob- rather than org-babel-

For more complete information on the new setup, see
http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html

Cheers -- Eric

Jordi Inglada jordi.ingl...@cesbio.cnes.fr writes:

 Hi all,

 I am having the same problem as this user here:

 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html

 and the contrib/lisp directory is indeed in my load path.

 I am using a git changeset cloned today (Org-mode version 6.34trans
 (release_6.36.608.gc1ef)).

 I have tried using emacs -q and then loading an .el file containing
 only the following lines:

 (setq load-path (cons /home/inglada/local/src/org-mode/lisp load-path))
 (setq load-path (cons /home/inglada/local/src/org-mode/contrib/lisp 
 load-path))

 (require 'org-install)
 (require 'org-babel-init)
 (require 'org-babel-python)

 and I get the same result.

 Thank you very much for your help.

 Jordi

 ___
 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] Help: Agenda not working anymore

2010-07-12 Thread Carsten Dominik

Hi Erik,

you are using Eric Schultes code for pretty display of entities.

 (defun org-pretty-entities ()
   (interactive)
   (font-lock-add-keywords
nil (mapcar
 (lambda (el)
   (list
(concat (?\\( (regexp-quote \\) (nth 0 el) [\s] \ 
\))
`(0 (progn (compose-region (match-beginning 1) (- (match- 
end 1) 1)

   ,(nth 6 el)) nil
 org-entities)))

 (org-pretty-entities)

You should no longer use this code, instead please use the
variable `org-pretty-entities'.

HTH

- Carsten

On Jul 12, 2010, at 7:13 PM, Erik Iverson wrote:


Could be related:

I just pulled latest from git this morning:  my agenda seems to  
compile, but I get in the *Messages* buffer:


concat: Wrong type argument: listp, * Letters

Backtrace follows:

Debugger entered--Lisp error: (wrong-type-argument listp * Letters)
 nth(0 * Letters)
 (concat (?\\( (regexp-quote \\) (nth 0 el) [^[:alnum:]] \\))
 (list (concat (?\\( (regexp-quote \\) (nth 0 el) [^[:alnum:]]  
\\)) (\` (0 ...)))
 (lambda (el) (list (concat (?\\( ... ... [^[:alnum:]] \\))  
(\` ...)))(* Letters)
 mapcar((lambda (el) (list (concat (?\\( ... ... [^[:alnum:]] \ 
\)) (\` ...))) (* Letters ** Latin (Agrave \\`{A} nil  
Agrave; A À À) (agrave \\`{a} nil agrave; a à  
à) (Aacute \\'{A} nil Aacute; A Á Á) (aacute \ 
\'{a} nil aacute; a á á) (Acirc \\^{A} nil Acirc;  
A Â Â) (acirc \\^{a} nil acirc; a â â) (Atilde  
\\~{A} nil Atilde; A Ã Ã) (atilde \\~{a} nil  
atilde; a ã ã) (Auml \\\{A} nil Auml; Ae Ä Ä)  
(auml \\\{a} nil auml; ae ä ä) (Aring \\AA{} nil  
Aring; A Å Å) (AA \\AA{} nil Aring; A Å Å)  
(aring \\aa{} nil aring; a å å) (AElig \\AE{} nil  
AElig; AE Æ Æ) (aelig \\ae{} nil aelig; ae æ  
æ) (Ccedil \\c{C} nil Ccedil; C Ç Ç) (ccedil \ 
\c{c} nil ccedil; c ç ç) (Egrave \\`{E} nil Egrave;  
E È È) (egrave \\`{e} nil egrave; e è è)  
(Eacute \\'{E} nil Eacute; E É É) (eacute \\'{e}  
nil eacute; e é é) (Ecirc \\^{E} nil Ecirc; E Ê  
Ê) (ecirc \\^{e} nil ecirc; e ê ê) (Euml \\\{E}  
nil Euml; E Ë Ë) (euml \\\{e} nil euml; e ë  
ë) (Igrave \\`{I} nil Igrave; I Ì Ì) (igrave \ 
\`{i} nil igrave; i ì ì) (Iacute \\'{I} nil Iacute;  
I Í Í) (iacute \\'{i} nil iacute; i í í) (Icirc  
\\^{I} nil Icirc; I Î Î) (icirc \\^{i} nil icirc;  
i î î) (Iuml \\\{I} nil Iuml; I Ï Ï) (iuml \\ 
\{i} nil iuml; i ï ï) (Ntilde \\~{N} nil Ntilde;  
N Ñ Ñ) (ntilde \\~{n} nil ntilde; n ñ ñ)  
(Ograve \\`{O} nil Ograve; O Ò Ò) (ograve \\`{o}  
nil ograve; o ò ò) (Oacute \\'{O} nil Oacute; O  
Ó Ó) (oacute \\'{o} nil oacute; o ó ó) (Ocirc \ 
\^{O} nil Ocirc; O Ô Ô) (ocirc \\^{o} nil ocirc;  
o ô ô) (Otilde \\~{O} nil Otilde; O Õ Õ)  
(otilde \\~{o} nil otilde; o õ õ) (Ouml \\\{O} nil  
Ouml; Oe Ö Ö) (ouml \\\{o} nil ouml; oe ö ö)  
(Oslash \\O nil Oslash; O Ø Ø) (oslash \\o{} nil  
oslash; o ø ø) (OElig \\OE{} nil OElig; OE OE  
Œ) ...))

 (font-lock-add-keywords nil (mapcar (lambda ... ...) org-entities))
 org-pretty-entities()
 run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
 apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
 run-mode-hooks(org-mode-hook)
 org-mode()
 (progn (org-mode) (org-create-dblock props) (org-update-dblock)  
(font-lock-fontify-buffer) (forward-line 2) (buffer-substring  
(point) (progn ... ...)))
 (unwind-protect (progn (org-mode) (org-create-dblock props) (org- 
update-dblock) (font-lock-fontify-buffer) (forward-line 2) (buffer- 
substring ... ...)) (and (buffer-name temp-buffer) (kill-buffer temp- 
buffer)))
 (save-current-buffer (set-buffer temp-buffer) (unwind-protect  
(progn ... ... ... ... ... ...) (and ... ...)))
 (with-current-buffer temp-buffer (unwind-protect  
(progn ... ... ... ... ... ...) (and ... ...)))
 (let ((temp-buffer ...)) (with-current-buffer temp-buffer (unwind- 
protect ... ...)))
 (with-temp-buffer (org-mode) (org-create-dblock props) (org-update- 
dblock) (font-lock-fontify-buffer) (forward-line 2) (buffer- 
substring (point) (progn ... ...)))
 org-get-clocktable(:link t :maxlevel 2 :tstart 733965 :tend  
733972 :scope agenda)
 apply(org-get-clocktable (:link t :maxlevel 2 :tstart 733965 :tend  
733972 :scope agenda))

 (setq tbl (apply (quote org-get-clocktable) p))
 (let ((org-agenda-files ...) (p org-agenda-clockreport-parameter- 
plist) tbl) (setq p (org-plist-delete p :block)) (setq p (plist-put  
p :tstart clocktable-start)) (setq p (plist-put p :tend clocktable- 
end)) (setq p (plist-put p :scope ...)) (setq tbl (apply ... p))  
(insert tbl))
 (progn (let (... ... tbl) (setq p ...) (setq p ...) (setq p ...)  
(setq p ...) (setq tbl ...) (insert tbl)))
 (if (and org-agenda-clockreport-mode clocktable-start) (progn  
(let ... ... ... ... ... ... ...)))
 (when (and org-agenda-clockreport-mode clocktable-start) (let  
(... ... tbl) (setq p ...) (setq p ...) (setq p ...) (setq p ...)  
(setq tbl ...) (insert tbl)))
 (let* ((org-agenda-start-on-weekday ...) (thefiles ...) (files  
thefiles) (today ...) (sd ...) (start ...) 

Re: [Orgmode] Re: Org-babel init

2010-07-12 Thread Eric Schulte
Hi Richard,

You could probably safely simplify your config to something more like
the following.
http://github.com/eschulte/emacs-starter-kit/blob/master/init.el

Cheers -- Eric

Richard Riley rile...@gmail.com writes:

 Jordi Inglada jordi.ingl...@cesbio.cnes.fr writes:

 Hi all,

 I am having the same problem as this user here:

 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html

 and the contrib/lisp directory is indeed in my load path.

 I am using a git changeset cloned today (Org-mode version 6.34trans
 (release_6.36.608.gc1ef)).

 I have tried using emacs -q and then loading an .el file containing
 only the following lines:

 (setq load-path (cons /home/inglada/local/src/org-mode/lisp load-path))
 (setq load-path (cons /home/inglada/local/src/org-mode/contrib/lisp 
 load-path))

 (require 'org-install)
 (require 'org-babel-init)
 (require 'org-babel-python)

 and I get the same result.

 Thank you very much for your help.

 Jordi

 ___
 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



 I havent looked in detail but I recently had issues with it. Here is my
 init.el. No idea if its even relevant to be honest, but babel works for
 elisp files ;)


 ;;; init.el --- Where all the magic begins
 ;;
 ;; This file loads both
 ;; - Org-mode : http://orgmode.org/ and
 ;; - Org-babel: 
 http://orgmode.org/worg/org-contrib/babel/org-babel.php#library-of-babel
 ;;
 ;; It then loads the rest of our Emacs initialization from Emacs lisp
 ;; embedded in literate Org-mode files.

 ;; Load up Org Mode and Org Babel for elisp embedded in Org Mode files
 (setq dotfiles-dir (file-name-directory (or (buffer-file-name) 
 load-file-name)))

 (let* ((org-dir (expand-file-name
  lisp (expand-file-name
  org-mode dotfiles-dir)))
(org-contrib-dir (expand-file-name
  lisp (expand-file-name
contrib (expand-file-name
 .. org-dir
  (load-path (append (list org-dir org-contrib-dir (concat org-dir 
 /babel))
   (or load-path nil
   ;; load up Org-mode and Org-babel
   (require 'org-install)
   (require 'ob-tangle)
 )

 ;; load up all literate org-mode files in this directory
 ;;(mapc #'org-babel-load-file (directory-files dotfiles-dir t \\.org$))
 (org-babel-load-file ~/.emacs.d/emacs-init.org)
 ;;; init.el ends here


 Hopefully it helps.

 r.


 ___
 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] #+begin_src wo. language blocks XHTML export

2010-07-12 Thread Eric Schulte
Carsten Dominik carsten.domi...@gmail.com writes:

 On Jul 12, 2010, at 10:13 AM, David Maus wrote:

 SEric Schulte wrote:
 Thomas S. Dye t...@tsdye.com writes:

 On Jul 8, 2010, at 9:09 AM, Eric Schulte wrote:

 Sebastian Rose sebastian_r...@gmx.de writes:

 [...]

 It can be considered an error, since the docs say:

 ...This is done with the ‘src’ block, where you also need to
 specify the name of the major mode that should be used to fontify
 the example...


 I would vote that this be considered an error as a source block
 doesn't make sense w/o a source language.  If others agree with
 this
 interpretation, I would be happy to submit a patch which actively
 raises an errors when this cases is encountered.

 Cheers -- Eric

 This seems like the right approach to me.

 Tom

 As promised here's a patch which raises errors when source blocks
 don't
 have a specified language.  I would prefer if the error could
 indicate
 which block caused the problem, but I don't know how to accomplish
 this.

 Maybe we could store a marker in a text property of (source) blocks
 right before they are processed in the input file?

 The problem here is that during export, the source code is taken
 from a temporary buffer containing an already modifed copy of the
 original buffer.

 Another solution would be to include into the message is short
 part of the code itself (maybe the first line...) - this should
 make it possible to identify the problematic block reasonably easily.

 - Carsten

The following updated patch includes the first line (up to 35
characters) of the code block in the error message.

-- Eric

From a76629a565920c3506f7046cc15d27ad01b8bd47 Mon Sep 17 00:00:00 2001
From: Eric Schulte schulte.e...@gmail.com
Date: Mon, 12 Jul 2010 10:42:59 -0700
Subject: [PATCH] org-exp: raise an error when trying to export code blocks w/o languages

* lisp/ob.el (org-babel-get-src-block-info): ensure that we don't
  match (and return info for) source blocks without a language

* lisp/org-exp.el (org-export-replace-src-segments-and-examples):
  updated source code block regexp so that the presence of a language
  can be explicitly checked.  Also now raising an error when a source
  block does not have a language.
---
 lisp/ob.el  |3 ++-
 lisp/org-exp.el |   30 --
 2 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/lisp/ob.el b/lisp/ob.el
index 7b7be3d..d94cc06 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -143,7 +143,8 @@ added to the header-arguments-alist.
 	  (setq indent (car (last info)))
 	  (setq info (butlast info))
 	  (forward-line -1)
-	  (if (looking-at org-babel-src-name-w-name-regexp)
+	  (if (and (looking-at org-babel-src-name-w-name-regexp)
+		   (match-string 2))
 	  (progn
 		(setq info (append info (list (org-babel-clean-text-properties
 	   (match-string 2)
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index f1cea62..55b8812 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2107,19 +2107,29 @@ in the list) and remove property and value from the list in LISTVAR.
 	lang code trans opts indent caption)
 (goto-char (point-min))
 (while (re-search-forward
-	\\(^\\([ \t]*\\)#\\+BEGIN_SRC:?[ \t]+\\([^ \t\n]+\\)\\(.*\\)\n\\([^\000]+?\n\\)[ \t]*#\\+END_SRC.*\n?\\)\\|\\(^\\([ \t]*\\)#\\+BEGIN_EXAMPLE:?\\(?:[ \t]+\\(.*\\)\\)?\n\\([^\000]+?\n\\)[ \t]*#\\+END_EXAMPLE.*\n?\\)
+	\\(^\\([ \t]*\\)#\\+BEGIN_SRC:?\\([ \t]+\\([^ \t\n]+\\)\\)?\\(.*\\)\n\\([^\000]+?\n\\)[ \t]*#\\+END_SRC.*\n?\\)\\|\\(^\\([ \t]*\\)#\\+BEGIN_EXAMPLE:?\\(?:[ \t]+\\(.*\\)\\)?\n\\([^\000]+?\n\\)[ \t]*#\\+END_EXAMPLE.*\n?\\)
 	nil t)
   (if (match-end 1)
-	  ;; src segments
-	  (setq lang (match-string 3)
-		opts (match-string 4)
-		code (match-string 5)
-		indent (length (match-string 2))
-caption (get-text-property 0 'org-caption (match-string 0)))
+	  (if (not (match-string 4))
+	  (error source block missing language specification: %s
+		 (let* ((body (match-string 6))
+			(nothing (message body:%s body))
+			(preview (or (and (string-match
+	   ^[ \t]*\\([^\n\r]*\\) body)
+	  (match-string 1 body)) body)))
+		   (if ( (length preview) 35)
+			   (concat (substring preview 0 32) ...)
+			 preview)))
+	;; src segments
+	(setq lang (match-string 4)
+		  opts (match-string 5)
+		  code (match-string 6)
+		  indent (length (match-string 2))
+		  caption (get-text-property 0 'org-caption (match-string 0
 	(setq lang nil
-	  opts (match-string 8)
-	  code (match-string 9)
-	  indent (length (match-string 7))
+	  opts (match-string 9)
+	  code (match-string 10)
+	  indent (length (match-string 8))
   caption (get-text-property 0 'org-caption (match-string 0
 
   (setq trans (org-export-format-source-code-or-example
-- 
1.7.0.4

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.

Re: [Orgmode] [google] updated awk script for google to org conversion

2010-07-12 Thread Eric S Fraga
On 12 Jul 2010 09:49:29 +0200, Sven Bretfeld sven.bretf...@gmx.ch wrote:
 
 Hi Eric
 
 Thank you very much for the script and the idea. I'm a fan of MobileOrg
 for Android, but the diary functions are not convenient to deal with at
 the moment. So I adopted your method for date handling. Some
 observations:
 
 1. wget doesn't overwrite an older basic.ics laying in the same folder.
Instead it names the files of further downloads to basic.ics.1,
basic.ics.2 and so on. Therefore I added an additional line (rm $ICS)
to your shell-script (not the awk-script, but the one with the
automatized procedure you sent in a previous posting):

Yes, you are completely correct.  I trimmed down my own shell script a
bit too much.  I do have a rm ${ICS} command just before the
wget...  Sorry about that.

 2. Running the above script with cron, makes Emacs continually ask if
googlecalendar.org should really be edited, because the file had
changed on disk. So I put the whole thing into an Emacs function:

I think somebody else has already suggested auto-revert-mode, which is
what I use so I don't see this happening at all.

Anyway, hope it continues to work for you and please do give any other
feedback you may have.

-- 
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] Wiki-like creating links on the fly for org

2010-07-12 Thread Marcelo de Moraes Serpa
Hey all!

I used to be an avid user of WikiDPad, and I loved the way it
automatically (or manually, using [ ]) created links and files to
these links (CamelCase) for me. The way it provided a visual tree of
the wiki was also pretty cool.

This was awesome for reference kind of data, to build your own
knowledge base. I've been trying to test different approaches with
org, but none of them work as smoothly as it worked for me when using
wikidpad.

I divide reference data in two main categories: Dynamic and Static.
Static are the notes and stuff that youl want to keep somewhere and
that you'll eventually refer to later. Dynamic are the kind of that
you'll be editing often, but does not fit in any other category
GTD-wise. It is reference, you want to keep it somewhere, not take
action on it per se (other than editing it), but you want to expand
and modify it often.

How difficult would it be to implement a small system that would index
the files of directory, get the names (camel-case) and automatically
link to these names if written on an org buffer? My elisp skills are
very weak as of now.

I know some of you might list a number of points against implementing
this, but I really loved the way Wikdpad created links on the fly.

Thanks,

Marcelo

___
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] [google] updated awk script for google to org conversion

2010-07-12 Thread Marcelo de Moraes Serpa
Very cool. Someone should setup a tutorial on Google-org sync. As of
now, the information is spread around and outdated.

Thanks!

Marcelo.

On Mon, Jul 12, 2010 at 12:50 PM, Eric S Fraga ucec...@ucl.ac.uk wrote:
 On 12 Jul 2010 09:49:29 +0200, Sven Bretfeld sven.bretf...@gmx.ch wrote:

 Hi Eric

 Thank you very much for the script and the idea. I'm a fan of MobileOrg
 for Android, but the diary functions are not convenient to deal with at
 the moment. So I adopted your method for date handling. Some
 observations:

 1. wget doesn't overwrite an older basic.ics laying in the same folder.
    Instead it names the files of further downloads to basic.ics.1,
    basic.ics.2 and so on. Therefore I added an additional line (rm $ICS)
    to your shell-script (not the awk-script, but the one with the
    automatized procedure you sent in a previous posting):

 Yes, you are completely correct.  I trimmed down my own shell script a
 bit too much.  I do have a rm ${ICS} command just before the
 wget...  Sorry about that.

 2. Running the above script with cron, makes Emacs continually ask if
    googlecalendar.org should really be edited, because the file had
    changed on disk. So I put the whole thing into an Emacs function:

 I think somebody else has already suggested auto-revert-mode, which is
 what I use so I don't see this happening at all.

 Anyway, hope it continues to work for you and please do give any other
 feedback you may have.


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



___
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] Wiki-like creating links on the fly for org

2010-07-12 Thread Erik Iverson

Perhaps I am confused, but have you tried radio targets?

http://orgmode.org/org.html#Radio-targets


Marcelo de Moraes Serpa wrote:

Hey all!

I used to be an avid user of WikiDPad, and I loved the way it
automatically (or manually, using [ ]) created links and files to
these links (CamelCase) for me. The way it provided a visual tree of
the wiki was also pretty cool.

This was awesome for reference kind of data, to build your own
knowledge base. I've been trying to test different approaches with
org, but none of them work as smoothly as it worked for me when using
wikidpad.

I divide reference data in two main categories: Dynamic and Static.
Static are the notes and stuff that youl want to keep somewhere and
that you'll eventually refer to later. Dynamic are the kind of that
you'll be editing often, but does not fit in any other category
GTD-wise. It is reference, you want to keep it somewhere, not take
action on it per se (other than editing it), but you want to expand
and modify it often.

How difficult would it be to implement a small system that would index
the files of directory, get the names (camel-case) and automatically
link to these names if written on an org buffer? My elisp skills are
very weak as of now.

I know some of you might list a number of points against implementing
this, but I really loved the way Wikdpad created links on the fly.

Thanks,

Marcelo

___
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] Re: [BABEL] tangling with leaving non-source code lines as empty lines?

2010-07-12 Thread Eric Schulte
Hi Rainer,

If I'm understand you correctly you want the absolute position (by LOC)
of the lines of R code to be the same in both the original org file and
the tangled file or R code.  I don't think this is possible.  It is
possible to tangle code blocks in any order (not just the order in which
they appear in the original org file), so there are many valid tangling
scenarios in which this feature could not work.

Rather, I think that it may make sense to have a function for jumping
back and forth between tangled code blocks and the related Org file.  In
that case the R errors could be followed to the tangled R code file,
from which you could easily jump to the relevant line in the relevant
code block in the Org file.  If you are tangling with comments, then it
should be possible to have a function called from a line in a tangled
code file which when called

1) finds it's enclosing comments
2) remembers it's offset from the comments (which would then be it's
   offset in the code block in the Org file)
3) read the comment to learn which code block in which Org file it's
   tangled from
4) jump to the relevant line, in the relevant block, in the relevant
   file

Similarly when called form within a code block in an Org file the
function could

1) read it's header argument to find the relevant tangled code file
2) jump to that file
3) use the comments in that file to move to the appropriate section of
   code and related line

I'll think about such a function, and if it makes sense to implement it
apart from a more general activate org-mode links in comments minor
mode.  Any ideas or suggestions would be welcome!

Thanks -- Eric

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

 Hi Eric,

 would it be possible, when tangling, to leave lines without source code in
 the resulting code file as empty lines? The reasoning would be that error
 messages (at least in R) give the line in which the error occurred. If the
 line numbers in which the code sits would be preserved (by leaving empty
 lines where no code is in the .org file), debugging would be much easier.

 By the way: I am using the after tangle hook and it works absolutely
 perfectly.

 Thanks and cheers,

 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


Re: [Orgmode] Wiki-like creating links on the fly for org

2010-07-12 Thread Marcelo de Moraes Serpa
This doesn't seem to apply to what I want. It only links to org items
inside the org file.

Thanks for the hint, though!

On Mon, Jul 12, 2010 at 12:57 PM, Erik Iverson er...@ccbr.umn.edu wrote:
 Perhaps I am confused, but have you tried radio targets?

 http://orgmode.org/org.html#Radio-targets


 Marcelo de Moraes Serpa wrote:

 Hey all!

 I used to be an avid user of WikiDPad, and I loved the way it
 automatically (or manually, using [ ]) created links and files to
 these links (CamelCase) for me. The way it provided a visual tree of
 the wiki was also pretty cool.

 This was awesome for reference kind of data, to build your own
 knowledge base. I've been trying to test different approaches with
 org, but none of them work as smoothly as it worked for me when using
 wikidpad.

 I divide reference data in two main categories: Dynamic and Static.
 Static are the notes and stuff that youl want to keep somewhere and
 that you'll eventually refer to later. Dynamic are the kind of that
 you'll be editing often, but does not fit in any other category
 GTD-wise. It is reference, you want to keep it somewhere, not take
 action on it per se (other than editing it), but you want to expand
 and modify it often.

 How difficult would it be to implement a small system that would index
 the files of directory, get the names (camel-case) and automatically
 link to these names if written on an org buffer? My elisp skills are
 very weak as of now.

 I know some of you might list a number of points against implementing
 this, but I really loved the way Wikdpad created links on the fly.

 Thanks,

 Marcelo

 ___
 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] #+begin_src wo. language blocks XHTML export

2010-07-12 Thread Carsten Dominik

Hi Eric,

Please go ahead and apply it, Eric, and mark the first as
superseded, the second as applied on the patchwork server.

Thanks!

- Carsten

On Jul 12, 2010, at 7:44 PM, Eric Schulte wrote:


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


On Jul 12, 2010, at 10:13 AM, David Maus wrote:


SEric Schulte wrote:

Thomas S. Dye t...@tsdye.com writes:



On Jul 8, 2010, at 9:09 AM, Eric Schulte wrote:


Sebastian Rose sebastian_r...@gmx.de writes:

[...]


It can be considered an error, since the docs say:

...This is done with the ‘src’ block, where you also need to
specify the name of the major mode that should be used to  
fontify

the example...



I would vote that this be considered an error as a source block
doesn't make sense w/o a source language.  If others agree with
this
interpretation, I would be happy to submit a patch which actively
raises an errors when this cases is encountered.

Cheers -- Eric


This seems like the right approach to me.

Tom



As promised here's a patch which raises errors when source blocks
don't
have a specified language.  I would prefer if the error could
indicate
which block caused the problem, but I don't know how to accomplish
this.


Maybe we could store a marker in a text property of (source) blocks
right before they are processed in the input file?


The problem here is that during export, the source code is taken
from a temporary buffer containing an already modifed copy of the
original buffer.

Another solution would be to include into the message is short
part of the code itself (maybe the first line...) - this should
make it possible to identify the problematic block reasonably easily.

- Carsten


The following updated patch includes the first line (up to 35
characters) of the code block in the error message.

-- Eric

From a76629a565920c3506f7046cc15d27ad01b8bd47 Mon Sep 17 00:00:00 2001
From: Eric Schulte schulte.e...@gmail.com
Date: Mon, 12 Jul 2010 10:42:59 -0700
Subject: [PATCH] org-exp: raise an error when trying to export code  
blocks w/o languages


* lisp/ob.el (org-babel-get-src-block-info): ensure that we don't
 match (and return info for) source blocks without a language

* lisp/org-exp.el (org-export-replace-src-segments-and-examples):
 updated source code block regexp so that the presence of a language
 can be explicitly checked.  Also now raising an error when a source
 block does not have a language.
---
lisp/ob.el  |3 ++-
lisp/org-exp.el |   30 --
2 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/lisp/ob.el b/lisp/ob.el
index 7b7be3d..d94cc06 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -143,7 +143,8 @@ added to the header-arguments-alist.
  (setq indent (car (last info)))
  (setq info (butlast info))
  (forward-line -1)
- (if (looking-at org-babel-src-name-w-name-regexp)
+ (if (and (looking-at org-babel-src-name-w-name-regexp)
+  (match-string 2))
  (progn
(setq info (append info (list (org-babel-clean-text-properties
   (match-string 2)
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index f1cea62..55b8812 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2107,19 +2107,29 @@ in the list) and remove property and value  
from the list in LISTVAR.

lang code trans opts indent caption)
(goto-char (point-min))
(while (re-search-forward
-	\\(^\\([ \t]*\\)#\\+BEGIN_SRC:?[ \t]+\\([^ \t\n]+\\)\\(.*\\)\n 
\\([^\000]+?\n\\)[ \t]*#\\+END_SRC.*\n?\\)\\|\\(^\\([ \t]*\\)#\\ 
+BEGIN_EXAMPLE:?\\(?:[ \t]+\\(.*\\)\\)?\n\\([^\000]+?\n\\)[ \t]*#\\ 
+END_EXAMPLE.*\n?\\)
+	\\(^\\([ \t]*\\)#\\+BEGIN_SRC:?\\([ \t]+\\([^ \t\n]+\\)\\)?\\ 
(.*\\)\n\\([^\000]+?\n\\)[ \t]*#\\+END_SRC.*\n?\\)\\|\\(^\\([ \t]*\ 
\)#\\+BEGIN_EXAMPLE:?\\(?:[ \t]+\\(.*\\)\\)?\n\\([^\000]+?\n\\) 
[ \t]*#\\+END_EXAMPLE.*\n?\\)

nil t)
  (if (match-end 1)
- ;; src segments
- (setq lang (match-string 3)
-   opts (match-string 4)
-   code (match-string 5)
-   indent (length (match-string 2))
-caption (get-text-property 0 'org-caption (match- 
string 0)))

+ (if (not (match-string 4))
+ (error source block missing language specification: %s
+(let* ((body (match-string 6))
+   (nothing (message body:%s body))
+   (preview (or (and (string-match
+  ^[ \t]*\\([^\n\r]*\\) body)
+ (match-string 1 body)) body)))
+  (if ( (length preview) 35)
+  (concat (substring preview 0 32) ...)
+preview)))
+   ;; src segments
+   (setq lang (match-string 4)
+ opts (match-string 5)
+ code (match-string 6)
+ indent 

[Orgmode] Re: Help: Agenda not working anymore

2010-07-12 Thread Markus Heller

On 7/12/2010 10:05 AM, Markus Heller wrote:

On 7/12/2010 9:29 AM, Markus Heller wrote:

Hello,

today, after starting emacs, the agenda does not work anymore. I type
C-a a to get the daily overview, but org gets stuck at CONTENTS...done
(see message buffer at the end).

When I try f9-m (see Bernt's set-up), I get the following message in the
mini-buffer: mapcar: Wrong type argument: listp, \.\.\.

I pulled the latest release, but that didn't help unfortunately.


I did some more testing: No matter what agenda command I use, it
emacs/org always get stuck at CONTENTS...done. Doesn't matter if it's
C-a a, or C-a t ...


My versions:

Org-mode: Org-mode version 6.36trans (release_6.36.608.gc1ef)
emacs: 23.2.1
Windoze XP


The same issue exists when using emacs 23.1.1.

ANy ideas? ANyone?


After more testing, I think I've narrowed it down to an issue with my 
agenda files.


I add my agenda files using (C-c [), and all files exist in the 
appropriate directory.  But when I uncomment all files except for one in 
my .emacs, I get the following error:


non-existent agenda file GTD.org [R]emove from list or [A]bort?

Then I noticed a whole bunch of messages in the *Messages* buffer after 
typing f9-o (again using Bernt's set-up) as shown below.


So now it seems to me that org is working fine, and that gathering ID 
location data seems to take way longer than usual, which leads me to 
believe that something is wrong with our network ...


I apologize for any confusion and wasted time my postings might have caused!

Cheers
Markus

OVERVIEW
Finding ID locations (26/65 files): h:/org/R0015.org
Finding ID locations (27/65 files): h:/org/R0015.org_archive
OVERVIEW
Finding ID locations (28/65 files): h:/org/G0865.org
Finding ID locations (29/65 files): h:/org/G0865.org_archive
OVERVIEW
Quit
Press key for agenda command:
Finding ID locations (1/79 files): h:/org/G0580.org
Finding ID locations (2/79 files): h:/org/G0580.org_archive
Finding ID locations (3/79 files): h:/org/S0812.org
Finding ID locations (4/79 files): h:/org/S0812.org_archive
Finding ID locations (5/79 files): h:/org/S0425.org
Finding ID locations (6/79 files): h:/org/S0425.org_archive
Finding ID locations (7/79 files): h:/org/S0424.org
Finding ID locations (8/79 files): h:/org/S0424.org_archive
Finding ID locations (9/79 files): h:/org/S0423.org
Finding ID locations (10/79 files): h:/org/S0423.org_archive
Finding ID locations (11/79 files): h:/org/C0775.org
Finding ID locations (12/79 files): h:/org/C0775.org_archive
Finding ID locations (13/79 files): h:/org/refile.org
Finding ID locations (14/79 files): h:/org/R0787.org
Finding ID locations (15/79 files): h:/org/R0787.org_archive
Finding ID locations (16/79 files): h:/org/R0657.org
Finding ID locations (17/79 files): h:/org/R0657.org_archive
Finding ID locations (18/79 files): h:/org/R0279.org
Finding ID locations (19/79 files): h:/org/R0279.org_archive
Finding ID locations (20/79 files): h:/org/R0048.org
Finding ID locations (21/79 files): h:/org/R0048.org_archive
Finding ID locations (22/79 files): h:/org/R0047.org
Finding ID locations (23/79 files): h:/org/R0047.org_archive
Finding ID locations (24/79 files): h:/org/R0029.org
Finding ID locations (25/79 files): h:/org/R0029.org_archive
Finding ID locations (26/79 files): h:/org/R0015.org
Finding ID locations (27/79 files): h:/org/R0015.org_archive
Finding ID locations (28/79 files): h:/org/G0865.org
Finding ID locations (29/79 files): h:/org/G0865.org_archive
Finding ID locations (30/79 files): h:/org/G0749.org
Finding ID locations (31/79 files): h:/org/G0749.org_archive
OVERVIEW
Finding ID locations (32/79 files): h:/org/G0689.org
Finding ID locations (33/79 files): h:/org/G0689.org_archive
OVERVIEW
Finding ID locations (34/79 files): h:/org/G0473.org
Finding ID locations (35/79 files): h:/org/G0473.org_archive
OVERVIEW
Finding ID locations (36/79 files): h:/org/G0439.org
Finding ID locations (37/79 files): h:/org/G0439.org_archive
OVERVIEW
Finding ID locations (38/79 files): h:/org/G0431.org
Finding ID locations (39/79 files): h:/org/G0431.org_archive
OVERVIEW
Finding ID locations (40/79 files): h:/org/GTD.org
Finding ID locations (41/79 files): h:/org/GTD.org_archive
OVERVIEW
Finding ID locations (42/79 files): h:/org/G0630.org
Finding ID locations (43/79 files): h:/org/G0630.org_archive
OVERVIEW
Finding ID locations (44/79 files): h:/org/G0580.org
Finding ID locations (45/79 files): h:/org/S0812.org
Finding ID locations (46/79 files): h:/org/S0425.org
Finding ID locations (47/79 files): h:/org/S0424.org
Finding ID locations (48/79 files): h:/org/S0423.org
Finding ID locations (49/79 files): h:/org/C0775.org
Finding ID locations (50/79 files): h:/org/refile.org
Finding ID locations (51/79 files): h:/org/R0787.org
Finding ID locations (52/79 files): h:/org/R0657.org
Finding ID locations (53/79 files): h:/org/R0279.org
Finding ID locations (54/79 files): h:/org/R0048.org
Finding ID locations (55/79 files): h:/org/R0047.org
Finding ID locations 

[Orgmode] Re: preserving location of point

2010-07-12 Thread Eric Abrahamsen
Noorul Islam K M noo...@noorul.com writes:

 Bernt Hansen be...@norang.ca writes:

 Eric Abrahamsen e...@ericabrahamsen.net writes:

 I'm using org mode of about a week ago, and have noticed that when I
 leave point inside a table in org mode, switch to another buffer,
 and switch back again, point is placed at the the end of the table.
 I'm switching back and forth quite a bit and it's a pain finding my
 place in the table again -- I wonder if this is something that could
 be fixed, either through a user option or in the source code?

 Hi Eric,

 I'm using

 GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of
 2008-11-09 on raven, modified by Debian Org-mode version 6.36trans
 (release_6.36.587.gb482)

 and I'm not seeing the behaviour you describe. If I put the point in
 a table field, then C-x C-b *scratch* RET and then move the point in
 the scratch buffer and switch back to the original org-mode buffer
 point is still in the table exactly where I left it.

 An this is what I am using

 GNU Emacs 23.2.2 (i686-pc-linux-gnu) of 2010-06-08 on sajida Org-mode
 version 6.36trans (release_6.36.452.g452b0)

 I am also not facing Eric's problem.

Starting with emacs -Q fixes the problem, so I guess it's something I've
done. Thanks for the responses...

E


 - 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


___
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: Help: Agenda not working anymore

2010-07-12 Thread Markus Heller

On 7/12/2010 11:18 AM, Markus Heller wrote:

On 7/12/2010 10:05 AM, Markus Heller wrote:

On 7/12/2010 9:29 AM, Markus Heller wrote:

Hello,

today, after starting emacs, the agenda does not work anymore. I type
C-a a to get the daily overview, but org gets stuck at CONTENTS...done
(see message buffer at the end).

When I try f9-m (see Bernt's set-up), I get the following message in the
mini-buffer: mapcar: Wrong type argument: listp, \.\.\.

I pulled the latest release, but that didn't help unfortunately.


I did some more testing: No matter what agenda command I use, it
emacs/org always get stuck at CONTENTS...done. Doesn't matter if it's
C-a a, or C-a t ...


My versions:

Org-mode: Org-mode version 6.36trans (release_6.36.608.gc1ef)
emacs: 23.2.1
Windoze XP


The same issue exists when using emacs 23.1.1.

ANy ideas? ANyone?


After more testing, I think I've narrowed it down to an issue with my
agenda files.

I add my agenda files using (C-c [), and all files exist in the
appropriate directory. But when I uncomment all files except for one in
my .emacs, I get the following error:

non-existent agenda file GTD.org [R]emove from list or [A]bort?

Then I noticed a whole bunch of messages in the *Messages* buffer after
typing f9-o (again using Bernt's set-up) as shown below.

So now it seems to me that org is working fine, and that gathering ID
location data seems to take way longer than usual, which leads me to
believe that something is wrong with our network ...

I apologize for any confusion and wasted time my postings might have
caused!


I think I've finally found the problem and the solution!

I've finally started to use git for my .org-files, and I'm still very 
new to git.  But ever since I initialized the repository, emacs loads 
vc-git, which apparently is bundled with emacs.  My suspicion was that 
all those ID locations are in fact related to vc-git, and upon disabling 
vc-git by putting


(setq vc-handled-backends nil)

in my .emacs, the agenda is being build as fast as usual.  :)

Hope that helps ...

Markus


OVERVIEW
Finding ID locations (26/65 files): h:/org/R0015.org
Finding ID locations (27/65 files): h:/org/R0015.org_archive
OVERVIEW
Finding ID locations (28/65 files): h:/org/G0865.org
Finding ID locations (29/65 files): h:/org/G0865.org_archive
OVERVIEW
Quit
Press key for agenda command:
Finding ID locations (1/79 files): h:/org/G0580.org
Finding ID locations (2/79 files): h:/org/G0580.org_archive
Finding ID locations (3/79 files): h:/org/S0812.org
Finding ID locations (4/79 files): h:/org/S0812.org_archive
Finding ID locations (5/79 files): h:/org/S0425.org
Finding ID locations (6/79 files): h:/org/S0425.org_archive
Finding ID locations (7/79 files): h:/org/S0424.org
Finding ID locations (8/79 files): h:/org/S0424.org_archive
Finding ID locations (9/79 files): h:/org/S0423.org
Finding ID locations (10/79 files): h:/org/S0423.org_archive
Finding ID locations (11/79 files): h:/org/C0775.org
Finding ID locations (12/79 files): h:/org/C0775.org_archive
Finding ID locations (13/79 files): h:/org/refile.org
Finding ID locations (14/79 files): h:/org/R0787.org
Finding ID locations (15/79 files): h:/org/R0787.org_archive
Finding ID locations (16/79 files): h:/org/R0657.org
Finding ID locations (17/79 files): h:/org/R0657.org_archive
Finding ID locations (18/79 files): h:/org/R0279.org
Finding ID locations (19/79 files): h:/org/R0279.org_archive
Finding ID locations (20/79 files): h:/org/R0048.org
Finding ID locations (21/79 files): h:/org/R0048.org_archive
Finding ID locations (22/79 files): h:/org/R0047.org
Finding ID locations (23/79 files): h:/org/R0047.org_archive
Finding ID locations (24/79 files): h:/org/R0029.org
Finding ID locations (25/79 files): h:/org/R0029.org_archive
Finding ID locations (26/79 files): h:/org/R0015.org
Finding ID locations (27/79 files): h:/org/R0015.org_archive
Finding ID locations (28/79 files): h:/org/G0865.org
Finding ID locations (29/79 files): h:/org/G0865.org_archive
Finding ID locations (30/79 files): h:/org/G0749.org
Finding ID locations (31/79 files): h:/org/G0749.org_archive
OVERVIEW
Finding ID locations (32/79 files): h:/org/G0689.org
Finding ID locations (33/79 files): h:/org/G0689.org_archive
OVERVIEW
Finding ID locations (34/79 files): h:/org/G0473.org
Finding ID locations (35/79 files): h:/org/G0473.org_archive
OVERVIEW
Finding ID locations (36/79 files): h:/org/G0439.org
Finding ID locations (37/79 files): h:/org/G0439.org_archive
OVERVIEW
Finding ID locations (38/79 files): h:/org/G0431.org
Finding ID locations (39/79 files): h:/org/G0431.org_archive
OVERVIEW
Finding ID locations (40/79 files): h:/org/GTD.org
Finding ID locations (41/79 files): h:/org/GTD.org_archive
OVERVIEW
Finding ID locations (42/79 files): h:/org/G0630.org
Finding ID locations (43/79 files): h:/org/G0630.org_archive
OVERVIEW
Finding ID locations (44/79 files): h:/org/G0580.org
Finding ID locations (45/79 files): h:/org/S0812.org
Finding ID locations (46/79 files): 

[Orgmode] Multiple files and auto-updating

2010-07-12 Thread Jason Guiditta
Hello, apologies if these questions are documented somewhere (in fact, I bet
they are, just haven't been able to find them).  I am a newcomer to both
orgmode and emacs in general, so I am still on the steep side of the
learning curve.  I have spent several days poking around the documentation,
watching some screencasts, looking at gmane, etc with no success solving my
issue, so I hope someone can point me in the right direction.

The group I work with is using orgmode to track tasks for our projects.
This is currently in one big file (with various tags) that has at the bottom
a dynamic table that we periodically export to html and put up on a server
for easier viewing of the current state of tasks.  We store this project
file in a git repo.  I have been asked to do two major things and two minor
(at least in importance) things to streamline this.

== Major ==
1. Move this dynamic table out into its own file to reduce the size of the
main project file (I am not the only one in the group not that familiar with
emacs --yet).
2. Have this table be updated/exported automatically when saving the project
file.

From what I have seen, dynamic tables are meant to just be another view of
the data in a given file, so I am wondering if this is even the right
approach.  The update/export seems likely to be some org-mode post-save
command.  If this is the case, guess I'll have to figure out how to write
some elisp  :-/

== Minor ==
1. After automatically updating/exporting the table file, upload that to our
server as well.
2. Commit the file to git from the buffer (pretty sure this is just a matter
of using the git mode I have seen mentioned, but thought I'd throw it out
there in case there is another suggestion).

Hopefully these questions are reasonable and I haven't missed obvious
directions on how to do these things.  I appreciate any assistance from
members of the list.  (Also, really liking orgmode/emacs in general so far,
fwiw).

Thanks,

-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] #+begin_src wo. language blocks XHTML export

2010-07-12 Thread Eric Schulte
Done -- Eric

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

 Hi Eric,

 Please go ahead and apply it, Eric, and mark the first as
 superseded, the second as applied on the patchwork server.

 Thanks!

 - Carsten

 On Jul 12, 2010, at 7:44 PM, Eric Schulte wrote:

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

 On Jul 12, 2010, at 10:13 AM, David Maus wrote:

 SEric Schulte wrote:
 Thomas S. Dye t...@tsdye.com writes:

 On Jul 8, 2010, at 9:09 AM, Eric Schulte wrote:

 Sebastian Rose sebastian_r...@gmx.de writes:

 [...]

 It can be considered an error, since the docs say:

 ...This is done with the ‘src’ block, where you also need to
 specify the name of the major mode that should be used to
 fontify
 the example...


 I would vote that this be considered an error as a source block
 doesn't make sense w/o a source language.  If others agree with
 this
 interpretation, I would be happy to submit a patch which actively
 raises an errors when this cases is encountered.

 Cheers -- Eric

 This seems like the right approach to me.

 Tom

 As promised here's a patch which raises errors when source blocks
 don't
 have a specified language.  I would prefer if the error could
 indicate
 which block caused the problem, but I don't know how to accomplish
 this.

 Maybe we could store a marker in a text property of (source) blocks
 right before they are processed in the input file?

 The problem here is that during export, the source code is taken
 from a temporary buffer containing an already modifed copy of the
 original buffer.

 Another solution would be to include into the message is short
 part of the code itself (maybe the first line...) - this should
 make it possible to identify the problematic block reasonably easily.

 - Carsten

 The following updated patch includes the first line (up to 35
 characters) of the code block in the error message.

 -- Eric

 From a76629a565920c3506f7046cc15d27ad01b8bd47 Mon Sep 17 00:00:00 2001
 From: Eric Schulte schulte.e...@gmail.com
 Date: Mon, 12 Jul 2010 10:42:59 -0700
 Subject: [PATCH] org-exp: raise an error when trying to export code
 blocks w/o languages

 * lisp/ob.el (org-babel-get-src-block-info): ensure that we don't
  match (and return info for) source blocks without a language

 * lisp/org-exp.el (org-export-replace-src-segments-and-examples):
  updated source code block regexp so that the presence of a language
  can be explicitly checked.  Also now raising an error when a source
  block does not have a language.
 ---
 lisp/ob.el  |3 ++-
 lisp/org-exp.el |   30 --
 2 files changed, 22 insertions(+), 11 deletions(-)

 diff --git a/lisp/ob.el b/lisp/ob.el
 index 7b7be3d..d94cc06 100644
 --- a/lisp/ob.el
 +++ b/lisp/ob.el
 @@ -143,7 +143,8 @@ added to the header-arguments-alist.
(setq indent (car (last info)))
(setq info (butlast info))
(forward-line -1)
 -  (if (looking-at org-babel-src-name-w-name-regexp)
 +  (if (and (looking-at org-babel-src-name-w-name-regexp)
 +   (match-string 2))
(progn
  (setq info (append info (list (org-babel-clean-text-properties
 (match-string 2)
 diff --git a/lisp/org-exp.el b/lisp/org-exp.el
 index f1cea62..55b8812 100644
 --- a/lisp/org-exp.el
 +++ b/lisp/org-exp.el
 @@ -2107,19 +2107,29 @@ in the list) and remove property and value
 from the list in LISTVAR.
  lang code trans opts indent caption)
 (goto-char (point-min))
 (while (re-search-forward
 -\\(^\\([ \t]*\\)#\\+BEGIN_SRC:?[ \t]+\\([^
 \t\n]+\\)\\(.*\\)\n
 \\([^\000]+?\n\\)[ \t]*#\\+END_SRC.*\n?\\)\\|\\(^\\([ \t]*\\)#\\
 +BEGIN_EXAMPLE:?\\(?:[ \t]+\\(.*\\)\\)?\n\\([^\000]+?\n\\)[ \t]*#\\
 +END_EXAMPLE.*\n?\\)
 +\\(^\\([ \t]*\\)#\\+BEGIN_SRC:?\\([ \t]+\\([^
 \t\n]+\\)\\)?\\
 (.*\\)\n\\([^\000]+?\n\\)[ \t]*#\\+END_SRC.*\n?\\)\\|\\(^\\([ \t]*\
 \)#\\+BEGIN_EXAMPLE:?\\(?:[ \t]+\\(.*\\)\\)?\n\\([^\000]+?\n\\)
 [ \t]*#\\+END_EXAMPLE.*\n?\\)
  nil t)
   (if (match-end 1)
 -  ;; src segments
 -  (setq lang (match-string 3)
 -opts (match-string 4)
 -code (match-string 5)
 -indent (length (match-string 2))
 -caption (get-text-property 0 'org-caption (match-
 string 0)))
 +  (if (not (match-string 4))
 +  (error source block missing language specification: %s
 + (let* ((body (match-string 6))
 +(nothing (message body:%s body))
 +(preview (or (and (string-match
 +   ^[ \t]*\\([^\n\r]*\\) body)
 +  (match-string 1 body)) body)))
 +   (if ( (length preview) 35)
 +   (concat (substring preview 0 32) ...)
 + preview)))
 +;; src segments
 +(setq lang (match-string 4)
 +  opts (match-string 5)
 +  

Re: [Orgmode] [babel] re-hash cached blocks on each execution? or, force re-hash?

2010-07-12 Thread Eric Schulte
Hi Austin,

You've found an error.  The hash should be updated every time a new
result is inserted into the buffer.  I've just pushed up a fix which I
believe should take care of this error.  Please let me know if any
problems persist, or if some portion of your request remains
unfulfilled.

Thanks -- Eric

Austin Frank austin.fr...@gmail.com writes:

 Hello!

 I would find it extremely useful if the org-babel-execute-* family of
 commands re-hashed the executed blocks on each execution, or,
 alternatively, accepted a prefix argument that meant re-execute this
 block even if cached, and replace the cache-hash if necessary.

 Currently, if a block is cached, when I change something inside the
 block and then execute the block again, the hash in the #+results line
 doesn't change.  In cases where the contents of the block change but the
 output of the block does not, this makes it very difficult to tell
 whether the block has been re-executed or not.

 If there are good reasons not to re-hash the block on each execution and
 update the hash in the results line, I would like to be able to force
 this behavior.  In cases where I know that I want the block to be
 re-hashed and re-executed, it seems like C-u C-c C-c or C-u C-u C-c C-c
 would be a natural and org-ish way to force this.

 Here's a simple test case:

 * elisp example
 #+source:  elisp-test
 #+BEGIN_SRC emacs-lisp :cache yes
 (print hello world)
 (print re-hash and re-execute, please!)
 #+END_SRC

 #+results[f6dfc164b16889f1569fcd3242ba3de721853bc8]: elisp-test
 : hello world

 Now I change the above block in place (but reproduce the changes
 sequentially here):

 #+source:  elisp-test
 #+BEGIN_SRC emacs-lisp :cache yes
 (print hello world)
 (print re-hash and re-execute, please!)
 #+END_SRC

 #+results[f6dfc164b16889f1569fcd3242ba3de721853bc8]: elisp-test
 : re-hash and re-execute, please!

 Note that the block changed, and the results changed, but the hash did
 not.

 Now we change it again, in a way that doesn't change the output:

 #+source:  elisp-test
 #+BEGIN_SRC emacs-lisp :cache yes
 (setq four (+ 2 2))
 (print hello world)
 (print re-hash and re-execute, please!)
 #+END_SRC

 #+results[f6dfc164b16889f1569fcd3242ba3de721853bc8]: elisp-test
 : re-hash and re-execute, please!

 Again the block changed, but this time the results did not change and
 neither did the hash.  This makes it very hard to tell whether the code
 has been re-executed or not.  If the hash changed when the block
 changed, I could tell that the new code had been detected and run.

 Finally, we check whether the previous change was actually evaluated:

 * elisp test
 #+source:  elisp-test
 #+BEGIN_SRC emacs-lisp :cache yes
 (setq four (+ 2 2))
 (print hello world)
 (print re-hash and re-execute, please!)
 (print four)
 #+END_SRC

 #+results[f6dfc164b16889f1569fcd3242ba3de721853bc8]: elisp-test
 : 4

 So the block is re-evaluated when it's changed, but the hash isn't
 updated.  The only way we can tell if an altered block is re-run is if
 the output changes, but that won't necessarily be the case for every
 change in a block.  It would be very useful if the block were re-hashed
 before each execution, and the cache line updated whenever the hash
 changes.  One possible solution is to force re-hashing and re-execution
 with a prefix argument (or double prefix argument, if preferred).


 Thanks,
 /au

___
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-12 Thread Eric Schulte
Rainer M Krug r.m.k...@gmail.com writes:

 Hi Eric,

 On Fri, Jul 9, 2010 at 5:44 PM, Eric Schulte schulte.e...@gmail.com wrote:

 Hi Rainer,

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

  On Thu, Jul 8, 2010 at 9:03 PM, Eric Schulte schulte.e...@gmail.com
 wrote:
 [...]
 
  (add-hook 'org-babel-post-tangle-hook
   (lambda () (ess-load-file (buffer-file-name
 
 
  Unfortunately, this does not work. I put the code above into my
  emacs.organd nothing happens - not even an error message. I tried to
  use the C-h v to customise the variable, but I don't manage it.

 If the variable isn't registered with C-h v, then it sounds like maybe
 you need to update Org-mode, and/or re-run make clean  make.


 OK - that is working now.



  In addition, The filename for es-load-file shoud not be the buffer
  name, but the buffer name with the extension replaced with R.
 

 `buffer-file-name', returns the name of the file that the buffer is
 visiting, so wouldn't this already be the case if the filename ends with
 .R?


 Isn't the buffer from which I am tangling the org buffer, and not the result
 from the tangling? (see below for further remarks.


No this hook is run from /within/ a buffer visiting the file of tangled
code, so in the example hook function above (buffer-file-name) will
equal the name of the file of tangled R code.  From your later message
it looks like the issues below have been resolved.

Best -- Eric




 This minimal example with the hook defined as above works for me.  After
 tangling I can jump to the *R* buffer where both x and y are defined.

 --8---cut here---start-8---
 ** tangle R and load
   :PROPERTIES:
   :tangle:   to-load.r
   :END:

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

 #+begin_src R
  y - 9
 #+end_src
 --8---cut here---end---8---


 Not here -

 Emacs and org-mode version:

 GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 Org-mode version 6.36trans (release_6.36.603.g227b)

 1) if no R process is running, I get the following message:
 ess-start-process-specific: No ESS processes running; not yet implemented to
 start (Initial,nil)
 No problem 0 I can start an R process manually.

 2) when an R session is running, I get the following error message from ESS:
 Errors: Use C-c ` to find error.
 Symbol's function definition is void: with-temp-filebuffer

 and from ESS:

 Error in source(/home/rkrug/tmp/R.org) :
   /home/rkrug/tmp/R.org:1:1: unexpected '^'
 1: **

 it seems to submit the org file (the buffer is saved as R.org) to R.

 So buffer-file-name should actually be replaced with the name from the file
 name resulting from the tangling, in the easiest case (which would be fine
 with me) the org buffer name with .org replaced with .R.
 So I did the following (my firs elisp code!):

   (add-hook 'org-babel-post-tangle-hook
 (lambda () (ess-load-file (replace-regexp-in-string .org .R
 buffer-file-name

 and it is working - except that I still get the Symbol's function definition
 is void: with-temp-filebuffer , but it does not seem to do anything.

 Thanks a lot,

 Rainer





 
  I am sorry about all these questions, but emacs-lisp I have never used
  emacs-lisp (I should - and I will!)
 

 No problem at all, but be careful about learning too much lisp as you
 may begin to grow dissatisfied with R :)

 Best -- Eric

 
  Cheers and thanks for your patience,
 
  Rainer
 
 
  Best -- Eric
 
  Rainer M Krug r.m.k...@gmail.com writes:
 
   Hi
  
   I am using org-babel for literate programming in R and I am using the
   following approach to test the code:
  
   1) tangle
   2) refresh buffer containing the tangled code (I use auto-revert-mode
 or
   global-auto-revert-mode for that)
   3) load the tangled file into an existing R session via ESS R for
  evaluation
  
   This involves switching between buffers in always the same sequence.
   Therefore my suggestion:
  
   would it be possible to have a tangle-and-evaluate-tangled-file
  funcction,
   which is doing this automatically?
  
   C-c - 0 and org-babel-execute-buffer do not work in this case, as
  functions
   are split over several code blocks in R.
  
   Cheers,
  
   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


[Orgmode] Re: Tables and environment with parameters

2010-07-12 Thread Sébastien Vauban
Hi Carsten Dominik,

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?


 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:

--8---cut here---start-8---
*** Autres frais professionnels

#+BEGIN_changemargin {-4.2cm}{0cm}
  #+TBLNAME: AutresFPNVE
  #+ATTR_LaTeX: align=lr
  |   |  | Montant total (\EUR) | Taux 
amort (\%) | Part pro. (\%) | Déduc (\%) | NVE (\EUR) |
  
|---+--+--+-+++|
  |   | Documentation et formation   |51.05 |   
  |||   0.00 |
  |   | Communications GSM   |   831.16 |   
  100 | 25 |100 | 207.79 |
  |   | Internet (Dommel)|   167.88 |   
  100 | 33 |100 |  55.40 |
  |   | Fournitures à amortir (ordinateur + GSM) |   762.51 |   
   33 | 80 |100 | 201.30 |
  |   | Restaurant   |   304.70 |   
  100 |100 | 69 | 210.24 |
  
|---+--+--+-+++|
  |   | Total|  |   
  |||1062.02 |
  | ^ |  |  |   
  |||  Total |
  #+TBLFM: 
$7=$3*$4*$5*$6/100;%.2f::@2$3=51.05::@3$3=9.00+184.88+51.22+201.82+45.67+69.03+62.93+54.16+38.87+39.77+36.35+37.46::@4$3=12*13.99::@6$3=146.50+158.20;%.2f::@7$7=vsum(@-...@-ii);%.2f
#+END_changemargin

  Above this text, below the table, there is a line printed out in the PDF
  with the formula...

  #+TBLNAME: AutresFPNVEDeux
  #+ATTR_LaTeX: align=lr
  |   |  | Montant total (\EUR) | Taux 
amort (\%) | Part pro. (\%) | Déduc (\%) | NVE (\EUR) |
  
|---+--+--+-+++|
  |   | Documentation et formation   |51.05 |   
  |||   0.00 |
  |   | Communications GSM   |   831.16 |   
  100 | 25 |100 | 207.79 |
  |   | Internet (Dommel)|   167.88 |   
  100 | 33 |100 |  55.40 |
  |   | Fournitures à amortir (ordinateur + GSM) |   762.51 |   
   33 | 80 |100 | 201.30 |
  |   | Restaurant   |   304.70 |   
  100 |100 | 69 | 210.24 |
  
|---+--+--+-+++|
  |   | Total|  |   
  |||1062.02 |
  | ^ |  |  |   
  |||  Total |
  #+TBLFM: 
$7=$3*$4*$5*$6/100;%.2f::@2$3=51.05::@3$3=9.00+184.88+51.22+201.82+45.67+69.03+62.93+54.16+38.87+39.77+36.35+37.46::@4$3=12*13.99::@6$3=146.50+158.20;%.2f::@7$7=vsum(@-...@-ii);%.2f

  Here, everything is normal. Hence, the 

[Orgmode] Re: New CSS for orgmode and Worg ?

2010-07-12 Thread Dan Davison
While I remember, I have a CSS request: it would be nice if src code
blocks (and similar elements) could be formatted within a box which is
big enough to contain the code without wrapping, but does not
necessarily stretch all the way to the right margin. I don't know
anything about CSS I'm afraid; I hope that's feasible.

Thanks,

Dan

Christian Egli christian.e...@sbszh.ch writes:

 Bastien bastien.gue...@wikimedia.fr writes:

 Christian Egli christian.e...@sbszh.ch writes:

 What I'd like to see is something more aligned with the css for asciidoc
 which makes for a very pleasant and readable experience.

 Yes, the CSS behind asciidoc is neat.

 Unfortunatelly my expertise is limited to trial and error when it
 comes to css.

 Trial and error will be very useful for suggested CSS.

 Actually, come to think of it: I had totally forgotten that I once took
 the css from org
 (http://repo.or.cz/w/org-mode.git/blob/HEAD:/ORGWEBPAGE/org.css) and
 added some asciidoc styling to it. An example output can be seen at
 http://www.daisyproducer.org/. It is in a works for me state, I think
 I probably hard coded some assumptions I had on my side.

 The css is attached. 

 If there is demand I could merge it with the original org.css or create
 a patch.

 Thanks
 Christian

___
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] New CSS for orgmode and Worg ?

2010-07-12 Thread Greg Newman
Adding to my list Dan. Any other requests let me know.

-- Greg

On Monday, July 12, 2010, Dan Davison davi...@stats.ox.ac.uk wrote:
 While I remember, I have a CSS request: it would be nice if src code
 blocks (and similar elements) could be formatted within a box which is
 big enough to contain the code without wrapping, but does not
 necessarily stretch all the way to the right margin. I don't know
 anything about CSS I'm afraid; I hope that's feasible.

 Thanks,

 Dan

 Christian Egli christian.e...@sbszh.ch writes:

 Bastien bastien.gue...@wikimedia.fr writes:

 Christian Egli christian.e...@sbszh.ch writes:

 What I'd like to see is something more aligned with the css for asciidoc
 which makes for a very pleasant and readable experience.

 Yes, the CSS behind asciidoc is neat.

 Unfortunatelly my expertise is limited to trial and error when it
 comes to css.

 Trial and error will be very useful for suggested CSS.

 Actually, come to think of it: I had totally forgotten that I once took
 the css from org
 (http://repo.or.cz/w/org-mode.git/blob/HEAD:/ORGWEBPAGE/org.css) and
 added some asciidoc styling to it. An example output can be seen at
 http://www.daisyproducer.org/. It is in a works for me state, I think
 I probably hard coded some assumptions I had on my side.

 The css is attached.

 If there is demand I could merge it with the original org.css or create
 a patch.

 Thanks
 Christian

 ___
 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] footer for latex export

2010-07-12 Thread Buck Brody
I am just getting started with LaTeX.  I can't seem to figure out how
to add a footer to my document.

___
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 init

2010-07-12 Thread Jordi Inglada
Eric,

Thanks for the answer.

If I do that using emacs -q, I get this message when loading the
configuration:

Symbol's value as variable is void: org-babel-tangle-lang-exts

An after that when trying to evaluate this block from the tutorial

#+begin_src python
import time
print(Hello, today's date is %s % time.ctime())
print('Two plus two is')
return 2 + 2
#+end_src

I get this other message:

org-babel-execute-src-block: No org-babel-execute function for python!

If I put the configuration in my .emacs, the error I get is:

org-babel-result-hash: Symbol's value as variable is void: 
org-babel-lob-one-liner-regexp

I guess I missed something.

Thanks.

Jordi

Eric Schulte writes:
  Hi Jordi,
  
  With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
  you no longer need to add the contrib directory to your load path, or
  require org-babel-init.  The following should work for you.
  
  (setq load-path (cons /home/inglada/local/src/org-mode/lisp load-path))
  (require 'org-install)
  (require 'ob-python)
  
  note that for a language-specific require, you now prefix the language
  name with ob- rather than org-babel-
  
  For more complete information on the new setup, see
  http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
  
  Cheers -- Eric
  
  Jordi Inglada jordi.ingl...@cesbio.cnes.fr writes:
  
   Hi all,
  
   I am having the same problem as this user here:
  
   http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
  
   and the contrib/lisp directory is indeed in my load path.
  
   I am using a git changeset cloned today (Org-mode version 6.34trans
   (release_6.36.608.gc1ef)).
  
   I have tried using emacs -q and then loading an .el file containing
   only the following lines:
  
   (setq load-path (cons /home/inglada/local/src/org-mode/lisp load-path))
   (setq load-path (cons /home/inglada/local/src/org-mode/contrib/lisp 
   load-path))
  
   (require 'org-install)
   (require 'org-babel-init)
   (require 'org-babel-python)
  
   and I get the same result.
  
   Thank you very much for your help.
  
   Jordi
  
   ___
   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] footer for latex export

2010-07-12 Thread Nick Dokos
Buck Brody buckbr...@gmail.com wrote:

 I am just getting started with LaTeX.  I can't seem to figure out how
 to add a footer to my document.
 

I don't think that orgmode provides built-in support for this, but it
does provide mechanisms so that you can do it by hand. The most flexible
header/footer package that I know of is fancyhdr by Piet van Oostrum:

  http://www.tex.ac.uk/tex-archive/macros/latex/contrib/fancyhdr/

which provides for 3-part headers and footers with a lot of flexibility.
The PDF doc in the above directory describes it all in clear detail.

Here is a (fairly rudimentary) attempt to do that in an org-mode file:

--8---cut here---start-8---
#+LATEX_HEADER: \usepackage{fancyhdr}
#+LATEX_HEADER: \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \lhead{} 
\chead{} \rhead{} \lfoot{} \cfoot{Centered footer} \rfoot{}
#+LaTeX: \thispagestyle{fancy}

* Foo

bar

* Foo2

bar2

#+LaTeX: \newpage

* Foo3

bar3


--8---cut here---end---8---

whose only effect is to replace the default centered page number
by the string Centered footer.

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


[Orgmode] Re: Agenda view Face for deadlines PATCH

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

Carsten Dominik wrote:
 On May 21, 2010, at 9:43 AM, Sébastien Vauban wrote:
 Sébastien Vauban wrote:
 Sébastien Vauban wrote:
 In the same kind of thought, trying to enhance the way we (or I) visualize
 tasks in the agenda, I have chosen some sort of inverse video face for
 deadlines.

 (my-org-deadline-yesterday ((t (:foreground white :background #D8
 :weight bold
 (my-org-deadline-today ((t (:foreground white :background #E9A36A
 :weight bold
 (my-org-deadline-tomorrow ((t (:foreground black :background #B4F1B3
 :weight bold
 (my-org-deadline-later ((t (:foreground black :background #AACAFC

 with the following code in my .emacs file:

 ;; faces for showing deadlines in the agenda
 (setq org-agenda-deadline-faces
  '((1.01 . my-org-deadline-yesterday)
(0.99 . my-org-deadline-today)
(0.49 . my-org-deadline-tomorrow)
(0.00 . my-org-deadline-later)))

 The result is the following:

 Week-agenda (W20-W21):
 2010-05-18 Tue
 _
  Personal:   17:15-17:20 Sarah!  
 :home::errands:
  refile: Sched. 2x:  TODO [#A] Update reservations Scorpios
 :refile::
 x Family: xxx In  -1 d.:  TODO [#A] Photos-reportage Andre  
 :home::computer:

 where `xxx' is just some textual way to represent background color.

 For the sake of clarity, I'd like the first 2 characters (in front of
 `Family', in my example) not to be impacted by that face. Otherwise,
 when in inverse video, they obfuscate the view of the day separators and
 of the deadline lines.

 I was so disturbed by this, and have always wanted to become (and still
 wants) enlightened in Emacs Lisp and in Org's code that I finally took the
 time to try and understand how all this works.

 Not easy for me, I must admit. Cannot say I can follow the code, either,
 because of lack of knowledge, on ELisp and on how to trace through the
 code.

 Though, I've been able to answer my own demand, by [...] changing one line
 of `org-agenda.el' (L4619, function `org-agenda-get-deadlines'):

 (org-add-props txt props

 to

 (org-add-props-from-2 txt props

 Maybe that can be factored (much, much) more smartly?

 Can this be patched against the source code?

 After applying my patch, and playing a bit more with the results, I
 observed that entering RET on such lines (where the 2 first characters are
 not highlighted anymore) does not work anymore: command not allowed on
 this line.

 Is there someone more knowledgeable than I am that could help?

 `props' contains a text property with the marker that points to the origin of
 this entry.  Org tries to find this property at the  beginning of the line and
 does not find it.

 You would have to apply all properties to the full line, then remove the face
 property from the first two characters.

 However, I am not sure if this will work, because when one of these lines
 changes, Org might spread the text properties again over the  full line.  But
 maybe it will be OK, try it out.

I'm really not knowledgeable about faces, text properties, overlays, and so
on.

Though, I tried two things, on line 4636 of `org-agenda.el':

--8---cut here---start-8---
(let ((ov (make-overlay 0 2)))
  (overlay-put ov 'face  (list :background white))
  (overlay-put ov 'evaporate t))
--8---cut here---end---8---

Nothing changed. The first 2 characters of every line still display the
background face of the deadlines (red, orange or green, depending on urgency).

Next try (replacing the above):

--8---cut here---start-8---
(set-text-properties 0 2 nil txt)
--8---cut here---end---8---

Here, the background color of the first 2 characters is... white, as I want.
Though, org-agenda-error: Command not allowed in this line when clicking on
such a line...

Solution still to be found... Anybody having an hint. I am willing to try to
solve this.

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


Re: [Orgmode] Help installing org-mode on a MAC please?

2010-07-12 Thread Stefan Vollmar
Dear Erwin,

On 11.07.2010, at 17:43, Erwin Panen wrote:

 This is perhaps a trivial question, so please bear with me.
 
 I recently switched over to Mac, so I'm not familiar yet with all inside-out 
 Mac. At first I installed Aquamacs, but to be more compatible I'd prefer to 
 keep up with org-mode using git.
 
 I managed to install homebrew, next git, and was able to use git to get a 
 clone of org-mode so that's allright.
 (using git clone git://repo.or.cz/org-mode.git)
 Next I tried to follow the FAQ: How do I keep current with Org mode 
 development? 
 (http://orgmode.org/worg/org-faq.php#keeping-current-with-Org-mode-development)
 
 When I do: $ cd org-mode  make  make doc  make install
 everything seems to go allright, but I get an error in the end complaining 
 about LateX not being installed.
 So I installed MacTEX and tried running the above once more, with the same 
 error.



Here is a small recipe for using the latest Org-mode development version with 
Aquamacs which works fine for me.

(1) Do a 

git clone git://repo.or.cz/org-mode.git

in some directory of your choide, e.g. your home directory. (I believe, you 
have already done that.)

(2) cd to the new org-mode directory. Assuming you have installed Aquamacs in 
/Applications (default), change line 14 to:

EMACS=/Applications/Aquamacs.app/Contents/MacOS/Aquamacs

(3) make lisp/org-install.el
(4) make compile

(5) (optional and requires MacTeX or similar) 
make doc/org.pdf

(6) Insert these lines in your .emacs file:

(setq load-path (cons ~/org-mode/lisp load-path))
(require 'org-install)

this assumes that (1) created an org-mode directory in your home directory.

(7) Restart Aquamacs (you can later find out about more subtle methods than 
restarting Emacs which does not take long these days)

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de








smime.p7s
Description: S/MIME cryptographic 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] Org-babel init

2010-07-12 Thread Eric Schulte
Hi Jordi,

The attached simple-init.el file works for me with

  emacs -Q -l simple-init.el

Emacs started w/o error, and I was able to evaluate python code blocks
with no problem.

Please give it a try and let me know if it doesn't work -- Eric

(note you'll have to update the path to org/lisp)


simple-init.el
Description: application/emacs-lisp

Jordi Inglada jordi.ingl...@cesbio.cnes.fr writes:

 Eric,

 Thanks for the answer.

 If I do that using emacs -q, I get this message when loading the
 configuration:

 Symbol's value as variable is void: org-babel-tangle-lang-exts

 An after that when trying to evaluate this block from the tutorial

 #+begin_src python
 import time
 print(Hello, today's date is %s % time.ctime())
 print('Two plus two is')
 return 2 + 2
 #+end_src

 I get this other message:

 org-babel-execute-src-block: No org-babel-execute function for python!

 If I put the configuration in my .emacs, the error I get is:

 org-babel-result-hash: Symbol's value as variable is void: 
 org-babel-lob-one-liner-regexp

 I guess I missed something.

 Thanks.

 Jordi

 Eric Schulte writes:
   Hi Jordi,
   
   With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
   you no longer need to add the contrib directory to your load path, or
   require org-babel-init.  The following should work for you.
   
   (setq load-path (cons /home/inglada/local/src/org-mode/lisp load-path))
   (require 'org-install)
   (require 'ob-python)
   
   note that for a language-specific require, you now prefix the language
   name with ob- rather than org-babel-
   
   For more complete information on the new setup, see
   
 http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
   
   Cheers -- Eric
   
   Jordi Inglada jordi.ingl...@cesbio.cnes.fr writes:
   
Hi all,
   
I am having the same problem as this user here:
   
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
   
and the contrib/lisp directory is indeed in my load path.
   
I am using a git changeset cloned today (Org-mode version 6.34trans
(release_6.36.608.gc1ef)).
   
I have tried using emacs -q and then loading an .el file containing
only the following lines:
   
(setq load-path (cons /home/inglada/local/src/org-mode/lisp load-path))
(setq load-path (cons /home/inglada/local/src/org-mode/contrib/lisp 
 load-path))
   
(require 'org-install)
(require 'org-babel-init)
(require 'org-babel-python)
   
and I get the same result.
   
Thank you very much for your help.
   
Jordi
   
___
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] Wiki-like creating links on the fly for org

2010-07-12 Thread Russell Adams
Actually, the idea of CamelCase linking to a headline in the same file
is an interesting idea, using RadioTarges for external links.

** MyTopic

** Another topic

Those people who like MyTopic are totally cool.

Naysayers live in file:~/doc/Woopie.org:NaySayers



On Mon, Jul 12, 2010 at 01:09:00PM -0500, Marcelo de Moraes Serpa wrote:
 This doesn't seem to apply to what I want. It only links to org items
 inside the org file.
 
 Thanks for the hint, though!
 
 On Mon, Jul 12, 2010 at 12:57 PM, Erik Iverson er...@ccbr.umn.edu wrote:
  Perhaps I am confused, but have you tried radio targets?
 
  http://orgmode.org/org.html#Radio-targets
 
 
  Marcelo de Moraes Serpa wrote:
 
  Hey all!
 
  I used to be an avid user of WikiDPad, and I loved the way it
  automatically (or manually, using [ ]) created links and files to
  these links (CamelCase) for me. The way it provided a visual tree of
  the wiki was also pretty cool.
 
  This was awesome for reference kind of data, to build your own
  knowledge base. I've been trying to test different approaches with
  org, but none of them work as smoothly as it worked for me when using
  wikidpad.
 
  I divide reference data in two main categories: Dynamic and Static.
  Static are the notes and stuff that youl want to keep somewhere and
  that you'll eventually refer to later. Dynamic are the kind of that
  you'll be editing often, but does not fit in any other category
  GTD-wise. It is reference, you want to keep it somewhere, not take
  action on it per se (other than editing it), but you want to expand
  and modify it often.
 
  How difficult would it be to implement a small system that would index
  the files of directory, get the names (camel-case) and automatically
  link to these names if written on an org buffer? My elisp skills are
  very weak as of now.
 
  I know some of you might list a number of points against implementing
  this, but I really loved the way Wikdpad created links on the fly.
 
  Thanks,
 
  Marcelo
 
  ___
  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
 


--
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] Re: [BABEL] tangling with leaving non-source code lines as empty lines?

2010-07-12 Thread Eric Schulte
Hi Rainer,

With the tangling comments generated by the latest Org-mode, the
following function should be able to jump from any code in a tangled
code file back to the relevant block in the original Org-mode file.

--8---cut here---start-8---
(defun org-babel-tangle-jump-to-org ()
  Jump from a tangled code file to the related Org-mode file.
  (interactive)
  (let ((mid (point))
target-buffer target-char
start end link path block-name)
(save-window-excursion
  (save-excursion
(unless (and (re-search-backward org-bracket-link-analytic-regexp nil t)
 (setq start (point))
 (setq link (match-string 0))
 (setq path (match-string 3))
 (setq block-name (match-string 5))
 (re-search-forward (concat   (regexp-quote block-name)
 ends here[\n\r]) nil t)
 (setq end (point))
 ( start mid) ( mid end))
  (error not in tangled code)))
  (when (string-match :: path)
(setq path (substring path 0 (match-beginning 0
  (find-file path) (setq target-buffer (current-buffer))
  (goto-char start) (org-open-link-from-string link)
  (if (string-match [^ \t\n\r]:\\([[:digit:]]+\\) block-name)
  (org-babel-next-src-block
   (string-to-int (match-string 1 block-name)))
(org-babel-goto-named-src-block block-name))
  (setq target-char (point)))
(pop-to-buffer target-buffer)
(goto-char target-char)))
--8---cut here---end---8---

This is too large of a block of untested code to push into Org-mode now,
however please give it a try, and let me know if you think this could be
generally useful.  Hopefully after the feature-freeze we can fold
something like this into Babel to ease navigation between Org files and
their tangled offspring.

Cheers -- Eric

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

 Hi Rainer,

 If I'm understand you correctly you want the absolute position (by LOC)
 of the lines of R code to be the same in both the original org file and
 the tangled file or R code.  I don't think this is possible.  It is
 possible to tangle code blocks in any order (not just the order in which
 they appear in the original org file), so there are many valid tangling
 scenarios in which this feature could not work.

 Rather, I think that it may make sense to have a function for jumping
 back and forth between tangled code blocks and the related Org file.  In
 that case the R errors could be followed to the tangled R code file,
 from which you could easily jump to the relevant line in the relevant
 code block in the Org file.  If you are tangling with comments, then it
 should be possible to have a function called from a line in a tangled
 code file which when called

 1) finds it's enclosing comments
 2) remembers it's offset from the comments (which would then be it's
offset in the code block in the Org file)
 3) read the comment to learn which code block in which Org file it's
tangled from
 4) jump to the relevant line, in the relevant block, in the relevant
file

 Similarly when called form within a code block in an Org file the
 function could

 1) read it's header argument to find the relevant tangled code file
 2) jump to that file
 3) use the comments in that file to move to the appropriate section of
code and related line

 I'll think about such a function, and if it makes sense to implement it
 apart from a more general activate org-mode links in comments minor
 mode.  Any ideas or suggestions would be welcome!

 Thanks -- Eric

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

 Hi Eric,

 would it be possible, when tangling, to leave lines without source code in
 the resulting code file as empty lines? The reasoning would be that error
 messages (at least in R) give the line in which the error occurred. If the
 line numbers in which the code sits would be preserved (by leaving empty
 lines where no code is in the .org file), debugging would be much easier.

 By the way: I am using the after tangle hook and it works absolutely
 perfectly.

 Thanks and cheers,

 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


[Orgmode] headline is too long

2010-07-12 Thread Qiang Guo

Hi, Community

Sometimes I find headline is too long, is there anyway to
abbreviate it like:

* The headline is too long to fit ...

Thanks~

Qiang


___
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] can you require a certain template with lognotedone?

2010-07-12 Thread Michael Gilbert
Hi —

I asked Darlan this off-list and then I realized that it might be of broader 
interest.

I require a note when certain TODOs are changed to DONE. These are almost 
always some sort of structured logging. Is there a way to call org-capture 
and/or require a certain template for that note? That would be a very powerful 
workflow for me.

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


[Orgmode] Re: [babel] re-hash cached blocks on each execution? or, force re-hash?

2010-07-12 Thread Austin Frank
On Mon, Jul 12 2010, Eric Schulte wrote:

 You've found an error.  The hash should be updated every time a new
 result is inserted into the buffer.  I've just pushed up a fix which I
 believe should take care of this error.  Please let me know if any
 problems persist, or if some portion of your request remains
 unfulfilled.

Thanks, working great.

/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


pgpJ5Z1ILw7Vf.pgp
Description: 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] Re: [babel] apply #+TABLEFM lines during export?

2010-07-12 Thread Austin Frank
On Sun, Jul 11 2010, Eric Schulte wrote:

 Under the current setup, I don't know of a way to ensure that the
 formula will be re-run.  This may be a good place for future
 (post-feature-freeze) functionality.  There has also been discussion
 of adding a header argument for post-processing code blocks which
 could accept the output of the evaluated code block as input -- this
 might be related.

Yes, eager to see where this goes.

 As a work-around, I would suggest the following emacs-lisp code block.
 Export of this code block will trigger the evaluation of the R code
 block, and it will then trim the output of said block resulting in the
 desired table precision.

 #+begin_src emacs-lisp :var tab=anova-example :colnames yes :cache yes
   (mapcar
(lambda (row)
  (mapcar
   (lambda (cell) (if (numberp cell) (format %.4f cell) cell))
   row))
tab)
 #+end_src


I tried to customize your approach to apply to the whole buffer.  This
code seems to do a nice job of changing the appearance of the tables
within the buffer, but the extra precision is still maintained on
export.

--8---cut here---start-8---
#+source:  format-table-floats
#+BEGIN_SRC emacs-lisp :results silent :exports none
(add-hook 'org-export-preprocess-final-hook
  (lambda ()
(while (re-search-forward
|?[ ]+\\(-?[0-9]+\\.[0-9]+\\)\\(e-\\)?[ ]+|
nil t)
  (progn
(replace-match (concat
(format %.4f
(string-to-number (match-string 1)))
 |))
(org-table-align)
#+END_SRC
--8---cut here---end---8---

Can anyone suggest another approach that would change the precision of
floats in all tables in the buffer before export?  Perhaps there's a
different hook I should be using for LaTeX export?

Thanks!
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


pgpUqQ9qISTMi.pgp
Description: 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] [babel] report name of source block during execution

2010-07-12 Thread Austin Frank
Hello!

I know I've been making a lot of suggestions on the org-babel front
lately-- if I'm asking too much, please let me know!

During execution of source blocks through org babel, a message appears
to indicate that code is being executed, like

  executing LANG code block...

In cases where the block being executed is a named block, would it be
possible to include the name of the block in this echo?  Maybe something
like

  executing LANG code block (NAME)...

This would provide a rudimentary progress tracking mechanism during long
operations like org-babel-execute-buffer.

Thanks!
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


pgpKBkmDCLJS0.pgp
Description: 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] can you require a certain template with lognotedone?

2010-07-12 Thread Juan
Michael,

Have a look at org-log-note-headings customization variable,
together with org-log-done and friends.

All these are quite static text you can configure, so probably then
do not accomplish what you ask for.


Maybe a good-enough solution is to store your template as a register
and then insert it in the note-taking buffer.

Throw something like this in your .emacs:

(set-register ?n This is\nmy template\n)

so that C-x r i n   will insert that text.

//////
If you're feeling strange and are willing to change the code here:

in file org.el, line ~10880 (current git pull):

  ;; It is now done, and it was not done before
(org-add-planning-info 'closed (org-current-time))
  (if (and (not dolog) (eq 'note org-log-done))
(org-add-log-setup 'done state this
'findpos 'note)))

after the 'note, add your template as a string (or a lisp function
that provides a string (template) depending on the context/setup):

... 'findpos 'note this is\\nmy template)))

The string is an optional parameter for org-add-log-setup which will
be copied into the Org-Note buffer.


Good luck!
.j.


On Mon, Jul 12, 2010 at 06:05:43PM -0700, Michael Gilbert wrote:
 I require a note when certain TODOs are changed to DONE. These are
 almost always some sort of structured logging. Is there a way to
 call org-capture and/or require a certain template for that note?
 That would be a very powerful workflow for me.

___
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: [babel] apply #+TABLEFM lines during export?

2010-07-12 Thread Eric Schulte
Austin Frank austin.fr...@gmail.com writes:

 On Sun, Jul 11 2010, Eric Schulte wrote:

 Under the current setup, I don't know of a way to ensure that the
 formula will be re-run.  This may be a good place for future
 (post-feature-freeze) functionality.  There has also been discussion
 of adding a header argument for post-processing code blocks which
 could accept the output of the evaluated code block as input -- this
 might be related.

 Yes, eager to see where this goes.

 As a work-around, I would suggest the following emacs-lisp code block.
 Export of this code block will trigger the evaluation of the R code
 block, and it will then trim the output of said block resulting in the
 desired table precision.

 #+begin_src emacs-lisp :var tab=anova-example :colnames yes :cache yes
   (mapcar
(lambda (row)
  (mapcar
   (lambda (cell) (if (numberp cell) (format %.4f cell) cell))
   row))
tab)
 #+end_src


 I tried to customize your approach to apply to the whole buffer.  This
 code seems to do a nice job of changing the appearance of the tables
 within the buffer, but the extra precision is still maintained on
 export.


if you want to use my approach above more widely you could name the code
block say #+source:less-precision, then add :exports none to each of
your existing code blocks that output over-precise data, and for each
such block add a call of the following form

#+call: less-precision(tab=overly-precise-R-block) :exports results

which should work, but would litter your file with these call lines.  I
guess this is an instance where a post-processing function specified at
the file/subtree level could potentially be useful.

Cheers -- Eric


 #+source: format-table-floats
 #+BEGIN_SRC emacs-lisp :results silent :exports none
 (add-hook 'org-export-preprocess-final-hook
   (lambda ()
 (while (re-search-forward
 |?[ ]+\\(-?[0-9]+\\.[0-9]+\\)\\(e-\\)?[ ]+|
 nil t)
   (progn
 (replace-match (concat
 (format %.4f
 (string-to-number (match-string 1)))
  |))
 (org-table-align)
 #+END_SRC

 Can anyone suggest another approach that would change the precision of
 floats in all tables in the buffer before export?  Perhaps there's a
 different hook I should be using for LaTeX export?

 Thanks!
 /au

___
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] report name of source block during execution

2010-07-12 Thread Eric Schulte
Austin Frank austin.fr...@gmail.com writes:

 Hello!

 I know I've been making a lot of suggestions on the org-babel front
 lately-- if I'm asking too much, please let me know!


No problem, as long as you don't mind if some requests end up in triage.


 During execution of source blocks through org babel, a message appears
 to indicate that code is being executed, like

   executing LANG code block...

 In cases where the block being executed is a named block, would it be
 possible to include the name of the block in this echo?  Maybe something
 like

   executing LANG code block (NAME)...

 This would provide a rudimentary progress tracking mechanism during long
 operations like org-babel-execute-buffer.


Done, this was a simple change.

Thanks for the suggestion -- Eric


 Thanks!
 /au

___
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