[Orgmode] [PATCH 1/2] Load XML library if necessary.

2010-07-07 Thread David Maus
* org-feed.el (org-feed-unescape, org-feed-parse-atom-feed): Load XML
library if necessary.

Function that use xml.el must require 'xml to make sure it is loaded
at runtime.
---
 lisp/org-feed.el |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/org-feed.el b/lisp/org-feed.el
index 999bfd8..e41ad97 100644
--- a/lisp/org-feed.el
+++ b/lisp/org-feed.el
@@ -270,6 +270,7 @@ have been saved.
 
 (defun org-feed-unescape (s)
   Unescape protected entities in S.
+  (require 'xml)
   (let ((re (concat \\(
(mapconcat 'car xml-entity-alist \\|)
\\);)))
@@ -630,6 +631,7 @@ containing the properties `:guid' and `:item-full-text'.
 
 The `:item-full-text' property actually contains the sexp
 formatted as a string, not the original XML data.
+  (require 'xml)
   (with-current-buffer buffer
 (widen)
 (let ((feed (car (xml-parse-region (point-min) (point-max)
-- 
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


[Orgmode] [PATCH 2/2] Change indentation to match coding style guideline.

2010-07-07 Thread David Maus
* org-feed.el: Change indentation to match coding style
guideline.

Cosmetic changes.
---
 lisp/org-feed.el |   88 ++
 1 files changed, 49 insertions(+), 39 deletions(-)

diff --git a/lisp/org-feed.el b/lisp/org-feed.el
index e41ad97..2af97e5 100644
--- a/lisp/org-feed.el
+++ b/lisp/org-feed.el
@@ -166,10 +166,11 @@ Here are the keyword-value pair allows in 
`org-feed-alist'.
  When the handler is called, point will be at the feed headline.
 
 :parse-feed function
- This function gets passed a buffer, and should return a list of entries,
- each being a property list containing the `:guid' and `:item-full-text'
- keys.  The default is `org-feed-parse-rss-feed'; 
`org-feed-parse-atom-feed'
- is an alternative.
+ This function gets passed a buffer, and should return a list
+ of entries, each being a property list containing the
+ `:guid' and `:item-full-text' keys.  The default is
+ `org-feed-parse-rss-feed'; `org-feed-parse-atom-feed' is an
+ alternative.
 
 :parse-entry function
  This function gets passed an entry as returned by the parse-feed
@@ -200,12 +201,12 @@ Here are the keyword-value pair allows in 
`org-feed-alist'.
(list :inline t :tag Changed items
  (const :changed-handler)
  (symbol :tag Handler Function))
-(list :inline t :tag Parse Feed
-  (const :parse-feed)
-  (symbol :tag Parse Feed Function))
-(list :inline t :tag Parse Entry
-  (const :parse-entry)
-  (symbol :tag Parse Entry Function))
+   (list :inline t :tag Parse Feed
+ (const :parse-feed)
+ (symbol :tag Parse Feed Function))
+   (list :inline t :tag Parse Entry
+ (const :parse-entry)
+ (symbol :tag Parse Entry Function))
)
 
 (defcustom org-feed-drawer FEEDSTATUS
@@ -314,10 +315,10 @@ it can be a list structured like an entry in 
`org-feed-alist'.
org-feed-default-template))
  (drawer (or (nth 1 (memq :drawer feed))
  org-feed-drawer))
-  (parse-feed (or (nth 1 (memq :parse-feed feed))
-  'org-feed-parse-rss-feed))
-  (parse-entry (or (nth 1 (memq :parse-entry feed))
-   'org-feed-parse-rss-entry))
+ (parse-feed (or (nth 1 (memq :parse-feed feed))
+ 'org-feed-parse-rss-feed))
+ (parse-entry (or (nth 1 (memq :parse-entry feed))
+  'org-feed-parse-rss-entry))
  feed-buffer inbox-pos new-formatted
  entries old-status status new changed guid-alist e guid olds)
   (setq feed-buffer (org-feed-get-feed url))
@@ -333,10 +334,11 @@ it can be a list structured like an entry in 
`org-feed-alist'.
  (setq old-status (org-feed-read-previous-status inbox-pos drawer))
  ;; Add the handled status to the appropriate entries
  (setq entries (mapcar (lambda (e)
- (setq e (plist-put e :handled
-(nth 1 (assoc
-(plist-get e :guid)
-old-status)
+ (setq e
+   (plist-put e :handled
+  (nth 1 (assoc
+  (plist-get e :guid)
+  old-status)
entries))
  ;; Find out which entries are new and which are changed
  (dolist (e entries)
@@ -637,9 +639,9 @@ formatted as a string, not the original XML data.
 (let ((feed (car (xml-parse-region (point-min) (point-max)
   (mapcar
(lambda (entry)
- (list
-  :guid (car (xml-node-children (car (xml-get-children entry 'id
-  :item-full-text (prin1-to-string entry)))
+(list
+ :guid (car (xml-node-children (car (xml-get-children entry 'id
+ :item-full-text (prin1-to-string entry)))
(xml-get-children feed 'entry)
 
 (defun org-feed-parse-atom-entry (entry)
@@ -647,28 +649,36 @@ formatted as a string, not the original XML data.
   (let ((xml (car (read-from-string (plist-get entry :item-full-text)
 ;; Get first link href='foo'/.
 (setq entry (plist-put entry :link
-   (xml-get-attribute
-(car (xml-get-children xml 'link))
-'href)))
+  (xml-get-attribute
+   (car 

Re: [Orgmode] [Org-mode] feed.el

2010-07-07 Thread David Maus
Mark Scala wrote:
I created a file in ~/org called feeds.org and in that file did C-c C-x g.
A headline for Slashdot Entries appeared.  But when I do C-c C-x g on that
entry I get the following message:  Symbol's value as variable is void:
xml-entity-alist

Nowhere do I find any information about setting that variable.  Any ideas?
(I'm using the latest development version of Org, compiled from git sources
today).

The variable is defined in the XML library xml.el and the error
occurs, because this library wasn't loaded when Org parsed the feed.
The patch I've just send should fix this: xml.el is part of Emacs, so
the functions the use xml.el will load it if necessary (i.e. it wasn't
loaded before).

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


pgppV5G70PJfk.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] [BUG] org-capture : latest git pull, template selection broken ?

2010-07-07 Thread David Maus
Julien Fantin wrote:
With the org-capture-templates described in the doc, right after the
template selection, the buffer disappears, and the empty template gets
written to the target file.
The following messages are output :
Clipboard pasted as level 2 subtree

Has the template selection changed, or is this a bug ?

Could you provide the template you are using?  I've just pulled and
all of my templates work perfectly.

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-05-16 on raven, modified by Debian

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


pgpzFttaMihxn.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] [PATCH 1/2] Load XML library if necessary.

2010-07-07 Thread Carsten Dominik

Appied, thanks.

- Carsten

On Jul 7, 2010, at 8:22 AM, David Maus wrote:


* org-feed.el (org-feed-unescape, org-feed-parse-atom-feed): Load XML
library if necessary.

Function that use xml.el must require 'xml to make sure it is loaded
at runtime.
---
lisp/org-feed.el |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/org-feed.el b/lisp/org-feed.el
index 999bfd8..e41ad97 100644
--- a/lisp/org-feed.el
+++ b/lisp/org-feed.el
@@ -270,6 +270,7 @@ have been saved.

(defun org-feed-unescape (s)
  Unescape protected entities in S.
+  (require 'xml)
  (let ((re (concat \\(
(mapconcat 'car xml-entity-alist \\|)
\\);)))
@@ -630,6 +631,7 @@ containing the properties `:guid' and `:item- 
full-text'.


The `:item-full-text' property actually contains the sexp
formatted as a string, not the original XML data.
+  (require 'xml)
  (with-current-buffer buffer
(widen)
(let ((feed (car (xml-parse-region (point-min) (point-max)
--
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


- 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] Re: Columns with LaTeX beamer export

2010-07-07 Thread Tassilo Horn
On Tuesday 06 July 2010 22:47:35 Eric S Fraga wrote:

Hi Eric,

  --8---cut here---start-8---
  * My 2 Column Frame
:PROPERTIES:
:BEAMER_env: columns
:BEAMER_col: 0.5 0.5
:END:
  
- left col text
- more left col text
  
- right col text
- more right col text
  --8---cut here---end---8---
 
 I'm sorry Tassilo but I do not understand your point.  Lists are not
 part of an outline structure so there is only one outline component in
 this example.

Yes, that's exactly the point I don't understand in the paragraph

  Columns *without* additional outline structure

in the org-tutorials/org-beamer.org file in Worg.  This headline implies
(to me) that I can have a slide with many columns but no outline
structure, except the headline for the frame itself.

It states, that adding the :BEAMER_env: columns property to a slide
heading will open a new columns and a column environment, and the end of
the slide will close all open environments.  But it doesn't tell me how
to close a column and start a new one without adding additional outline
structure.

So that paragraph should be made a bit clearer and include an example.
Maybe you can only have a columns environment with only one single
column, if you don't add an extra outline structure?  Would that make
sense?  Or maybe the wording of the headline is only misleading, and the
author had another intention than what I am reading.  Well, I don't
know...

Bye,
Tassilo

___
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: Columns with LaTeX beamer export

2010-07-07 Thread Carsten Dominik


On Jul 7, 2010, at 8:52 AM, Tassilo Horn wrote:


On Tuesday 06 July 2010 22:47:35 Eric S Fraga wrote:

Hi Eric,


--8---cut here---start-8---
* My 2 Column Frame
 :PROPERTIES:
 :BEAMER_env: columns
 :BEAMER_col: 0.5 0.5
 :END:

 - left col text
 - more left col text

 - right col text
 - more right col text
--8---cut here---end---8---


I'm sorry Tassilo but I do not understand your point.  Lists are not
part of an outline structure so there is only one outline component  
in

this example.


Yes, that's exactly the point I don't understand in the paragraph

 Columns *without* additional outline structure

in the org-tutorials/org-beamer.org file in Worg.  This headline  
implies

(to me) that I can have a slide with many columns but no outline
structure, except the headline for the frame itself.

It states, that adding the :BEAMER_env: columns property to a slide
heading will open a new columns and a column environment, and the  
end of
the slide will close all open environments.  But it doesn't tell me  
how
to close a column and start a new one without adding additional  
outline

structure.

So that paragraph should be made a bit clearer and include an example.
Maybe you can only have a columns environment with only one single
column, if you don't add an extra outline structure?  Would that make
sense?  Or maybe the wording of the headline is only misleading, and  
the

author had another intention than what I am reading.  Well, I don't
know...


Hi Tassilo,

the only way to understand this paragraph is historical.

In the early days of BEAMER export, Eric Fraga invented a way to make  
columns
using an additional level of outline structure, just for making the  
columns.


http://thread.gmane.org/gmane.emacs.orgmode/19895/focus=19895

This worked, but made it difficult to export this file in
any other way, because of the extra structure.  This was overcome
with the BEAMER_col property, and this is what this paragraph
and the phrase without additional structure is referring to.

The tutorial I wrote on worg is out of date and bad, maybe we should  
remove it?
Does someone (Eric Fraga?) have time to check if there is anything  
interesting
in there that is is still true and not covered by the manual or by  
Eric's

tutorial?  If not, we should remove this outdated document.

If it adds something, maybe we can move that information?

If that is done, maybe we should remove this document.

Thanks

- Carsten



Bye,
Tassilo

___
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] Re: Columns with LaTeX beamer export

2010-07-07 Thread Tassilo Horn
Hi Carsten,

 the only way to understand this paragraph is historical.

I guessed it, thanks for making that clear.

 In the early days of BEAMER export, Eric Fraga invented a way to make
 columns using an additional level of outline structure, just for
 making the columns.
 
 http://thread.gmane.org/gmane.emacs.orgmode/19895/focus=19895

Interesting.

 This worked, but made it difficult to export this file in any other
 way, because of the extra structure.  This was overcome with the
 BEAMER_col property, and this is what this paragraph and the phrase
 without additional structure is referring to.

Ah, ok.  So now you don't need an extra outline structure for making a
*columns* environment, but you still need it for ending the last
*column* and starting a new one.

I've though I could go without the latter, too.  That would be good for
documents you export as presentation but also as article handout.

 The tutorial I wrote on worg is out of date and bad, maybe we should
 remove it?  Does someone (Eric Fraga?) have time to check if there is
 anything interesting in there that is is still true and not covered by
 the manual or by Eric's tutorial?  If not, we should remove this
 outdated document.

I think every property is explained in the info docs, and Eric's
tutorial shows some nice and well explained examples, so the
org-beamer.org file could be deleted.

 If it adds something, maybe we can move that information?

It adds confusion, so we should move that to the texinfo docs!?! ;-)

Bye,
Tassilo

___
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] Problem with HTML_CONTAINER_CLASS property

2010-07-07 Thread David Maus
Jan Janak wrote:
Hello,

I am using the HTML_CONTAINER_CLASS property in one of my documents to
append additional classes to the corresponding div in the HTML
document I export to:

* Subsection
:PROPERTIES:
:HTML_CONTAINER_CLASS: span-9 last
:END:

When I publish the document, the resulting HTML code looks like this:
div id=outline-container-1 class=outline-2 span-9

The class last is missing. I also verified that if I add more
classes to the list, only the first one span-9 makes it to the HTML
code.

Is this a feature or a bug? I am using the latest org-mode version
from git (6.36trans with HEAD c32d7) and Emacs 23.2.1.

Neither a feature nor a bug: A limitation ;) I'll see to provide a
patch to extend usage HTML_CONTAINER_CLASS to support more than one
additional class after the feature freeze[1].

HTH
 -- David

[1] http://thread.gmane.org/gmane.emacs.orgmode/27074
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpvllyRXtJMu.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] Re: Columns with LaTeX beamer export

2010-07-07 Thread Carsten Dominik


On Jul 7, 2010, at 9:14 AM, Tassilo Horn wrote:


Hi Carsten,


the only way to understand this paragraph is historical.


I guessed it, thanks for making that clear.


In the early days of BEAMER export, Eric Fraga invented a way to make
columns using an additional level of outline structure, just for
making the columns.

http://thread.gmane.org/gmane.emacs.orgmode/19895/focus=19895


Interesting.


This worked, but made it difficult to export this file in any other
way, because of the extra structure.  This was overcome with the
BEAMER_col property, and this is what this paragraph and the phrase
without additional structure is referring to.


Ah, ok.  So now you don't need an extra outline structure for making a
*columns* environment, but you still need it for ending the last
*column* and starting a new one.

I've though I could go without the latter, too.  That would be good  
for

documents you export as presentation but also as article handout.

The tutorial I wrote on worg is out of date and bad, maybe we  
should

remove it?  Does someone (Eric Fraga?) have time to check if there is
anything interesting in there that is is still true and not covered  
by

the manual or by Eric's tutorial?  If not, we should remove this
outdated document.


I think every property is explained in the info docs, and Eric's
tutorial shows some nice and well explained examples, so the
org-beamer.org file could be deleted.


If you want, please go ahead and make these changes.  The link in  
Erics tutorial
should then point to the manual section, not the preliminary  
documentation.


And on the tutorials pager, the link to the preliminary documentation  
can be deleted.





If it adds something, maybe we can move that information?


It adds confusion, so we should move that to the texinfo docs!?! ;-)


But move what?  I don't think my worg page still adds anything.

- 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] Re: Columns with LaTeX beamer export

2010-07-07 Thread Carsten Dominik


On Jul 7, 2010, at 9:14 AM, Tassilo Horn wrote:


Hi Carsten,


the only way to understand this paragraph is historical.


I guessed it, thanks for making that clear.


In the early days of BEAMER export, Eric Fraga invented a way to make
columns using an additional level of outline structure, just for
making the columns.

http://thread.gmane.org/gmane.emacs.orgmode/19895/focus=19895


Interesting.


This worked, but made it difficult to export this file in any other
way, because of the extra structure.  This was overcome with the
BEAMER_col property, and this is what this paragraph and the phrase
without additional structure is referring to.


Ah, ok.  So now you don't need an extra outline structure for making a
*columns* environment, but you still need it for ending the last
*column* and starting a new one.

I've though I could go without the latter, too.  That would be good  
for

documents you export as presentation but also as article handout.


I guess you could do it with something like

#+BEAMER: {}\begin{column}



#+BEAMER: {}\end{column}

Or, maybe you can talk org-special-blocks.el (contrib dir) into
helping you with this...

- Carsten


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


[Orgmode] Export of latex source to html

2010-07-07 Thread Rainer M Krug
Hi

I created the attached latex.org based on the example with pgf/tikz and it
exports fine into a pdf. But export to html causes the problem, that I get
only a link to the created graph. If I change :file to :file fsa.png, an
image is included but it is a) very small and b) nearly completely black.

I guess, it has to do with the size of the png - but how can I change it?
:width and :height do not seem to have any impact.

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


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


Re: [Orgmode] Re: skip entry with inherited tags

2010-07-07 Thread Martin Pohlack

Hi Carsten,

On 04.06.2010 14:11, Martin Pohlack wrote:

On 04.06.2010 13:27, Carsten Dominik wrote:

Hi Martin,

maybe you can summarize this discussion so that I can see when should
be done?  Thanks.


* org-agenda-filter-preset is ignored for multi-part agendas (broken)
* I have a patch that fixes this by applying filtering for each sub-part
* The patch works for me


May I inquire the state of this item?

The patch seems to have vanished from the default view in patchwork it 
is only shown here:


http://patchwork.newartisans.com/project/org-mode/list/?archive=both

But it is still Under Review by you.

Do you need assistance with the patch?

Cheers,
Martin

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


Re: [Orgmode] Re: Columns with LaTeX beamer export

2010-07-07 Thread Tassilo Horn
On Wednesday 07 July 2010 09:56:49 Carsten Dominik wrote:

  I think every property is explained in the info docs, and Eric's
  tutorial shows some nice and well explained examples, so the
  org-beamer.org file could be deleted.
 
 If you want, please go ahead and make these changes.  The link in
 Erics tutorial should then point to the manual section, not the
 preliminary documentation.

I deleted the obsolete org-beamer.org and added a link to the beamer
class manual section to Eric's tutorial.  So Worg should be ok now.

Bye,
Tassilo

___
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: Columns with LaTeX beamer export

2010-07-07 Thread Eric S Fraga
On Wed, 7 Jul 2010 10:25:00 +0200, Tassilo Horn tass...@member.fsf.org wrote:
 
 On Wednesday 07 July 2010 09:56:49 Carsten Dominik wrote:
 
   I think every property is explained in the info docs, and Eric's
   tutorial shows some nice and well explained examples, so the
   org-beamer.org file could be deleted.
  
  If you want, please go ahead and make these changes.  The link in
  Erics tutorial should then point to the manual section, not the
  preliminary documentation.
 
 I deleted the obsolete org-beamer.org and added a link to the beamer
 class manual section to Eric's tutorial.  So Worg should be ok now.
 
 Bye,
 Tassilo

Excellent.  Thanks!

And, yes, I'd forgotten about the historical nature of the first
document you looked at!  Although it was done not so long ago,
Carsten's proper implementation of beamer support within org allowed
me to very quickly *forget* about the hacks I had done...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Columns with LaTeX beamer export

2010-07-07 Thread Carsten Dominik
There is still a broken link, for the index page of the tutorials  
directory...


- Carsten

On Jul 7, 2010, at 12:38 PM, Eric S Fraga wrote:

On Wed, 7 Jul 2010 10:25:00 +0200, Tassilo Horn tass...@member.fsf.org 
 wrote:


On Wednesday 07 July 2010 09:56:49 Carsten Dominik wrote:


I think every property is explained in the info docs, and Eric's
tutorial shows some nice and well explained examples, so the
org-beamer.org file could be deleted.


If you want, please go ahead and make these changes.  The link in
Erics tutorial should then point to the manual section, not the
preliminary documentation.


I deleted the obsolete org-beamer.org and added a link to the beamer
class manual section to Eric's tutorial.  So Worg should be ok now.

Bye,
Tassilo


Excellent.  Thanks!

And, yes, I'd forgotten about the historical nature of the first
document you looked at!  Although it was done not so long ago,
Carsten's proper implementation of beamer support within org allowed
me to very quickly *forget* about the hacks I had done...
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D


- 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] Export of latex source to html

2010-07-07 Thread Eric S Fraga
On Wed, 7 Jul 2010 10:06:15 +0200, Rainer M Krug r.m.k...@gmail.com wrote:
 
 [1  multipart/alternative (7bit)]
 [1.1  text/plain; ISO-8859-1 (7bit)]
 Hi
 
 I created the attached latex.org based on the example with pgf/tikz and it
 exports fine into a pdf. But export to html causes the problem, that I get
 only a link to the created graph. If I change :file to :file fsa.png, an
 image is included but it is a) very small and b) nearly completely black.
 
 I guess, it has to do with the size of the png - but how can I change it?
 :width and :height do not seem to have any impact.

Rainer,

one approach could be to allow latex to create the PDF and the convert
(using the shell, say) the PDF to a PNG and include that:

--8---cut here---start-8---
#+begin_src latex :file fsa.pdf :packages '(( tikz))

[...]

#+end_src
#+begin_src sh
  convert -density 300 fsa.pdf fsa.png
#+end_src

#+attr_html: width=50%
  [[file:./fsa.png]]
--8---cut here---end---8---

This works.  However, my babel knowledge is not up to speed so I don't
know how to tell it to not output anything in the HTML document for
the two babel snippets (latex and sh).  If you know how, let me know!

HTH,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Columns with LaTeX beamer export

2010-07-07 Thread Tassilo Horn
On Wednesday 07 July 2010 12:43:52 Carsten Dominik wrote:
 There is still a broken link, for the index page of the tutorials  
 directory...

Fixed, and the tutorial link now links org-beamer/tutorial.org instead
of the directory.  What's the presentation.org in that dir?

Bye,
Tassilo

___
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] Export of latex source to html

2010-07-07 Thread Eric S Fraga
Following up on my own message, one thing to consider is that
generating the figure in latex creates a PDF that takes up the whole
page but the figure is only a small part of this page.  In latex, if I
wanted the PDF to include only the tikz figure, I would do the
following:

--8---cut here---start-8---
\documentclass{article}

[...]

\usepackage[active,tightpage]{preview}
\setlength\PreviewBorder{5pt}%

\begin{document}
  % Define block styles
  \begin{preview}

[... the tikz commands ...]

  \end{preview}
\end{document}
--8---cut here---end---8---

It may be worthwhile providing this type of option to babel-latex?
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Columns with LaTeX beamer export

2010-07-07 Thread Eric S Fraga
On Wed, 7 Jul 2010 13:02:57 +0200, Tassilo Horn tass...@member.fsf.org wrote:
 
 On Wednesday 07 July 2010 12:43:52 Carsten Dominik wrote:
  There is still a broken link, for the index page of the tutorials  
  directory...
 
 Fixed, and the tutorial link now links org-beamer/tutorial.org instead
 of the directory.  What's the presentation.org in that dir?
 
 Bye,
 Tassilo

That is the example file referred to by the tutorial and which the
reader is encouraged to download!  It provides a hopefully useful
starting point for the reader's own presentation...
-- 
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] wrap text in table cell?

2010-07-07 Thread David Rogoff
I'm still learning org mode and have a question about table mode.  Is 
there a way to wrap text in a cell?  I search the docs I could find and 
the closest thing was putting N in a cell which forced that column to 
be N characters wide.  That sort-or works, but isn't great.  Am I 
missing something, or can org-mode not do this?


Thanks,

 David

___
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] fix for error of quoted and emphasized text in LaTeX export

2010-07-07 Thread Robert Hennig
Dear Orgmode List,

In LaTeX export the following will fail:

/Hello/ - ``/Hello/''

instead of

/Hello/ - ``\emph{Hello}''

The fix I propose is to change the order of
calling
org-export-latex-quotation-marks AFTER
org-export-latex-fontify in
the org-export-latex-content function, because the quotation marks would
be changed and do not match the regexp anymore.

But I'm not too shure if there are other implications to regard.

best regards,


Robert Hennig

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

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

 the current CSS for orgmode.org and orgmode.org/Worg is nice: readable
 and simple.  But I'm bugged by the feeling we can do better.

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

Look for the css that is delivered with
http://www.methods.co.nz/asciidoc/ or in the repository at
http://code.google.com/p/asciidoc/source/browse/#hg/stylesheets

 Anyone with CSS expertise ready to take this challenge ?

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

Thanks
Christian
-- 
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
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] A few typos

2010-07-07 Thread Phil Rooke
Correct a few spelling mistakes.  Some of these are American vs British
spelling disagreements but the Org documentation uses the US spellings.

diff --git a/doc/org.texi b/doc/org.texi
index 25406c0..73289d2 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -434,7 +434,7 @@ Using header arguments
 Specific header arguments
 
 * var::Pass arguments to code blocks
-* results::Specify the type of results and how they will 
be collectd and handled
+* results::Specify the type of results and how they will 
be collected and handled
 * file::   Specify a path for file output
 * dir and remote execution::   Specify the default directory for code block 
execution
 * exports::Export code and/or results
@@ -451,7 +451,7 @@ Specific header arguments
 Miscellaneous
 
 * Completion:: M-TAB knows what you need
-* Speed keys:: Electic commands at the beginning of a headline
+* Speed keys:: Electric commands at the beginning of a headline
 * Code evaluation security::   Org mode files evaluate inline code
 * Customization::  Adapting Org to your taste
 * In-buffer settings:: Overview of the #+KEYWORDS
@@ -1521,7 +1521,7 @@ LaTeX}).  Here are the valid references:
 @table @code
 @item [1]
 A plain numeric footnote marker.  Compatible with @file{footnote.el}, but not
-recommended because somthing like @samp{[1]} could easily be part of a code
+recommended because something like @samp{[1]} could easily be part of a code
 snippet.
 @item [fn:name]
 A named footnote reference, where @code{name} is a unique label word, or, for
@@ -2643,7 +2643,7 @@ functions.
 @node Org-Plot,  , The spreadsheet, Tables
 @section Org-Plot
 @cindex graph, in tables
-...@cindex plot tables using gnuplot
+...@cindex plot tables using Gnuplot
 @cindex #+PLOT
 
 Org-Plot can produce 2D and 3D graphs of information stored in org tables
@@ -3868,7 +3868,7 @@ If the task was going to be overdue the next day.
 If the task was overdue on that day.
 @end table
 
-In addition to coloring each day, the day is also marked with an asterix if
+In addition to coloring each day, the day is also marked with an asterisk if
 the task was actually done that day, and an exclamation mark to show where
 the current day falls in the graph.
 
@@ -5745,8 +5745,8 @@ use the shift key and press @kbd{S}.  Remember that using 
shift will always
 leave you clocked out, no matter which option you choose.
 @item C
 To cancel the clock altogether, use @kbd{C}.  Note that if instead of
-cancelling you subtract the away time, and the resulting clock amount is less
-than a minute, the clock will still be cancelled rather than clutter up the
+canceling you subtract the away time, and the resulting clock amount is less
+than a minute, the clock will still be canceled rather than clutter up the
 log with an empty entry.
 @end table
 
@@ -6026,7 +6026,7 @@ place where you started the capture process.
 @node Template elements, Template expansion, Capture templates, Capture 
templates
 @subsubsection Template elements
 
-Now lets look at the elements of a template defintion.  Each entry in
+Now lets look at the elements of a template definition.  Each entry in
 @code{org-capture-templates} is a list with the following items: 
 
 @table @var
@@ -9455,7 +9455,7 @@ and @code{style} attributes for a link:
 Org-mode tables are exported to HTML using the table tag defined in
 @code{org-export-html-table-tag}.  The default setting makes tables without
 cell borders and frame.  If you would like to change this for individual
-tables, place somthing like the following before the table:
+tables, place something like the following before the table:
 
 @cindex #+CAPTION
 @cindex #+ATTR_HTML
@@ -9486,7 +9486,7 @@ will link to a high resolution version of the image, you 
could use:
 [[file:highres.jpg][file:thumb.jpg]]
 @end example
 
-If you need to add attributes to an inlines image, use a @code{#+ATTR_HTML}.
+If you need to add attributes to an inlined image, use a @code{#+ATTR_HTML}.
 In the example below we specify the @code{alt} and @code{title} attributes to
 support text viewers and accessibility, and align it to the right.
 
@@ -10329,7 +10329,7 @@ For more information and examples see the 
Org-taskjuggler tutorial at
 @cindex Freemind export
 @cindex mind map
 
-The freemind exporter was written by Lennart Borgman.
+The Freemind exporter was written by Lennart Borgman.
 
 @table @kbd
 @kindex C-c C-e m
@@ -11005,7 +11005,7 @@ formulas (see @ref{The spreadsheet}).
 @item language
 The language of the code in the block.
 @item switches
-Switches controling exportation of the code block (see switches discussion in
+Switches controlling exportation of the code block (see switches discussion in
 @ref{Literal examples})
 @item header arguments
 Optional header arguments control many aspects of evaluation, export and
@@ 

[Orgmode] [PATCH] The docstring of org-capture-templates

2010-07-07 Thread Phil Rooke
A few minor corrections and suggestions for the org-capture-templates
docstring

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 2b02b77..8b6bd03 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -97,14 +97,16 @@ keys The keys that will select the template, as a 
string, characters
 description  A short string describing the template, will be shown during
  selection.
 
-type The type of entry.  Valid are:
+type The type of entry.  Valid types are:
entry   an Org-mode node, with a headline. Will be
filed as the child of the target entry or as
a top-level entry.
-   itema plain list item, placed in the first plain
-   list a the target location.
-   checkitem   a checkbox item.  This only differs from the
-   plain lis item by the default template.
+   itema plain list item, will be placed in the
+   first plain list at the target
+   location.
+   checkitem   a checkbox item.  This differs from the
+   plain list item only is so far as it uses a
+   different default template.
table-line  a new line in the first table at target location.
plain   text to be inserted as it is.
 
@@ -119,7 +121,7 @@ target   Specification of where the captured item 
should be placed.
  Text will be placed at the beginning or end of that file
 
  (id \id of existing org entry\)
- Filing as child of this entry, or in the body of the entry
+ File as child of this entry, or in the body of the entry
 
  (file+headline \path/to/file\ \node headline\)
  Fast configuration if the target heading is unique in the file
@@ -128,20 +130,20 @@ target   Specification of where the captured item 
should be placed.
  For non-unique headings, the full path is safer
 
  (file+regexp  \path/to/file\ \regexp to find location\)
+ File to the entry matching regexp
 
  (file+datetree \path/to/file\)
- Will create a heading in a date tree.
+ Will create a heading in a date tree
 
  (file+function \path/to/file\ function-finding-location)
- A function to find the right location in the file.
+ A function to find the right location in the file
 
  (clock)
-File to the entry that is currently being clocked.
+File to the entry that is currently being clocked
 
  (function function-finding-location)
 Most general way, write your own function to find both
-file and location.
-
+file and location
 
 template The template for creating the capture item.  If you leave this
  empty, an appropriate default template will be used.  See below
@@ -156,7 +158,7 @@ template The template for creating the capture item.  
If you leave this
 The rest of the entry is a property list of additional options.  Recognized
 properties are:
 
- :prependNormally new captured information will be appended at
+ :prependNormally newly captured information will be appended at
  the target location (last child, last table line,
  last list item...).  Setting this property will
  change that.
@@ -183,12 +185,12 @@ properties are:
  which means that the new line should become the third
  line before the second horizontal separaor line.
 
-The template defined the text to be inserted.  Often then this is an org-mode
+The template defines the text to be inserted.  Often this is an org-mode
 entry (so the first line should start with a star) that will be filed as a
 child of the target headline.  It can also be freely formatted text.
 Furthermore, the following %-escapes will be replaced with content:
 
-  %^{prompt}  Prompt the user for a string and replace this sequence with it.
+  %^{prompt}  prompt the user for a string and replace this sequence with it.
   A default value and a completion table ca be specified like this:
   %^{prompt|default|completion2|completion3|...}
   %t  time stamp, date only
@@ -202,13 +204,13 @@ Furthermore, the following %-escapes will be replaced 
with content:
   indented, the entire inserted text will be indented as well.
   %c  current kill ring head
   %x  content of the X clipboard
-  %^C Interactive selection of which kill or clip to use
-  %^L Like %^C, but insert as link
+  %^C interactive selection of which kill or clip to use
+  

[Orgmode] remember template is slow

2010-07-07 Thread Buck Brody
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?

Thanks

Windows 7
GNU Emacs 23.2.1
Org-mode version 6.36c
___
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-mobile produces errors in normal org functions

2010-07-07 Thread Sven Bretfeld
Hi all

I have strange errors since I'm working with org-mobile. They seem to
have to do with the hash-code.

The first error: org-mobile-push results in a Wrong-type-argument. A
debug-message is included at the end of this mail. After an unsuccessful
run of this function, the buffers of the included org-files display the
** symbol in the status line, although the buffers haven't been changed
at all. Strangely enough, after trying three of four times the command
succeeds at last.

But that's not all. Similar errors occur when I run org-archive-subtree.
Since I work with org-mobile my entries contain an automatically
produced property of the form:

:PROPERTIES:
:ID:   8307e0ed-6936-4c88-b25f-d9729873f047
:END:

If I delete this property, org-archive-subtree works on the respective
entry.

I use the same configuration on two computers, both running Ubuntu
Lucid, Emacs 23.1.1 and the most recent version of org. These errors
occur only on one of the computers (the one I use to sync my org files
with a webdav server using org-mobile, if that's relevant).

Does anybody have an idea what could be wrong here?

Thanks for help,

Sven

Debugger entered--Lisp error: (wrong-type-argument hash-table-p 
((~/aktuell/myconf/from-mobile.org cd2fdb6d-1ca6-45e7-b0d6-02044edcbbb9) 
(~/aktuell/myconf/from-mobile.org fdcc85e2-51c8-4d3d-827c-396687ca5a13) 
(~/aktuell/myconf/from-mobile.org a6a22b75-e0fe-44fb-b5d0-a61500218760) 
(~/aktuell/myconf/from-mobile.org 2dce7212-3994-4ccc-a964-6569914fc17f) 
(~/aktuell/myconf/from-mobile.org 177580d9-f0f0-472b-90d0-278bf503e07d) 
(~/aktuell/myconf/mygtd.org c4ceb0b6-b854-41ab-91b6-e3b1d40d8289) 
(~/aktuell/myconf/mygtd.org 8850e02f-9e33-456b-8654-e55cf1604036) 
(~/aktuell/myconf/mygtd.org 593cf7d5-5db7-4b39-bc7f-190c4acb4f51) 
(~/aktuell/myconf/mygtd.org f20acbfb-c03c-4b08-bd22-d1b614dc7688) 
(~/aktuell/myconf/mygtd.org c76519fa-c2ba-434c-b3e2-e3838b72e6e3) \.\.\.))
  puthash(5a8cfb4f-3e43-4581-982b-44e0adcacac6 ~/aktuell/myconf/mygtd.org 
((~/aktuell/myconf/from-mobile.org cd2fdb6d-1ca6-45e7-b0d6-02044edcbbb9) 
(~/aktuell/myconf/from-mobile.org fdcc85e2-51c8-4d3d-827c-396687ca5a13) 
(~/aktuell/myconf/from-mobile.org a6a22b75-e0fe-44fb-b5d0-a61500218760) 
(~/aktuell/myconf/from-mobile.org 2dce7212-3994-4ccc-a964-6569914fc17f) 
(~/aktuell/myconf/from-mobile.org 177580d9-f0f0-472b-90d0-278bf503e07d) 
(~/aktuell/myconf/mygtd.org c4ceb0b6-b854-41ab-91b6-e3b1d40d8289) 
(~/aktuell/myconf/mygtd.org 8850e02f-9e33-456b-8654-e55cf1604036) 
(~/aktuell/myconf/mygtd.org 593cf7d5-5db7-4b39-bc7f-190c4acb4f51) 
(~/aktuell/myconf/mygtd.org f20acbfb-c03c-4b08-bd22-d1b614dc7688) 
(~/aktuell/myconf/mygtd.org c76519fa-c2ba-434c-b3e2-e3838b72e6e3) \.\.\.))
  (progn (unless org-id-locations (org-id-locations-load)) (puthash id 
(abbreviate-file-name file) org-id-locations) (add-to-list (quote org-id-files) 
(abbreviate-file-name file)))
  (if (and org-id-track-globally id file) (progn (unless org-id-locations ...) 
(puthash id ... org-id-locations) (add-to-list ... ...)))
  (when (and org-id-track-globally id file) (unless org-id-locations 
(org-id-locations-load)) (puthash id (abbreviate-file-name file) 
org-id-locations) (add-to-list (quote org-id-files) (abbreviate-file-name 
file)))
  org-id-add-location(5a8cfb4f-3e43-4581-982b-44e0adcacac6 
/home/sven/aktuell/myconf/mygtd.org)
  (cond ((and id ... ...) id) (create (setq id ...) (org-entry-put pom ID id) 
(org-id-add-location id ...) id) (t nil))
  (let ((id ...)) (cond (... id) (create ... ... ... id) (t nil)))
  (save-excursion (goto-char (or pom ...)) (let (...) (cond ... ... ...)))
  (save-excursion (if (markerp pom) (set-buffer ...)) (save-excursion 
(goto-char ...) (let ... ...)))
  (org-with-point-at pom (let (...) (cond ... ... ...)))
  org-id-get(#marker at 1665 in mygtd.org create)
  (if (org-bound-and-true-p org-mobile-force-id-on-agenda-items) (org-id-get m 
(quote create)) (org-entry-get m ID))
  (setq id (if (org-bound-and-true-p org-mobile-force-id-on-agenda-items) 
(org-id-get m ...) (org-entry-get m ID)))
  (if (setq id (if ... ... ...)) (progn (insert:PROPERTIES:\n   
:ORIGINAL_ID:  id \n   :END:\n)))
  (when (setq id (if ... ... ...)) (insert:PROPERTIES:\n   :ORIGINAL_ID:  
id \n   :END:\n))
  (if sexp nil (insert (org-agenda-get-some-entry-text m 10 ...) \n) 
(when (setq id ...) (insert:PROPERTIES:\n   :ORIGINAL_ID:  id \n   
:END:\n)))
  (unless sexp (insert (org-agenda-get-some-entry-text m 10 ...) \n) 
(when (setq id ...) (insert:PROPERTIES:\n   :ORIGINAL_ID:  id \n   
:END:\n)))
  (cond ((looking-at [ ]*$)) ((looking-at =+$) (delete-region ... 
...)) ((get-text-property ... ...) (setq in-date nil) (setq app ...) (setq 
short ...) (when ... ... ...) (when app ... ... ...) (insert * )) 
((get-text-property ... ...) (setq in-date t) (insert ** )) ((setq m ...) 
(setq sexp ...) (if ... ... ...) (insert ...) (end-of-line 1) (insert \n) 
(unless sexp ... ...)))
  (while (not (eobp)) (cond 

[Orgmode] [OT] org-mode mentioned in podcast

2010-07-07 Thread Samuel Wales
org-mode was mentioned in passing on a virology podcast:

http://www.virology.ws/2010/07/04/twiv-89-where-do-viruses-vacation/?utm_source=feedburnerutm_medium=feedutm_campaign=Feed%3A+VirologyBlog+%28virology+blog%29utm_content=Google+Reader

Maybe Alan is on this list.

If you're on this list, Alan (off-topic):

===

The WPI sent positive control samples.  The CDC refused to
use them.

The WPI split the samples and sent them to other
labs.  Those labs found the virus.

The cohort problem is essential to understand.  Carruthers
et al. 2003, the Canadian Case Criteria, describes people
who are suffering and dying from a serious neurological,
endocrinological, and immunological disease.  The cohort the
CDC used for its study included mostly healthy people.

This is an old CDC trick.  It has done the same thing many
times since 1988.  You can read any of their papers for
confirmation: they study people who do not have the disease,
then claim to study the disease.  They were also responsible
for naming the disease with the name that makes it seem like
it's just being tired all the time.  Virologists including Shelekov
and Komaroff resigned in protest at the time.

The PNAS study by Alter et al. must be published verbatim so
that scientists, the media, and everybody else can evaluate
it.  Please note that change.org has a petition on this very
topic.

  - 
[[http://healthcare.change.org/petitions/view/xmrv_allow_science_to_progress][XMRV:
Allow Science to Progress | Health Care | Change.org]]

Samuel

-- 
Q: How many CDC scientists does it take to change a lightbulb?
A: You only think it's dark. [CDC has denied a deadly disease for 25 years]
==
Retrovirus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE

___
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] italics regexp

2010-07-07 Thread Samuel Wales
I need an re to match italics the way org does.  I did not find it in
the code as it is mixed in with other emphasis.  Anybody have an re or
code to highlight italics (and perhaps the others) in non-org buffers?

Thanks.

-- 
Q: How many CDC scientists does it take to change a lightbulb?
A: You only think it's dark. [CDC has denied a deadly disease for 25 years]
==
Retrovirus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE

___
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 calendar to org mode script and a feature request for agenda

2010-07-07 Thread Daniel Martins
Eric,

Your awk seems to get timed appts in GMT

How can I adapt it to GMT-3

Daniel

2010/6/29 Eric S Fraga ucec...@ucl.ac.uk:
 Hello,

 I finally got myself an Android phone (and am loving it, especially
 with an all you can eat data plan :-).  I have tried mobileorg for
 Android but it's obviously early days and it's actually not really
 what I want.

 However, I am very happy with the Google syncing provided by the
 phone, both for email and for the calendar.  This has caused me to
 revisit the possibility of a smoother integration between Google's
 calendar and org-mode.

 First, I have created an awk script (yes, I'm dating myself: I do use
 awk in preference to perl et al.) which allows me to convert the iCal
 export from Google calendar to a sequence of org headlines (see
 attached).  It's a preliminary version and seems to translate what I
 need: simple day and timed events, mostly those that I will tend to do
 on the phone as opposed to when I'm at my computer.  I'm not trying
 for a comprehensive translation program here...  but I'm putting it on
 the list in case anybody finds it useful.

 I use this script as follows:

   wget [address specified by google for my calendar]  -- basic.ics
   awk -f ical2org.awk  basic.ics  googlecalendar.org

 this appends any entries in my specific google calendar to the given
 org file.  When I go the other way (creating an ics file from org), I
 import the org items into a different calendar on google.  When
 entries have been synced, I typically delete the original entries
 placed in google to avoid them being downloaded over and over again
 [1].

 * A feature request: time prompt for insert diary agenda function

 Anyway, my increased use of google's calendar, has highlighted a
 short-coming (?) of the agenda view (or more strictly speaking, the
 iCal exporter): entries in which the time of appointment, say, is on
 the headline but the date is on the following line, say, get converted
 to day events as opposed to day+time events.  I.e. something like

   * 11am meeting with colleages
     2010-06-30 Wed

 does not get exported as a timed event.  Obviously, the easy solution
 is to put the time in the date stamp.  However, I like using the
 insert diary function in the agenda view for defining appointments
 and this doesn't allow the time to be specified other than in a
 headline.  Would it be possible to enhance the insert diary function
 to prompt for a time (and while we're at it, tags as well)?

 Thanks,
 eric


 Footnotes:
 [1]  it may be possible to use the unique ID for each event to avoid creating 
 duplicates... something to look at in the future.


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


[Orgmode] Re: Diary synchronising with Google calendar

2010-07-07 Thread Jordi Inglada
Hi Eric,

I am sorry to ask this, but can you post detailed instructions on how
to use your code? It seems that I am (at least) missing the
add-to-google-calendar function.

Thanks.

Jordi

On Tue, 6 Jul 2010 00:14:00 +0200, Daniel Mahler dmahler at gmail.com wrote:
 
 On Mon, Jul 5, 2010 at 11:54 PM, Eric S Fraga ucecesf at ucl.ac.uk wrote:
  On Mon, 5 Jul 2010 17:10:55 +0200, Daniel Mahler dmahler at gmail.com 
  wrote:
 
  Hi,
 
  Have you looked at g-client?
 
  Thanks.  I did look at g-client a long time ago.  It should provide
  everything we need but it's much more than I want to even start
  considering...  I just don't have the time unfortunately.
 
  The google command line scripts, on the other hand, are
  straightforward and will give me (others?) 90% of the functionality I
  want.
 
  Mind you, I've been playing a bit and Google's quick add syntax
  leaves a bit to be desired.  There's no formal specification and it
  doesn't quite work, especially trying to get a repeated entry at a
  given time of day.
 
 
 GoogleCL is actually a rather thin wrapper around the gdata python
 client library,
 which essentially just adds the commandline processing.
 Maybe the way to go is to call gdata directly via pymacs.
 
 cheers
 Daniel

Yes, using pymacs and interacting directly with Google's API may be
the way to go.  However, given my usual time constraints, I'm going
for the 80% solution, as described below:

My use case is that I spend almost all of time in Emacs (and almost
all of that time within org) but I am sometimes but not often away
from one of my computers with only my Android phone.  When I'm away
from the computers, I need to be able to check my diary and maybe make
the odd addition to it.  I am not particularly concerned with note
taking with my mobile phone (too annoying! and MobileOrg is probably a
better solution for synchronised note taking in any case...) so the
following meets this use case.

I have two relevant org files: diary.org and googlecalendar.org.  The
first is the default target for inserting diary entries from org's
agenda view; the latter contains all items scheduled from within
Google's calendar application, typically from my phone, and downloaded
and processed using the awk script I posted to this list last week.

On the Google calendar side, I have two calendars: the default and one
called org.  The first is used when I actually schedule something
using Google.  The latter is populated directly by org using Google's
command line scripts with this advice on org's diary insertion
function:

#+begin_src emacs-lisp
(defadvice org-agenda-add-entry-to-org-agenda-diary-file 
  (after add-to-google-calendar)
  Add a new Google calendar entry that mirrors the diary entry just created by 
org-mode.
  (let ((type (ad-get-arg 0))
(text (ad-get-arg 1))
(d1 (ad-get-arg 2))
(year1 (nth 2 d1))
(month1 (car d1))
(day1 (nth 1 d1))
(d2 (ad-get-arg 3))
entry dates)
(if (or (not (eq type 'block)) (not d2))
(setq dates (format %d-%02d-%02d year1 month1 day1))
  (let ((year2 (nth 2 d2)) (month2 (car d2)) (day2 (nth 1 d2)) (repeats (-
(calendar-absolute-from-gregorian d1)
   
(calendar-absolute-from-gregorian d2
(if ( repeats 0)
(setq dates (format %d-%02d-%02d every day for %d days year1 
month1 day1 (abs repeats)))
  (setq dates (format %d-%02d-%02d every day for %d days year1 month1 
day1 (abs repeats
))
(setq entry  (format /usr/bin/google calendar add --cal org \%s on %s\ 
text dates))
;;(message entry)
(if (not (string= MYLAPTOPCOMPUTER mail-host-address))
(shell-command entry)
  (let ((offline ~/tmp/org2google-offline-entries))
(find-file offline)
(goto-char (point-max))
(insert (concat entry \n))
(save-buffer)
(kill-buffer (current-buffer))
(message Plain text written to %s offline)
(ad-activate 'org-agenda-add-entry-to-org-agenda-diary-file)
#end_src

This does two things depending on my online status which is implicitly
defined by the host address of the computer I am using (yes, kludgy at
best): if online, the headline entry for the new diary entry (which is
stored in diary.org) is sent to my org Google calendar.  If offline,
the command line that would have been used is stored in a file.  When
I got back online, I simply execute and empty this file as part of a
more general synchronisation step (including git updates for my org
files and sending any composed emails like this one .

This 2x2 approach (two diaries in org, two calendars in Google) seems
to be working very well.  It works for me because I seldom delete
items in my diary and, in any case, I'd rather err on having an entry
that no longer makes sense than end up double-booked.

Repeated events with times, however, do not work as Google's Quick
Add feature, 

Re: [Orgmode] Google calendar to org mode script and a feature request for agenda

2010-07-07 Thread Eric S Fraga
On Wed, 7 Jul 2010 17:38:45 -0300, Daniel Martins daniel...@gmail.com wrote:
 
 Eric,
 
 Your awk seems to get timed appts in GMT
 
 How can I adapt it to GMT-3
 
 Daniel

Daniel,

yes, thanks for pointing this out. The script indeed does not
translate the times to the local time zone.  Google outputs (in the
basic.ics file) times in GMT.  However, it also includes the time zone
information but my awk script ignores that information.  The script
also ignores the end time for timed events.

Obviously time for a v2 of this script!

let me have a think about this and I'll see if I can do something a
bit more intelligent (at least for Linux systems where possibly
compatible time zone information can be found in /usr/share/zoninfo/*)
and fix up the end times as well.

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Diary synchronising with Google calendar

2010-07-07 Thread Eric S Fraga
On Wed, 7 Jul 2010 23:19:04 +0200, Jordi Inglada jordi.ingl...@cesbio.cnes.fr 
wrote:
 
 Hi Eric,
 
 I am sorry to ask this, but can you post detailed instructions on how
 to use your code? It seems that I am (at least) missing the
 add-to-google-calendar function.
 
 Thanks.
 
 Jordi

Jordi,

the original email had the emacs lisp defadvice function (see below)
as well as the activation of that function.  The advice is called
add-to-google-calendar.  All you have to do is execute both bits,
not just the last line as the last line assumes you have defined the
advice already.

I hope that makes sense?

eric


#+begin_src emacs-lisp
(defadvice org-agenda-add-entry-to-org-agenda-diary-file 
  (after add-to-google-calendar)
  Add a new Google calendar entry that mirrors the diary entry just created by 
org-mode.
  (let ((type (ad-get-arg 0))
(text (ad-get-arg 1))
(d1 (ad-get-arg 2))
(year1 (nth 2 d1))
(month1 (car d1))
(day1 (nth 1 d1))
(d2 (ad-get-arg 3))
entry dates)
(if (or (not (eq type 'block)) (not d2))
(setq dates (format %d-%02d-%02d year1 month1 day1))
  (let ((year2 (nth 2 d2)) (month2 (car d2)) (day2 (nth 1 d2)) (repeats (-
(calendar-absolute-from-gregorian d1)
   
(calendar-absolute-from-gregorian d2
(if ( repeats 0)
(setq dates (format %d-%02d-%02d every day for %d days year1 
month1 day1 (abs repeats)))
  (setq dates (format %d-%02d-%02d every day for %d days year1 month1 
day1 (abs repeats
))
(setq entry  (format /usr/bin/google calendar add --cal org \%s on %s\ 
text dates))
;;(message entry)
(if (not (string= MYLAPTOPCOMPUTER mail-host-address))
(shell-command entry)
  (let ((offline ~/tmp/org2google-offline-entries))
(find-file offline)
(goto-char (point-max))
(insert (concat entry \n))
(save-buffer)
(kill-buffer (current-buffer))
(message Plain text written to %s offline)
(ad-activate 'org-agenda-add-entry-to-org-agenda-diary-file)
#end_src
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Google calendar to org mode script and a feature request for agenda

2010-07-07 Thread Daniel Martins
OK Eric

Thank you!

Linux solution is fine!

I think we share the same addiction at moment.

Linux-Emacs-OrgMode-Android  and due to Android the need of Google
calendar syncing!

I tried using

gcaldaemon (there is a .deb file in

http://blog.philippheckel.com/2008/09/30/gcaldaemon-deb-package-for-ubuntu-kubuntu/

)

The org - ics - google calendar  works with some minor problem, but
I am not satisfied.

A simpler solution seems to be better

Daniel

PS When I saw GoogleCL I had some hope for a final solution of this problem

2010/7/7 Eric S Fraga ucec...@ucl.ac.uk:
 On Wed, 7 Jul 2010 17:38:45 -0300, Daniel Martins daniel...@gmail.com wrote:

 Eric,

 Your awk seems to get timed appts in GMT

 How can I adapt it to GMT-3

 Daniel

 Daniel,

 yes, thanks for pointing this out. The script indeed does not
 translate the times to the local time zone.  Google outputs (in the
 basic.ics file) times in GMT.  However, it also includes the time zone
 information but my awk script ignores that information.  The script
 also ignores the end time for timed events.

 Obviously time for a v2 of this script!

 let me have a think about this and I'll see if I can do something a
 bit more intelligent (at least for Linux systems where possibly
 compatible time zone information can be found in /usr/share/zoninfo/*)
 and fix up the end times as well.


 --
 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] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-07 Thread Nicholas Putnam
I'm new to, but loving playing with org-mode.  Thanks for this excellent
code!

I followed the directions for checking out the latest version with git, so
have been trying to catch up to the new configuration for babel, at the same
time that I'm learning the ropes of org-mode.

I am finding that babel will not work unless org-babel-tangle-lang-exts is
set -- else I get the following error:

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

Adding (setq org-babel-tangle-lang-exts '(fortran . f)) to my .emacs
file (even though I'm not using fortran for anything) fixes this problem.

Also, I'm trying to get syntax highlighting of source code elements in HTML
export.  Export looks great, but the code snippets are being exported inside
pre class=example tags, without any other markup.  Can anyone point me
in the right direction?

Cheers,

Nik Putnam
___
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-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-07 Thread Eric Schulte
Hi Nicholas,

I'm happy that you're enjoying Org-mode.

Nicholas Putnam nput...@gmail.com writes:

 I'm new to, but loving playing with org-mode.  Thanks for this excellent
 code!

 I followed the directions for checking out the latest version with git, so
 have been trying to catch up to the new configuration for babel, at the same
 time that I'm learning the ropes of org-mode.

 I am finding that babel will not work unless org-babel-tangle-lang-exts is
 set -- else I get the following error:

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

 Adding (setq org-babel-tangle-lang-exts '(fortran . f)) to my
 .emacs file (even though I'm not using fortran for anything) fixes
 this problem.


I'm having trouble reproducing this problem.  As far as I can tell
`org-babel-tangle-lang-exts' is only called from language specific files
which should be required after that variable has been defined.

Is it possible that your configuration is loading language-specific
files or touching org-babel-load-languages before you are calling
(require 'org-install)?


 Also, I'm trying to get syntax highlighting of source code elements in
 HTML export.  Export looks great, but the code snippets are being
 exported inside pre class=example tags, without any other markup.
 Can anyone point me in the right direction?


Is the `org-export-htmlize' set to a non-nil value on your system?  If
so then that could be the cause of the problem.  If it is set to a
truthy value, and htmlize-region is defined in your Emacs, then I'm not
sure what the problem could be.

Best -- Eric


 Cheers,

 Nik Putnam
 ___
 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-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-07 Thread Nicholas Putnam
re: org-export-htmlize , Symbol's value as variable is void

Here's my .emacs file.  The line that sets org-babel-tangle-lang-exts is
commented out.  Further down, is the debugging output when emacs is
started.  Requiring ob-R doesn't generate an error, by either ob-ruby or
ob-python will, unless org-babel-tangle-lang-exts is set.  The call to
ob-ruby that generates the error, at the bottom of .emacs, is definitely
coming after 'org-install.

Thanks again,

Nik


(setq load-path
   (append (list nil
/usr/local/share/emacs/site-lisp
/Users/nputnam/elisp/ruby-mode
 )
load-path))

(require 'org-install)

(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)

(global-font-lock-mode 1) ; for all buffers
(add-hook 'org-mode-hook 'turn-on-font-lock)  ; Org buffers only
(transient-mark-mode 1)

;(setq org-babel-tangle-lang-exts '(fortran . f))
;(setq org-babel-tangle-lang-exts '())

(setq org-babel-do-load-languages
 '((R . t)
 (ditaa . nil)
 (dot . nil)
 (emacs-lisp . t)
 (gnuplot . t)
 (haskell . nil)
 (ocaml . nil)
 (python . t)
 (ruby . t)
 (screen . nil)
 (sh . t)
 (sql . nil)
 (sqlite . nil)))



(require 'ob-R)
;(require 'ob-python)
(require 'ob-ruby)



Here is the emacs debugging output:
Debugger entered--Lisp error: (void-variable org-babel-tangle-lang-exts)
  add-to-list(org-babel-tangle-lang-exts (ruby . rb))

byte-code(\301\302!\210\301\303!\210\301\304!\210\301\305!\210\306\307\310\\210\311^hb^p\312\311!\20...@\313\311\314\\210\314\207
[current-load-list$
  require(ob-ruby)
  eval-buffer(#buffer  *load* nil /Users/nputnam/.emacs nil t)  ;
Reading at buffer position 958
  load-with-code-conversion(/Users/nputnam/.emacs /Users/nputnam/.emacs
t t)
  load(~/.emacs t t)
  #[nil ^H\205\276^@   \306=\203...@\307^h\310q\202a^@
\311=\20...@\312\307\313\314#\203#^@\315\20...@\312\307\313\316#\203/^...@\317\202a^@\315\202A^@
\3$
  command-line()
  normal-top-level()





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

 Hi Nicholas,

 I'm happy that you're enjoying Org-mode.

 Nicholas Putnam nput...@gmail.com writes:

  I'm new to, but loving playing with org-mode.  Thanks for this excellent
  code!
 
  I followed the directions for checking out the latest version with git,
 so
  have been trying to catch up to the new configuration for babel, at the
 same
  time that I'm learning the ropes of org-mode.
 
  I am finding that babel will not work unless org-babel-tangle-lang-exts
 is
  set -- else I get the following error:
 
  Symbol's value as variable is void: org-babel-tangle-lang-exts
 
  Adding (setq org-babel-tangle-lang-exts '(fortran . f)) to my
  .emacs file (even though I'm not using fortran for anything) fixes
  this problem.
 

 I'm having trouble reproducing this problem.  As far as I can tell
 `org-babel-tangle-lang-exts' is only called from language specific files
 which should be required after that variable has been defined.

 Is it possible that your configuration is loading language-specific
 files or touching org-babel-load-languages before you are calling
 (require 'org-install)?

 
  Also, I'm trying to get syntax highlighting of source code elements in
  HTML export.  Export looks great, but the code snippets are being
  exported inside pre class=example tags, without any other markup.
  Can anyone point me in the right direction?
 

 Is the `org-export-htmlize' set to a non-nil value on your system?  If
 so then that could be the cause of the problem.  If it is set to a
 truthy value, and htmlize-region is defined in your Emacs, then I'm not
 sure what the problem could be.

 Best -- Eric

 
  Cheers,
 
  Nik Putnam
  ___
  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] Patchwork: Patch 123 Accepted

2010-07-07 Thread Carsten Dominik
Patch 123 (http://patchwork.newartisans.com/patch/123/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3Cm2fwzvs2c2.fsf%40bo.yax.org.uk%3E

___
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] Patchwork: Patch 124 Accepted

2010-07-07 Thread Carsten Dominik
Patch 124 (http://patchwork.newartisans.com/patch/124/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3Cm2lj9ns2c6.fsf%40bo.yax.org.uk%3E

___
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-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-07 Thread Eric Schulte
Hi Nicholas,

There are a couple of problems.  The first was a missing autoload in
org.el which I've now inserted (thanks for helping this issue come to
light).  The second has to do with your config.  I believe you are
loading an old version of Org-mode.  Be sure to that the first
instance of Org-mode on your load path is the newest version, you can
run M-x org-version to see what version you are currently running,
when I run that command the output starts with

  Org-mode version 6.36trans

If yours starts with the same then you should be fine.

I'm attaching a modified version of your init which worked for me
against the latest Org-mode from git.  A couple of differences worth
noting in my modified version are

- I'm putting the path to the org-mode git repository on my load path

- I removed the calls to font-lock mode which shouldn't be necessary
  with current versions of Emacs

- I fixed the call to `org-babel-do-load-languages' so that it's
  second argument is the org-babel-load-languages variable

- I'm not loading ruby (which I just did to simplify my test of a
  minimal Emacs config -- you should be able to replace it)

Please do a git pull on the Org-mode repo, re-run make clean  make,
and then give this new config file a try (with the org-mode load path
adjusted to your system) and let me know how it goes.

Best -- Eric



minimal.el
Description: application/emacs-lisp

Nicholas Putnam nput...@gmail.com writes:

 re: org-export-htmlize , Symbol's value as variable is void

 Here's my .emacs file.  The line that sets org-babel-tangle-lang-exts is
 commented out.  Further down, is the debugging output when emacs is
 started.  Requiring ob-R doesn't generate an error, by either ob-ruby or
 ob-python will, unless org-babel-tangle-lang-exts is set.  The call to
 ob-ruby that generates the error, at the bottom of .emacs, is definitely
 coming after 'org-install.

 Thanks again,

 Nik


 (setq load-path
(append (list nil
 /usr/local/share/emacs/site-lisp
 /Users/nputnam/elisp/ruby-mode
  )
 load-path))

 (require 'org-install)

 (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
 (global-set-key \C-cl 'org-store-link)
 (global-set-key \C-ca 'org-agenda)
 (global-set-key \C-cb 'org-iswitchb)

 (global-font-lock-mode 1) ; for all buffers
 (add-hook 'org-mode-hook 'turn-on-font-lock)  ; Org buffers only
 (transient-mark-mode 1)

 ;(setq org-babel-tangle-lang-exts '(fortran . f))
 ;(setq org-babel-tangle-lang-exts '())

 (setq org-babel-do-load-languages
  '((R . t)
  (ditaa . nil)
  (dot . nil)
  (emacs-lisp . t)
  (gnuplot . t)
  (haskell . nil)
  (ocaml . nil)
  (python . t)
  (ruby . t)
  (screen . nil)
  (sh . t)
  (sql . nil)
  (sqlite . nil)))



 (require 'ob-R)
 ;(require 'ob-python)
 (require 'ob-ruby)



 Here is the emacs debugging output:
 Debugger entered--Lisp error: (void-variable org-babel-tangle-lang-exts)
   add-to-list(org-babel-tangle-lang-exts (ruby . rb))

 byte-code(\301\302!\210\301\303!\210\301\304!\210\301\305!\210\306\307\310\\210\311^hb^p\312\311!\20...@\313\311\314\\210\314\207
 [current-load-list$
   require(ob-ruby)
   eval-buffer(#buffer  *load* nil /Users/nputnam/.emacs nil t)  ;
 Reading at buffer position 958
   load-with-code-conversion(/Users/nputnam/.emacs /Users/nputnam/.emacs
 t t)
   load(~/.emacs t t)
   #[nil ^H\205\276^@   \306=\203...@\307^h\310q\202a^@
 \311=\20...@\312\307\313\314#\203#^@\315\20...@\312\307\313\316#\203/^...@\317\202a^@\315\202A^@
 \3$
   command-line()
   normal-top-level()





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

 Hi Nicholas,

 I'm happy that you're enjoying Org-mode.

 Nicholas Putnam nput...@gmail.com writes:

  I'm new to, but loving playing with org-mode.  Thanks for this excellent
  code!
 
  I followed the directions for checking out the latest version with git,
 so
  have been trying to catch up to the new configuration for babel, at the
 same
  time that I'm learning the ropes of org-mode.
 
  I am finding that babel will not work unless org-babel-tangle-lang-exts
 is
  set -- else I get the following error:
 
  Symbol's value as variable is void: org-babel-tangle-lang-exts
 
  Adding (setq org-babel-tangle-lang-exts '(fortran . f)) to my
  .emacs file (even though I'm not using fortran for anything) fixes
  this problem.
 

 I'm having trouble reproducing this problem.  As far as I can tell
 `org-babel-tangle-lang-exts' is only called from language specific files
 which should be required after that variable has been defined.

 Is it possible that your configuration is loading language-specific
 files or touching org-babel-load-languages before you are calling
 (require 'org-install)?

 
  Also, I'm trying to get syntax highlighting of source code elements in
  HTML export.  Export looks great, but the code snippets are being
  exported inside pre 

[Orgmode] Re: Columns with LaTeX beamer export

2010-07-07 Thread Tassilo Horn
Eric S Fraga ucec...@ucl.ac.uk writes:

Hi Eric,

 On Wednesday 07 July 2010 12:43:52 Carsten Dominik wrote:
  There is still a broken link, for the index page of the tutorials
  directory...
 
 Fixed, and the tutorial link now links org-beamer/tutorial.org
 instead of the directory.  What's the presentation.org in that dir?

 That is the example file referred to by the tutorial and which the
 reader is encouraged to download!  It provides a hopefully useful
 starting point for the reader's own presentation...

Ah, ok.  But it was correct not to link it from the index page, right?

Bye,
Tassilo


___
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