[Orgmode] Call org-remember on a RE: post raises error in gnus

2010-06-30 Thread Kane Dou
The error is:
org-replace-escapes: Wrong type argument: stringp, nil

And org-remember works fine on a parent post.
It seems that gnus doesn't print the title of a reply post, so
org-remember can't catch it and this leads to the error.
Any workaround?


___
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] LaTeX export works but not in HTML

2010-06-30 Thread Nick Dokos
Uri Avalos uriava...@yahoo.com wrote:

 The following latex options produce the right format (an article scaled up to 
 20pts using the arev font):
 
 #+LaTeX_CLASS: article
 #+LaTeX_CLASS_OPTIONS: [12pt]
 #+LATEX_HEADER: \usepackage{amsmath,amsthm,amssymb} \usepackage[T1]{fontenc} 
 \usepackage[20pt]{extsizes} \usepackage{arev} \usepackage[utf8]{inputenc}
 
 However, when I export to HTML, the math equations fail to export. And yes, I 
 set the right variable for exporting latex snippets in HTML.
 
 Ideas? The culprit seems to be the arev package. Export works fine if I 
 remove that. However, why would that cause a problem? 
 
 Using org-mode 6.36

arev.sty conflicts with a couple of packages that are included by default
when latex fragments are converted into images:

o \usepackage[mathscr]{eucal}
o \usepackage{wasysym}

Since the latex compilation of the fragment fails, no .dvi and no .png
files are produced.  If you delete arev from your header, the conflicts
go away and everything works. 

The conflict with eucal elicits the message:

,
| (/usr/share/texmf-texlive/tex/latex/arev/arevmath.sty
| (/usr/share/texmf-texlive/tex/latex/arev/ams-mdbch.sty)
| (/usr/share/texmf-texlive/tex/latex/base/ifthen.sty)
| 
| ! LaTeX Error: Command `\mathscr' already defined.
| 
| See the LaTeX manual or LaTeX Companion for explanation.
| Type  H return  for immediate help.
|  ...  
|   
| l.95 ...Alphabet{\mathscr}   {U}  {rsfs}{m}{n}
|% Ralph Smith Formal Script
| ? 
`

Then the conflict with wasysym elicits the message:

,
| (/usr/share/texmf-texlive/tex/latex/arev/arevsymbols.tex
| 
| ! LaTeX Error: Command `\quarternote' already defined.
| 
| See the LaTeX manual or LaTeX Companion for explanation.
| Type  H return  for immediate help.
|  ...  
|   
| l.43 ...bol{\quarternote}{\mathalpha}{extraup}{90}
|% uni2669
| ? 
`

If I comment those two out of the (temporary) fragment latex file,
the compilation goes through without any problems, so these are the
only conflicts.

Now that I've made the diagnosis, I'll let you worry about the
cure ;-)

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] [PATCH] Provide customization variable to disable folder check when open link.

2010-06-30 Thread David Maus
* org-wl.el (org-wl-disable-folder-check): New customization
  variable.
  (org-wl-open): Disable folder check depending on
  `orrg-wl-disable-folder-check'.
---
 lisp/org-wl.el |   63 
 1 files changed, 36 insertions(+), 27 deletions(-)

diff --git a/lisp/org-wl.el b/lisp/org-wl.el
index a5c8218..7746427 100644
--- a/lisp/org-wl.el
+++ b/lisp/org-wl.el
@@ -62,6 +62,11 @@ googlegroups otherwise.
   :type 'boolean
   :group 'org-wl)
 
+(defcustom org-wl-disable-folder-check t
+  Disable check for new messages when open a link.
+  :type 'boolean
+  :group 'org-wl)
+
 (defcustom org-wl-namazu-default-index nil
   Default namazu search index.
   :type 'directory
@@ -233,33 +238,37 @@ with `org-wl-namazu-default-index' as search index.  When 
called
 with two prefixes or `org-wl-namazu-default-index' is nil, ask
 for namazu index.
   (require 'wl)
-  (unless wl-init (wl))
-  ;; XXX: The imap-uw's MH folder names start with %#.
-  (if (not (string-match \\`\\(\\(?:%#\\)?[^#]+\\)\\(#\\(.*\\)\\)? path))
-  (error Error in Wanderlust link))
-  (let ((folder (match-string 1 path))
-   (article (match-string 3 path)))
-;; maybe open message in namazu search folder
-(when current-prefix-arg
-  (setq folder (concat [ article ]
-  (if (and (equal current-prefix-arg '(4))
-   org-wl-namazu-default-index)
-  org-wl-namazu-default-index
-(read-directory-name Namazu index: )
-(if (not (elmo-folder-exists-p (org-no-warnings
-   (wl-folder-get-elmo-folder folder
-   (error No such folder: %s folder))
-(let ((old-buf (current-buffer))
- (old-point (point-marker)))
-  (wl-folder-goto-folder-subr folder)
-  (with-current-buffer old-buf
-   ;; XXX: `wl-folder-goto-folder-subr' moves point to the
-   ;; beginning of the current line.  So, restore the point
-   ;; in the old buffer.
-   (goto-char old-point))
-  (and article (wl-summary-jump-to-msg-by-message-id 
(org-add-angle-brackets
- article))
-  (wl-summary-redisplay)
+  (let ((wl-auto-check-folder-name
+(if org-wl-disable-folder-check
+'none
+  wl-auto-check-folder-name)))
+(unless wl-init (wl))
+;; XXX: The imap-uw's MH folder names start with %#.
+(if (not (string-match \\`\\(\\(?:%#\\)?[^#]+\\)\\(#\\(.*\\)\\)? path))
+   (error Error in Wanderlust link))
+(let ((folder (match-string 1 path))
+ (article (match-string 3 path)))
+  ;; maybe open message in namazu search folder
+  (when current-prefix-arg
+   (setq folder (concat [ article ]
+(if (and (equal current-prefix-arg '(4))
+ org-wl-namazu-default-index)
+org-wl-namazu-default-index
+  (read-directory-name Namazu index: )
+  (if (not (elmo-folder-exists-p (org-no-warnings
+ (wl-folder-get-elmo-folder folder
+ (error No such folder: %s folder))
+  (let ((old-buf (current-buffer))
+   (old-point (point-marker)))
+   (wl-folder-goto-folder-subr folder)
+   (with-current-buffer old-buf
+ ;; XXX: `wl-folder-goto-folder-subr' moves point to the
+ ;; beginning of the current line.  So, restore the point
+ ;; in the old buffer.
+ (goto-char old-point))
+   (and article (wl-summary-jump-to-msg-by-message-id 
(org-add-angle-brackets
+   article))
+(wl-summary-redisplay))
 
 (provide 'org-wl)
 
-- 
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: Google calendar to org mode script and a feature request for agenda

2010-06-30 Thread Eric S Fraga
On Wed, 30 Jun 2010 06:43:38 +0100, Stephen Eglen s.j.eg...@damtp.cam.ac.uk 
wrote:
 
 
  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)?
 
 hi Eric, 
 I had a similar request, and we worked out a solution to this a while
 ago.  In the agenda, try 'i d', and then type something like
 '11:00-11:45 Seminar with Bob', and the code should parse out the
 timestamp as long as you have the following variable set to t:
 
 (setq org-agenda-insert-diary-extract-time t)
 
 Stephen

Indeed!  Exactly what I wanted.  I should have *known* that org would
already have what I want.

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


Re: [Orgmode] [PATCH] org-feed: Fix RSS feed parsing when item as attributes

2010-06-30 Thread Carsten Dominik

Hi Julien,

that patch does look good, if it is in the queue on
the patchwork server (is it?), then it will be applied
when someone finds the time.

Cheers

- Carsten

On Jun 30, 2010, at 7:37 AM, Julien Danjou wrote:


On Tue, Jun 22 2010, Julien Danjou wrote:

I've RSS feeds with item foo=bar which does not work without  
that change.


May I dare ask a heads up on this?

--
Julien Danjou
// ᐰ jul...@danjou.info   http://julien.danjou.info
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode







___
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: [ANN] Org-babel integrated into Org-mode

2010-06-30 Thread Carsten Dominik

Hi Matt, hi Eric,

Matt, thanks a lot for bringing this up.  This is indeed a very
important and serious issue.  We need to address it.  We need to
step back and reconsider this carefully.

Don't get me wrong, I absolutely think that Org Babel should give
you enough rope to hang yourself.  But we have to make sure that
this will not happen to a happy and unsuspecting Org mode, or even
an unsuspecting Emacs user who by chance opens a file with  
extension .org.


I remember very well when  first realized that shell links could
really affect you badly.  It scared me.

You main proposal was to make Org Babel an optional module.
This will not solve the problem fully, I think, because we also
don't want that people who turn it on automatically commit
to potentially dangerous operations.  There is a lot of good stuff
in Babel which has nothing to do with code evaluation.

Here is what I propose (several items are similar to what Eric proposes)

1. A new variable org-turn-on-babel.  We can discuss the default.
   If it is nil, org-babel should not be loaded.
   A default of t would be fine with me if we implement other
   measures listed below.

2. As Eric proposes, a variable similar to org-confirm-shell-link- 
function

   This should by default query for confirmation on any org-babel
   code execution, and can be configured to shut up by people who know
   what they are doing.

3. Not loading emacs lisp evaluation by default.

4. A new key in the babel keymap for org-babel-execute-code-block,
   for example `C-c C-v e'.  This should be documented as the default
   key for this operation.

5. Removing org-babel-execute-code-block from `C-c C-c'.  Inclusion
   should be optional.

6. A section in the manual on code execution and associated security
   risks in Org mode.  This is not only about babel, but also about
   org-eval, org-eval-light, shell links and elisp links.  I have meant
   to write this section for a long time and would be willing to
   draft it. We could then refer to this section from a couple of
   places in the docs, without cluttering the docs with disclaimers.

The reason for 4 and 5 is that I believe Org-mode users are trained
to blindly press `C-c C-c' whenever they want to update something at
point.  Matt's example of a blog post about `rm -rf' is a very
realistic example for bad code being evaluated by mistake, not even
due to malicious cations.  I belive that a special key for this
action would gove a good measure of protection.

This is what I think - please let me know if you think I am overdoing  
it.


- Carsten


On Jun 29, 2010, at 8:23 PM, Matt Lundin wrote:


Hi Eric,

Thanks again for all the work that you, Dan, and Tom have put into
org-babel. I'm glad to see it become part of org-mode!

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

2) Babel will now be loaded by default along with the rest of Org- 
mode.
  This means that *everyone* currently using babel will need to  
change

  their Emacs config and remove the (require 'org-babel-int) and/or
  (require 'org-babel) lines.


I would like to request that org-babel be made an optional module. I  
ask

this as someone who uses org-babel regularly. Here are my reasons:

 - Org-babel adds rather specific and complex functionality to org- 
mode

   that those who use it as a simple outliner and todo manager do not
   require. (In other words, an option to turn it off might be nice  
for

   those who are worried about feature creep.)

 - Org-babel increases the risk of accidentally executing malicious or
   dangerous code when typing C-c C-c on a src block or exporting a
   file. Perhaps users should activate it only after they understand
   the risks.

   + For instance, I might write a blog post warning about the dangers
 of typing rm -rf ~/. If I put this between #+begin_src sh
 and #+end_src and unthinkingly hit C-c C-c, I would be in  
trouble.

 I believe this is the reason for the variables
 org-confirm-shell-link-function and
 org-confirm-elisp-link-function.

   + This is admitted a bit far-fetched as an example, as it would
 require one to have loaded ob-sh.el. But since elisp execution is
 activated by default, there remain opportunities for unwittingly
 executing code that is meant for other purposes (e.g., warnings,
 examples, etc.).


  Support for evaluating emacs-lisp code blocks is loaded by default.
  All other languages will need to be required explicitly.  To  
conform
  to Emacs filename specifications all language require lines have  
been

  shortened from e.g.

  (require 'org-babel-sh)

  to

  (require 'ob-sh)


When I run make clean  make  make install I find that the language
directory is not installed. Does the langs directory require a manual
installation?

Also, with make install, the ob-* files are installed on the same  
level
as the org-files, yet lines 108-114 in org.el indicate that they  
should

be installed in a babel subdirectory.

Thanks!
Matt


Re: [Orgmode] Re: [ANN] Org-babel integrated into Org-mode

2010-06-30 Thread Scot Becker
On Tue, Jun 29, 2010 at 11:03 PM, Eric Schulte schulte.e...@gmail.comwrote:

- Org-babel adds rather specific and complex functionality to org-mode
  that those who use it as a simple outliner and todo manager do not
  require. (In other words, an option to turn it off might be nice for
  those who are worried about feature creep.)
 

 I'm less struck by this point, as there are many features of Org-mode
 which I personally don't understand or use and I'm certainly some
 features the existence of which I am completely unaware.  However as
 long as Babel doesn't significantly affect load time, I'd rather it be
 present in the background, to simplify it's use.


And there's a significant advantage to having it included and 'on':
ubiquity.  An  org user doesn't have to have set anything up to load up
Eric's babel-ized version of the emacs starter kit and start playing with it
in babel.  [http://github.com/eschulte/emacs-starter-kit]

It's the same advantage that org-mode gains by being part of Emacs.  We can
say:  Want to try org-mode?  just do 'M-x org-mode'  Now make some
headlines with CTRL-RET and  Org babel is good, useful and stable
enough that it deserves the same boost.

Having said that, I'm all for Carsten's new code execution key binding.  Org
advertises C-c C-c as a friendly key which mostly 'does the right thing' on
the current block.  I could imagine that unwary newish users might not
realize that in this case 'the right thing' is to execute that code.
Paranoia does seem a good default practice in this case.

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


[Orgmode] Re: Behavior of Gnus when called from an hyperlink

2010-06-30 Thread Noorul Islam K M
Carsten Dominik carsten.domi...@gmail.com writes:

 On Jun 28, 2010, at 1:36 PM, Leo wrote:

 On 2010-06-28 11:19 +0100, Tassilo Horn wrote:
 (setq org-link-frame-setup '((vm   . vm-visit-folder)
 (gnus . org-gnus-no-new-news)
 (file . find-file-other-window)))

 Nice.

 I have also found creating new frame a bit annoying because I tend to
 have fullscreened emacs and really don't like a frame to pop into my
 face.

 I don't remember why I made creating a new frame the default.
 Probably back then I used to have a special frame for GNUS open.
 Anyway, if there is enough momentum here, we can change the default.


I run gnus and face similar problem. I ignored it so far. I prefer opening
mail in the same window.

Thanks and Regards
Noorul

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


[Orgmode] Re: Tables and environment with parameters

2010-06-30 Thread Sébastien Vauban
Hi Carsten,

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?

 Actually, what are meta tags?

I mean that the following Org source extract:

--8---cut here---start-8---
#+BEGIN_shaded
#+ATTR_LaTeX: align=lrr
| Code   |\EUR |  (%) |
|+-+--|
| 650-96 (recettes brutes)   | 2660.00 |  |
| 657-89 (frais professionnels réels)|  755.37 | 28.4 |
| 668-78 (recettes d'indépendant à titre complémentaire) | 2660.00 |  |
#+TBLFM: 
@2$2=remote(Recettes_Brutes_NVE,$Total);%.2f::@3$2=remote(Frais_Pro_NVE,$Total);%.2f::@3$3=1...@3$2/@2$2;%.1f::@4...@2$2;%.2f
#+END_shaded
--8---cut here---end---8---

gets displayed like this (with a yellow background) in the PDF:

--8---cut here---start-8---
#+ATTR_LaTeX: align=lrr
| Code   |\EUR |  (%) |
|+-+--|
| 650-96 (recettes brutes)   | 2660.00 |  |
| 657-89 (frais professionnels réels)|  755.37 | 28.4 |
| 668-78 (recettes d'indépendant à titre complémentaire) | 2660.00 |  |
#+TBLFM: 
@2$2=remote(Recettes_Brutes_NVE,$Total);%.2f::@3$2=remote(Frais_Pro_NVE,$Total);%.2f::@3$3=1...@3$2/@2$2;%.1f::@4...@2$2;%.2f
--8---cut here---end---8---

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.

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] [PATCH] Unwanted #+ATTR_Backend and #+Backend stuff

2010-06-30 Thread Nicolas Goaziou
Hello,
 Sebastian Rose writes:
 What's the status of this?

What about the following patch ? I think it should fix it.

-- Nicolas

From 115a7e9d04fd5463913e1086ad3ff807ae579e16 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou n.goaz...@gmail.com
Date: Wed, 30 Jun 2010 12:28:32 +0200
Subject: [PATCH] Remove unwanted #+ATTR_Backend and #+Backend during export.

* lisp/org-exp.el: (org-export-select-backend-specific-text) Properly
  get rid of #+Backend and #+ATTR_Backend specifics to backends not
  matching the one we're exporting to.
---
 lisp/org-exp.el |   22 +-
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 54afdac..578e0cf 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -1526,15 +1526,27 @@ from the buffer.
 
 (while formatters
   (setq fmt (pop formatters))
-  (when (eq (car fmt) backend)
-   ;; This is selected code, put it into the file for real
-   (goto-char (point-min))
-   (while (re-search-forward (concat ^\\([ \t]*\\)#\\+ (cadr fmt)
- :[ \t]*\\(.*\\)) nil t)
+  ;; Handle #+Backend: stuff
+  (goto-char (point-min))
+  (while (re-search-forward (concat ^\\([ \t]*\\)#\\+ (cadr fmt)
+   :[ \t]*\\(.*\\)) nil t)
+   (if (not (eq (car fmt) backend))
+   (delete-region (point-at-bol) (min (1+ (point-at-eol)) (point-max)))
+ (replace-match \\1\\2 t)
+ (add-text-properties
+  (point-at-bol) (min (1+ (point-at-eol)) (point-max))
+  '(org-protected t
+  ;; Handle #+attr_Backend: stuff
+  (goto-char (point-min))
+  (while (re-search-forward (concat ^\\([ \t]*\\)#\\+attr_ (cadr fmt)
+   :[ \t]*\\(.*\\)) nil t)
+   (if (not (eq (car fmt) backend))
+   (delete-region (point-at-bol) (min (1+ (point-at-eol)) (point-max)))
  (replace-match \\1\\2 t)
  (add-text-properties
   (point-at-bol) (min (1+ (point-at-eol)) (point-max))
   '(org-protected t
+  ;; Handle #+begin_Backend and #+end_Backend stuff
   (goto-char (point-min))
   (while (re-search-forward (concat ^[ \t]*#\\+ (caddr fmt) \\.*\n?)
nil t)
-- 
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] [PATCH] orphaned captions and labels

2010-06-30 Thread Nicolas Goaziou
Hello,

 David Maus writes:
 Thanks for the patch.  Merely it wasn't catched by Org modes patch
 tracker[1] so I include it in the reply.  Problem was, that you've
 sent it as attachment of MIME media type application/binary, not
 text/plain.

Speaking of this, what is the status of this patch ? It isn't applied
on master branch and I don't see it in the patch tracker.

Regards,

-- Nicolas

___
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-jekyll - org-publish-initialize-files-alist

2010-06-30 Thread Sebastian Rose
Nathan Neff nathan.n...@gmail.com writes:
 Some time ago, I set up a blog using org-jekyll.  I recently tried
 to publish my blog, but when I run:

 org-jekyll-export-blog

 I get the message:  Symbol's function definition is void:
 org-publish-initialize-files-alist

 I grepped for this function, and noticed that it is now defined in
 org-protocol.el
 using (declare-function org-publish-initilialize-files-alist org-publish),
 whereas before, the function was declared in org-publish.el

 Can anyone help with this problem?

 I tried putting this in my emacs, but it didn't work:
 (require 'org-protocol.el)
 (require 'org-publish)
 (require 'org-jekyll)



Hi Nathan,


glad you pointed out this one.

No, that function does not exist anymore!

It is still declared in org-protocol.el but that's obsolete.  I'll have
to remove that from org-protocol.el.


The list of files in a project is now stored as elisp code in cache
files. You can find all the functions in questions by either searching
`(defun org-publish-cache' in org-publish.el, or simply doing

C-h f org-publish-cache TAB TAB





Best wishes

  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] [babel] Evaluating all source blocks in a document?

2010-06-30 Thread Rainer M Krug
Hi

I use Org-babel for literate programming in R, but the tangling takes quite
long. Therefore my question: as it is possible to evaluate a single code
block, is it possible to evaluate ALL code blocks i a document? that would
make debugging much easier.

Also: is it possible, to get some kind of automatic headings for the tangled
code blocks? That would make it easier to identify in which code block the
source code in the tangled file comes from.

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] [Patch] Remove obsolete function call and declaration

2010-06-30 Thread Sebastian Rose
This patch removes an obsolete declaration and call of the function
`org-publish-initialize-files-alist'  from org-protocol.el.

This function does not exist anymore.  It was removed when we
implemented the new publishing cache.


diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el
index a02a170..cdfbf10 100644
--- a/lisp/org-protocol.el
+++ b/lisp/org-protocol.el
@@ -126,8 +126,6 @@
 (eval-when-compile
   (require 'cl))
 
-(declare-function org-publish-initialize-files-alist org-publish
-		  (optional refresh))
 (declare-function org-publish-get-project-from-filename org-publish
 		  (filename optional up))
 (declare-function server-edit server (optional arg))
@@ -647,7 +645,6 @@ This works, if the file visited is part of a publishing project in
 most of the work.
   (interactive)
   (require 'org-publish)
-  (org-publish-initialize-files-alist)
   (let ((all (or (org-publish-get-project-from-filename buffer-file-name
 (if all (org-protocol-create (cdr all))
   (message Not in an org-project. Did mean %s?


Best wishes

  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


Re: [Orgmode] Org-jekyll - org-publish-initialize-files-alist

2010-06-30 Thread Sebastian Rose
Nathan Neff nathan.n...@gmail.com writes:
 Some time ago, I set up a blog using org-jekyll.  I recently tried
 to publish my blog, but when I run:

 org-jekyll-export-blog

 I get the message:  Symbol's function definition is void:
 org-publish-initialize-files-alist

 I grepped for this function, and noticed that it is now defined in
 org-protocol.el
 using (declare-function org-publish-initilialize-files-alist org-publish),
 whereas before, the function was declared in org-publish.el

 Can anyone help with this problem?

 I tried putting this in my emacs, but it didn't work:
 (require 'org-protocol.el)
 (require 'org-publish)
 (require 'org-jekyll)

 Thanks,
 --Nate


Nathan,

I cannot find a file named org-jekyll.el or similar.

But I guess `org-publish-initialize-files-alist' is just called to find
a project the current files belongs to.
If that is the case, you simply remove the call to that function and use

  (let ((project
 (org-publish-get-project-from-filename buffer-file-name)))
   


If you encounter any problems, I'll be glad to help.



   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: [PATCH] Unwanted #+ATTR_Backend and #+Backend stuff

2010-06-30 Thread Sebastian Rose
Nicolas Goaziou n.goaz...@gmail.com writes:
 Hello,
 Sebastian Rose writes:
 What's the status of this?

 What about the following patch ? I think it should fix it.

 -- Nicolas


From 115a7e9d04fd5463913e1086ad3ff807ae579e16 Mon Sep 17 00:00:00 2001
 From: Nicolas Goaziou n.goaz...@gmail.com
 Date: Wed, 30 Jun 2010 12:28:32 +0200
 Subject: [PATCH] Remove unwanted #+ATTR_Backend and #+Backend during export.

 * lisp/org-exp.el: (org-export-select-backend-specific-text) Properly
   get rid of #+Backend and #+ATTR_Backend specifics to backends not
   matching the one we're exporting to.
 ---
  lisp/org-exp.el |   22 +-
  1 files changed, 17 insertions(+), 5 deletions(-)

 diff --git a/lisp/org-exp.el b/lisp/org-exp.el
 index 54afdac..578e0cf 100644
 --- a/lisp/org-exp.el
 +++ b/lisp/org-exp.el
 @@ -1526,15 +1526,27 @@ from the buffer.
  
  (while formatters
(setq fmt (pop formatters))
 -  (when (eq (car fmt) backend)
 - ;; This is selected code, put it into the file for real
 - (goto-char (point-min))
 - (while (re-search-forward (concat ^\\([ \t]*\\)#\\+ (cadr fmt)
 -   :[ \t]*\\(.*\\)) nil t)
 +  ;; Handle #+Backend: stuff
 +  (goto-char (point-min))
 +  (while (re-search-forward (concat ^\\([ \t]*\\)#\\+ (cadr fmt)
 + :[ \t]*\\(.*\\)) nil t)
 + (if (not (eq (car fmt) backend))
 + (delete-region (point-at-bol) (min (1+ (point-at-eol)) (point-max)))
 +   (replace-match \\1\\2 t)
 +   (add-text-properties
 +(point-at-bol) (min (1+ (point-at-eol)) (point-max))
 +'(org-protected t
 +  ;; Handle #+attr_Backend: stuff
 +  (goto-char (point-min))
 +  (while (re-search-forward (concat ^\\([ \t]*\\)#\\+attr_ (cadr fmt)
 + :[ \t]*\\(.*\\)) nil t)
 + (if (not (eq (car fmt) backend))
 + (delete-region (point-at-bol) (min (1+ (point-at-eol)) (point-max)))
 (replace-match \\1\\2 t)
 (add-text-properties
  (point-at-bol) (min (1+ (point-at-eol)) (point-max))
  '(org-protected t
 +  ;; Handle #+begin_Backend and #+end_Backend stuff
(goto-char (point-min))
(while (re-search-forward (concat ^[ \t]*#\\+ (caddr fmt) \\.*\n?)
   nil t)


Ahhh - it nearly does!

But look at this:

 --8---cut here---start-8--
 *Tempolauf*
#+ATTR_HTML: 
style=margin-left:auto;margin-right:auto;text-align:center;
 |  Z | Station  | Meter | Etappe |  Zeit |  Rnd. | Pace Rnd. | Pace |
 |+--+---++---+---+---+--|
 --8---cut here---end---8--

Becomes:

 --8---cut here---start-8--
bTempolauf/b
style=margin-left:auto;margin-right:auto;text-align:center;
/ptable border=0 cellspacing=0 cellpadding=6 rules=groups 
frame=hsides
 --8---cut here---end---8--
 

The `style...' part must be trimmed and go inside the `table' tag.






Also, in this test:

 --8---cut here---start-8--
 
* Example

#+ATTR_HTML: I am removed from ASCII export
  | THead 1 | THead 2 |

  #+ATTR_HTML: I am _NOT_ removed from ASCII export
  | THead 1 | THead 2 |

#+CAPTION: removed
  #+ATTR_HTML: NOT removed
  | THead 1 | THead 2 |

  #+CAPTION: removed
#+ATTR_HTML: removed
  | THead 1 | THead 2 |
 --8---cut here---end---8--
 

the second last `#+CAPTION: removed' is NOT removed.



  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


Re: [Orgmode] Re: [ANN] Org-babel integrated into Org-mode

2010-06-30 Thread Matthew Lundin
Hi Carsten,

Thanks so much both for thinking this through. And thanks again, Eric,
for your work in integrating org-babel into org-mode---including taking
into account a humble user's concerns! :)

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

 Here is what I propose (several items are similar to what Eric proposes)

 1. A new variable org-turn-on-babel.  We can discuss the default.
If it is nil, org-babel should not be loaded.
A default of t would be fine with me if we implement other
measures listed below.

I think the default should be t, but I also like giving users the option
of not loading org-babel.

 2. As Eric proposes, a variable similar to org-confirm-shell-link-
 function
This should by default query for confirmation on any org-babel
code execution, and can be configured to shut up by people who know
what they are doing.

 3. Not loading emacs lisp evaluation by default.

 4. A new key in the babel keymap for org-babel-execute-code-block,
for example `C-c C-v e'.  This should be documented as the default
key for this operation.

 5. Removing org-babel-execute-code-block from `C-c C-c'.  Inclusion
should be optional.

 6. A section in the manual on code execution and associated security
risks in Org mode.  This is not only about babel, but also about
org-eval, org-eval-light, shell links and elisp links.  I have meant
to write this section for a long time and would be willing to
draft it. We could then refer to this section from a couple of
places in the docs, without cluttering the docs with disclaimers.

With safeguards with 2, 4, 5, and 6, would it be safe to skip #3 and
load emacs-lisp evaluation by default? The primary risk right now is
that C-c C-c is so easy to press. But if we change the keybinding and
add a default warning, I believe the emacs-lisp evaluation would not
pose undue dangers. After all, emacs already makes it easy to evaluate
emacs-lisp code. IMO, other languages are a bit more dangerous, since
they are out of context in an org-mode document---i.e., one is not
necessarily as cautious about the pitfalls of executing shell commands,
perl code, etc. as one is when using the command line or executing a
script.

Best,
Matt

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


[Orgmode] Re: Call org-remember on a RE: post raises error in gnus

2010-06-30 Thread Kane Dou
Bernt Hansen be...@norang.ca writes:

 Kane Dou douqil...@gmail.com writes:

 The error is:
 org-replace-escapes: Wrong type argument: stringp, nil

 And org-remember works fine on a parent post.
 It seems that gnus doesn't print the title of a reply post, so
 org-remember can't catch it and this leads to the error.
 Any workaround?

 This works fine for me with both org-remember and org-capture.  Can you
 provide more details and a backtrace?

 -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
Hi, Bernt

I use:
Ubuntu 10.04
Emacs 23.1.1
Gnus 5.13
Org Mode 6.36c

No special settings for gnus or org-remember.

When I call org-remember on a post like this: O [ 40: Istvan ADAM ]
Erroneous display when working on remote Unix machine.

The backtrace(debug-on-entry on org-replace-escapes, no
backtrace will occur if org-remember works normally):

Debugger entered--entering a function: * copy-alist(((%c) (%F
. Istvan ADAM istvan.a...@yahoo.com) (%f . Istvan ADAM) (%T)
(%t . ?) (%s . Erroneous display when working on remote Unix
machine) (%m
. 20060509074313.51846.qm...@web37102.mail.mud.yahoo.com))) *
byte-code(Æ!ÇÈlj‰‰...@‰ƒq


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


[Orgmode] Re: [PATCH] Unwanted #+ATTR_Backend and #+Backend stuff (v.2)

2010-06-30 Thread Nicolas Goaziou
 Sebastian Rose writes:
 Ahhh - it nearly does!

 But look at this:

  --8---cut here---start-8--
  *Tempolauf*
 #+ATTR_HTML: 
 style=margin-left:auto;margin-right:auto;text-align:center;
  |  Z | Station  | Meter | Etappe |  Zeit |  Rnd. | Pace Rnd. | Pace |
  |+--+---++---+---+---+--|
  --8---cut here---end---8--

 Becomes:

  --8---cut here---start-8--
 bTempolauf/b
 style=margin-left:auto;margin-right:auto;text-align:center;
 /ptable border=0 cellspacing=0 cellpadding=6 rules=groups 
 frame=hsides
  --8---cut here---end---8--

 The `style...' part must be trimmed and go inside the `table' tag.

Yes, my patch was a bit aggressive. See my next try.


 Also, in this test:
 [...]
 the second last `#+CAPTION: removed' is NOT removed.

That, my first patch about captions should have taken care of it.

Here is another try on this one. Please tell me if it is working. It
contains both fixes (captions and attr) so there shouldn't be the need
of a previous patch.

Regards,

-- Nicolas

From 76840002404838757a6a31bbfb1e2bdc2564045a Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou n.goaz...@gmail.com
Date: Wed, 30 Jun 2010 12:28:32 +0200
Subject: [PATCH] Remove unwanted #+ATTR_Backend and #+Backend during export.

* lisp/org-exp.el: (org-export-select-backend-specific-text) Properly
  get rid of #+Backend and #+ATTR_Backend specifics to backends not
  matching the one we're exporting to.
---
 lisp/org-exp.el |   32 
 1 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 54afdac..d7a9e19 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -1526,15 +1526,25 @@ from the buffer.
 
 (while formatters
   (setq fmt (pop formatters))
-  (when (eq (car fmt) backend)
-   ;; This is selected code, put it into the file for real
-   (goto-char (point-min))
-   (while (re-search-forward (concat ^\\([ \t]*\\)#\\+ (cadr fmt)
- :[ \t]*\\(.*\\)) nil t)
+  ;; Handle #+Backend: stuff
+  (goto-char (point-min))
+  (while (re-search-forward (concat ^\\([ \t]*\\)#\\+ (cadr fmt)
+   :[ \t]*\\(.*\\)) nil t)
+   (if (not (eq (car fmt) backend))
+   (delete-region (point-at-bol) (min (1+ (point-at-eol)) (point-max)))
  (replace-match \\1\\2 t)
  (add-text-properties
   (point-at-bol) (min (1+ (point-at-eol)) (point-max))
   '(org-protected t
+  ;; Delete #+attr_Backend: stuff of another backend. Those
+  ;; matching the current backend will be taken care of by
+  ;; `org-export-attach-captions-and-attributes'
+  (goto-char (point-min))
+  (while (re-search-forward (concat ^\\([ \t]*\\)#\\+attr_ (cadr fmt)
+   :[ \t]*\\(.*\\)) nil t)
+   (when (not (eq (car fmt) backend))
+ (delete-region (point-at-bol) (min (1+ (point-at-eol)) (point-max)
+  ;; Handle #+begin_Backend and #+end_Backend stuff
   (goto-char (point-min))
   (while (re-search-forward (concat ^[ \t]*#\\+ (caddr fmt) \\.*\n?)
nil t)
@@ -1598,11 +1608,17 @@ table line.  If it is a link, add it to the line 
containing the link.
 (while (re-search-forward re nil t)
   (cond
((match-end 1)
-   (setq cap (concat cap (if cap   ) (org-trim (match-string 1)
+   (progn
+ (setq cap (concat cap (if cap   ) (org-trim (match-string 1
+ (delete-region (point-at-bol) (min (1+ (point-at-eol)) (point-max)
((match-end 2)
-   (setq attr (concat attr (if attr   ) (org-trim (match-string 2)
+   (progn
+ (setq attr (concat attr (if attr   ) (org-trim (match-string 2
+ (delete-region (point-at-bol) (min (1+ (point-at-eol)) (point-max)
((match-end 3)
-   (setq label (org-trim (match-string 3
+   (progn
+ (setq label (org-trim (match-string 3)))
+ (delete-region (point-at-bol) (min (1+ (point-at-eol)) (point-max)
(t
(setq end (if (match-end 4)
  (let ((ee (org-table-end)))
-- 
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: Call org-remember on a RE: post raises error in gnus

2010-06-30 Thread Kane Dou
Seems the byte code can not be sent.
Here's what follows the byte-code line:

* org-replace-escapes(Email from %f: %.30s ((%c) (%F . Istvan
  ADAM istvan.a...@yahoo.com) (%f . Istvan ADAM) (%T) (%t
  . ?) (%s . Erroneous display when working on remote Unix
  machine) (%m . 20060509074313.51846.qm...@web37102.mail.mud.yahoo.com)))
  org-email-link-description() org-gnus-store-link()
  run-hook-with-args-until-success(org-gnus-store-link)
  org-store-link(nil) org-remember-annotation()
  run-hook-with-args-until-success(org-remember-annotation)
  remember(nil) org-do-remember() org-remember(nil)
  call-interactively(org-remember nil 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


Re: [Orgmode] Re: [ANN] Org-babel integrated into Org-mode

2010-06-30 Thread Carsten Dominik


On Jun 30, 2010, at 2:53 PM, Matthew Lundin wrote:


Hi Carsten,

Thanks so much both for thinking this through. And thanks again, Eric,
for your work in integrating org-babel into org-mode---including  
taking

into account a humble user's concerns! :)

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

Here is what I propose (several items are similar to what Eric  
proposes)


1. A new variable org-turn-on-babel.  We can discuss the default.
  If it is nil, org-babel should not be loaded.
  A default of t would be fine with me if we implement other
  measures listed below.


I think the default should be t, but I also like giving users the  
option

of not loading org-babel.


2. As Eric proposes, a variable similar to org-confirm-shell-link-
function
  This should by default query for confirmation on any org-babel
  code execution, and can be configured to shut up by people who know
  what they are doing.

3. Not loading emacs lisp evaluation by default.

4. A new key in the babel keymap for org-babel-execute-code-block,
  for example `C-c C-v e'.  This should be documented as the default
  key for this operation.

5. Removing org-babel-execute-code-block from `C-c C-c'.  Inclusion
  should be optional.

6. A section in the manual on code execution and associated security
  risks in Org mode.  This is not only about babel, but also about
  org-eval, org-eval-light, shell links and elisp links.  I have  
meant

  to write this section for a long time and would be willing to
  draft it. We could then refer to this section from a couple of
  places in the docs, without cluttering the docs with disclaimers.


With safeguards with 2, 4, 5, and 6, would it be safe to skip #3 and
load emacs-lisp evaluation by default? The primary risk right now is
that C-c C-c is so easy to press. But if we change the keybinding and
add a default warning, I believe the emacs-lisp evaluation would not
pose undue dangers.


I agree.



After all, emacs already makes it easy to evaluate
emacs-lisp code. IMO, other languages are a bit more dangerous, since
they are out of context in an org-mode document---i.e., one is not
necessarily as cautious about the pitfalls of executing shell  
commands,

perl code, etc. as one is when using the command line or executing a
script.


Yes.  Emacs Lisp is of course just as dangerous as the shell or
anything else when it comes to malicious intent, but for running
code by mistake it is much less dangerous than the shell,
because usually elisp code deals with stuff inside Emacs
and not so much on the system.

- Carsten




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


Re: [Orgmode] [babel] Evaluating all source blocks in a document?

2010-06-30 Thread Russell Adams
On Wed, Jun 30, 2010 at 01:35:04PM +0200, Rainer M Krug wrote:
 Hi
 
 I use Org-babel for literate programming in R, but the tangling takes quite
 long. Therefore my question: as it is possible to evaluate a single code
 block, is it possible to evaluate ALL code blocks i a document? that would
 make debugging much easier.

M-x org-babel-execute-buffer

OTOH this may not make it easier to debug, the babel error window
doesn't list line numbers or blocks where the error occurred. Perhaps
that should be a feature request to log what src block or org file
line number the errors occurred in.

 Also: is it possible, to get some kind of automatic headings for the tangled
 code blocks? That would make it easier to identify in which code block the
 source code in the tangled file comes from.

I haven't tried tangling yet, is there a good tutorial somewhere?

Thanks.

--
Russell Adamsrlad...@adamsinfoserv.com

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

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

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


Re: [Orgmode] Estimate ranges in column view

2010-06-30 Thread Carsten Dominik

Hi Michael,

I was about to apply the patch, but I don't think I got a reply from  
you regarding copyright issues.

Did I miss that, or did you not say anything about it?

Unfortunately the patch is larger than the maximum that I can take  
without copyright assignment.




- Carsten

On Jun 22, 2010, at 4:36 AM, Michael Gauland wrote:


Carsten,
Here is a patch for a new 'est+' summary type, including  
corresponding changes for xemacs and the manual. I've done basic  
testing on the GNU emacs version, but not the xemacs code.


I'm not sure the change to the manual provides the right amount of  
information

in the right place; I'd be happy to re-write to make it find in
better. Similarly, the name of the summary type is entirely up to you.

I didn't know whether to send this directly to you, or to the list;  
if it should go to the list I'd be happy to send it there directly.


Thanks for the chance to contribute,
Mike
diff --git a/doc/org.texi b/doc/org.texi
index 17615e0..529be4d 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -4723,9 +4723,10 @@ optional.  The individual parts have the  
following meaning:

@{:m...@}@r{Smallest time value in column.}
@{:m...@}@r{Largest time value.}
@{:m...@}   @r{Arithmetic mean of time values.}
-@{@@m...@}   @r{Minimum age (in days/hours/mins/ 
seconds).}
-@{@@m...@}   @r{Maximum age (in days/hours/mins/ 
seconds).}
-@{@@m...@}  @r{Arithmetic mean of ages (in days/ 
hours/mins/seconds).}
+@{@@m...@}@r{Minimum age (in days/hours/mins/ 
seconds).}
+@{@@m...@}@r{Maximum age (in days/hours/mins/ 
seconds).}
+@{@@m...@}   @r{Arithmetic mean of ages (in days/ 
hours/mins/seconds).}

+@{e...@}@r{Add low-high estimates.}
@end example

@noindent
@@ -4733,6 +4734,22 @@ Be aware that you can only have one summary  
type for any property you
include. Subsequent columns referencing the same property will all  
display the

same summary information.

+The 'est+' summary type requires further explanation. It is used for
+combining task estimates, expressed as low-high ranges. For  
example, instead
+of estimating a particular task will take 5 days, you might  
estimate it as
+5-6 days if you're fairly confident you know how much woark is  
required, or
+1-10 days if you don't really know what needs to be done.  Both  
ranges
+average at 5.5 days, but the first represents a more predictable  
delivery.

+
+When combining a set of such estimates, simply adding the lows and  
highs
+produces an unrealistically wide result. Instead, 'est+' adds the  
statistical
+mean and variance of the sub-tasks, generating a final estimate  
from the sum.
+For example, suppose you had ten tasks, each of which was estimated  
at 0.5 to
+2 days of work. Straight addition produces an estimate of 5 to 20  
days,
+representing what to expect if everything goes either extremely  
well or

+extremely poorly. In contrast, 'est+' estimates the full job more
+realistically, at 10-15 days.
+
Here is an example for a complete columns definition, along with  
allowed

values.

diff --git a/lisp/org-colview-xemacs.el b/lisp/org-colview-xemacs.el
index 152d9fe..90bf4c4 100644
--- a/lisp/org-colview-xemacs.el
+++ b/lisp/org-colview-xemacs.el
@@ -917,7 +917,8 @@ around it.
(@max max_age max (lambda (x) (- org-columns-time x)))
(@mean mean_age
 (lambda (rest x) (/ (apply '+ x) (float (length x
- (lambda (x) (- org-columns-time x
+ (lambda (x) (- org-columns-time x)))
+(est+ estimate org-estimate-combine))
  Operator - format,function,calc  map.
 Used to compile/uncompile columns format and completing read in
 interactive function org-columns-new.
@@ -1206,6 +1207,7 @@ Don't set this, this is meant for dynamic  
scoping.)

(defun org-columns-number-to-string (n fmt optional printf)
  Convert a computed column number to a string value, according to  
FMT.

  (cond
+   ((memq fmt '(estimate)) (org-estimate-print n printf))
   ((not (numberp n)) )
   ((memq fmt '(add_times max_times min_times mean_times))
(let* ((h (floor n)) (m (floor (+ 0.5 (* 60 (- n h))
@@ -1250,9 +1252,9 @@ Don't set this, this is meant for dynamic  
scoping.)

(setq sum (+ (string-to-number (pop l)) (/ sum 60
  sum))
   ((memq fmt '(checkbox checkbox-n-of-m checkbox-percent))
-   (if (equal s [X]) 1. 0.01))
-   (t (string-to-number s)))
-0))
+(if (equal s [X]) 1. 0.01))
+   ((memq fmt '(estimate)) (org-string-to-estimate s))
+   (t (string-to-number s)

(defun org-columns-uncompile-format (cfmt)
  Turn the compiled columns format back into a string  
representation.
@@ -1693,6 +1695,42 @@ This will add overlays to the date lines, to  
show the summary for each day.

  (format %dd %02dh %02dm %02ds days hours minutes seconds))
))

+(defun 

[Orgmode] Re: [PATCH] Unwanted #+ATTR_Backend and #+Backend stuff (v.2)

2010-06-30 Thread Sebastian Rose
Nicolas Goaziou n.goaz...@gmail.com writes:
 Sebastian Rose writes:
 Ahhh - it nearly does!

 But look at this:

  --8---cut here---start-8--
  *Tempolauf*
 #+ATTR_HTML: 
 style=margin-left:auto;margin-right:auto;text-align:center;
  |  Z | Station  | Meter | Etappe |  Zeit |  Rnd. | Pace Rnd. | Pace 
 |
  
 |+--+---++---+---+---+--|
  --8---cut here---end---8--

 Becomes:

  --8---cut here---start-8--
 bTempolauf/b
 style=margin-left:auto;margin-right:auto;text-align:center;
 /ptable border=0 cellspacing=0 cellpadding=6 rules=groups 
 frame=hsides
  --8---cut here---end---8--

 The `style...' part must be trimmed and go inside the `table' tag.

 Yes, my patch was a bit aggressive. See my next try.


 Also, in this test:
 [...]
 the second last `#+CAPTION: removed' is NOT removed.

 That, my first patch about captions should have taken care of it.

 Here is another try on this one. Please tell me if it is working. It
 contains both fixes (captions and attr) so there shouldn't be the need
 of a previous patch.

 Regards,

 -- Nicolas


Yss!! :)

That patch seems to do the trick.

Thanks Nicolas!


Regards

   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


Re: [Orgmode] [babel] Evaluating all source blocks in a document?

2010-06-30 Thread Rainer M Krug
Hi Russel

On Wed, Jun 30, 2010 at 3:33 PM, Russell Adams rlad...@adamsinfoserv.comwrote:

 On Wed, Jun 30, 2010 at 01:35:04PM +0200, Rainer M Krug wrote:
  Hi
 
  I use Org-babel for literate programming in R, but the tangling takes
 quite
  long. Therefore my question: as it is possible to evaluate a single code
  block, is it possible to evaluate ALL code blocks i a document? that
 would
  make debugging much easier.

 M-x org-babel-execute-buffer


Thanks - that  seems to be what I am looking for, but after trying it out, I
realized the following: for each block, e new R session is opened. This does
not work for literate programming, as different blocks belong to each other,
i.e. one block opens a function, the next one closes it. In addition, I want
to evaluate the results, i.e. created objects, in R - therefore the session
should stay open. So my guess: tangle and debug.

OTOH this may not make it easier to debug, the babel error window
 doesn't list line numbers or blocks where the error occurred.


True.


 Perhaps that should be a feature request to log what src block or org file
 line number the errors occurred in.


That would be nice.


  Also: is it possible, to get some kind of automatic headings for the
 tangled
  code blocks? That would make it easier to identify in which code block
 the
  source code in the tangled file comes from.

 I haven't tried tangling yet, is there a good tutorial somewhere?


No idea - sorry. But it works really nice, If each block (in the tangled
file) would have a commented header specifying the line number of the
org-mode file where the block is located.

Thanks,

Rainer




 Thanks.

 --
 Russell Adamsrlad...@adamsinfoserv.com

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

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

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




-- 
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] org-freemind-to-org-mode

2010-06-30 Thread J. David Boyd

How is this used.   My lisp-fu is week, or I would read the source and
figure it out

I've tried several variants, and gotten nowhere.


Dave


___
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-jekyll - org-publish-initialize-files-alist

2010-06-30 Thread Nathan Neff
On Wed, Jun 30, 2010 at 6:45 AM, Sebastian Rose sebastian_r...@gmx.de wrote:
 Nathan Neff nathan.n...@gmail.com writes:
 Some time ago, I set up a blog using org-jekyll.  I recently tried
 to publish my blog, but when I run:

 org-jekyll-export-blog

 I get the message:  Symbol's function definition is void:
 org-publish-initialize-files-alist

 I grepped for this function, and noticed that it is now defined in
 org-protocol.el
 using (declare-function org-publish-initilialize-files-alist org-publish),
 whereas before, the function was declared in org-publish.el

 Can anyone help with this problem?

 I tried putting this in my emacs, but it didn't work:
 (require 'org-protocol.el)
 (require 'org-publish)
 (require 'org-jekyll)

 Thanks,
 --Nate


 Nathan,

 I cannot find a file named org-jekyll.el or similar.

 But I guess `org-publish-initialize-files-alist' is just called to find
 a project the current files belongs to.
 If that is the case, you simply remove the call to that function and use

  (let ((project
         (org-publish-get-project-from-filename buffer-file-name)))
   


 If you encounter any problems, I'll be glad to help.



   Sebastian


Thanks for your replies -- I don't know too much about the inner workings of
org-jekyll, so I might forward this to the author.  In the meantine,
if anyone wants to take a poke at this, I would appreciate it.  I can
always revert to a prior version of org when I want to publish, so I'm
not being held back.

Below is the code where org-publish-initialize-files-alist is called
in org-jekyll.
It looks like in both cases, the code is trying to figure out what
project the current
file belongs to.  Can anyone suggest a fix?  I don't mean to push this
on anyone, but I really don't know lisp that well.

(defun org-jekyll-export-current-entry ()
  (interactive)
  (save-excursion
(org-publish-initialize-files-alist) ; here
(let ((project-name (cdr (assoc (expand-file-name (buffer-file-name))
org-publish-files-alist
  (org-back-to-heading t)
  (org-jekyll-export-entry project-name

And another time here:

(defun org-jekyll-export-blog ()
  Export all entries in project files that have a :blog: keyword
and an :on: datestamp.  Property drawers are exported as
front-matters, outline entry title is the exported document
title. 
  (interactive)
  (save-excursion
(org-publish-initialize-files-alist) ;;  -- here
(setq org-jekyll-new-buffers nil)
(mapc
 (lambda (jfile-project)
   (let ((jfile (car jfile-project))
 (project (cdr jfile-project)))
 (if (string= (file-name-extension jfile) org)
 (with-current-buffer (org-get-jekyll-file-buffer jfile)
   (org-map-entries (lambda () (org-jekyll-export-entry project))
blog|BLOG)
 (org-publish-get-files (org-publish-expand-projects
 (list (org-publish-get-project-from-filename
(buffer-file-name) 'up)
(org-release-buffers org-jekyll-new-buffers)))

___
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] Evaluating all source blocks in a document?

2010-06-30 Thread Erik Iverson

Hello,


On Wed, Jun 30, 2010 at 01:35:04PM +0200, Rainer M Krug wrote:
  Hi
 
  I use Org-babel for literate programming in R, but the tangling
takes quite
  long. Therefore my question: as it is possible to evaluate a
single code
  block, is it possible to evaluate ALL code blocks i a document?
that would
  make debugging much easier.

M-x org-babel-execute-buffer



C-c C-v C-b should be a shortcut for that in org-mode now, according to 
my reference card.


 
Thanks - that  seems to be what I am looking for, but after trying it 
out, I realized the following: for each block, e new R session is 
opened. This does not work for literate programming, as different blocks 
belong to each other, i.e. one block opens a function, the next one 
closes it. In addition, I want to evaluate the results, i.e. created 
objects, in R - therefore the session should stay open. So my guess: 
tangle and debug.


OTOH this may not make it easier to debug, the babel error window
doesn't list line numbers or blocks where the error occurred. 



Have you tried the :session argument?  It submits the code block to a 
running R session.  I use it for what you're doing with success.  You 
can set it per code block, or buffer-wide, try for example:


#+PROPERTY: session *R*



Perhaps that should be a feature request to log what src block or
org file
line number the errors occurred in.


That would be nice.


  Also: is it possible, to get some kind of automatic headings for
the tangled
  code blocks? That would make it easier to identify in which code
block the
  source code in the tangled file comes from.


Try

(setq org-babel-tangle-w-comments t)

and see if that does what you're thinking.  It will give headings for 
the source block, but I don't recall  what information they contain.


___
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] mobileorg - No executable found to compute checksums

2010-06-30 Thread Buck Brody
Nick, thanks for your help.  Unfortunately, when I try to save my
customization (~/other/sha1sum.exe), I get the following message:

Symbol's value as variable is void: ~/other/sha1sum\.exe

On Tue, Jun 29, 2010 at 7:45 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Buck Brody buckbr...@gmail.com wrote:

  Could you give me an example of what you mean when you say customize the
  variable to be the path name?
 

 M-x customize RET

 Type `org-mobile-checksum-binary' in the Search box and click on the Search
 button.

 Move the cursor to the headline and press RET to expand it (if
 necessary).

 Move the cursor to the text box that contains the default path (in my case,
 it says /usr/bin/shasum), erase it and type in the correct path for your
 case: it's hard to be specific here because I don't know which program you
 have (or have downloaded) and where you put it. If you followed Richard's
 suggestion of getting the shasum.exe program and you put it in in
 /system/win32
 you should say

/system/win32/shasum.exe

 (NB: in general, you should take whatever I say with a grain of salt,
 but when I talk about Windows, you should use at least a bucket ;-) - but
 I'm sure somebody will correct any mistakes here.)

 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] org-capture file+function match [PATCH] + question

2010-06-30 Thread Juan
Hi Carsten,

Below is a patch for file+function matching (nth 1 instead of nth 2
when calling the match function).


Question:

I'm having trouble with both file+function and file+regexp capture
targets.

My actual capture text ends up at the end of the file (or top of file
if :prepend is set), instead of at the point of match.

I think it has something to do with org-capture-place-entry, after the
suspicious comment:

(cond
 ((not target-entry-p)
  ;; Insert as top-level entry, either at beginning or at end of file

I would expect the cursor to stay at the point of match (match-end or
match-beginning depending on :prepend).

An example template and match function goes below.

Am I missing something?

Saludos,
.j.


8 example template  function --

Example template:

'((h New clock-in plain
   (file+function ~/shared/everything.org match-function)
   *** %u %^{Task}\n :prepend t :immediate-finish t :clock-in t))

Example matching function:

(defun match-function ()
  (goto-char (point-min))
  (search-forward insert-here)
  (goto-char (match-beginning 0))
)


8- PATCH ---

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index fb3c06a..f12826a 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -586,7 +586,7 @@ already gone.

((eq (car target) 'file+function)
(set-buffer (org-capture-target-buffer (nth 1 target)))
-   (funcall (nth 1 target))
+   (funcall (nth 2 target))
(setq target-entry-p (and (org-mode-p) (org-at-heading-p

((eq (car target) 'clock)

___
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] mobileorg - No executable found to compute checksums

2010-06-30 Thread Nick Dokos
Buck Brody buckbr...@gmail.com wrote:

 Nick, thanks for your help.  Unfortunately, when I try to save my 
 customization (~/other/sha1sum.exe), I get the following message: 
 
 Symbol's value as variable is void: ~/other/sha1sum\.exe
 

I have no idea why that would be: the type of the variable is string, so
why anything is trying to interpret it as a symbol is beyond me. The
backslash before the period is also suspicious, but I don't see how it
would cause this problem. All I can suggest is:

  o try again carefully.
  o find somebody around who can help.

Alternatively, you can add this to your .emacs:

(setq org-mobile-checksum-binary ~/other/sha1sum.exe)

Make sure that that is placed *after* you load any customization file
(or make sure that you erase any customization for this variable: click
on State and select Erase customization).

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


Re: [Orgmode] Re: [ANN] Org-babel integrated into Org-mode

2010-06-30 Thread Eric Schulte
Hi Carsten, Matt, Scott,

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

 Hi Matt, hi Eric,

 Matt, thanks a lot for bringing this up.  This is indeed a very
 important and serious issue.  We need to address it.  We need to
 step back and reconsider this carefully.

 Don't get me wrong, I absolutely think that Org Babel should give
 you enough rope to hang yourself.  But we have to make sure that
 this will not happen to a happy and unsuspecting Org mode, or even
 an unsuspecting Emacs user who by chance opens a file with extension
 .org.

 I remember very well when  first realized that shell links could
 really affect you badly.  It scared me.

 You main proposal was to make Org Babel an optional module.
 This will not solve the problem fully, I think, because we also
 don't want that people who turn it on automatically commit
 to potentially dangerous operations.  There is a lot of good stuff
 in Babel which has nothing to do with code evaluation.

 Here is what I propose (several items are similar to what Eric proposes)

 1. A new variable org-turn-on-babel.  We can discuss the default.
If it is nil, org-babel should not be loaded.
A default of t would be fine with me if we implement other
measures listed below.


This sounds like a good idea to me, and it should address Matt's desire
for enabling minimal Org-mode installs.  I would like this to default to
t, so that new users can try out Org-babel without overmuch effort.


 2. As Eric proposes, a variable similar to org-confirm-shell-link-
function
This should by default query for confirmation on any org-babel
code execution, and can be configured to shut up by people who know
what they are doing.


Sounds good, I think this is a reasonable safety measure.


 3. Not loading emacs lisp evaluation by default.


I would push back on this point.  Largely because we have now crossed
the like to where it is impossible to play with a code block w/o first
dropping down to your configuration files, and evaluating require
statements.


 4. A new key in the babel keymap for org-babel-execute-code-block,
for example `C-c C-v e'.  This should be documented as the default
key for this operation.


Hmm, I'm less enthusiastic about this point and point 5.  I really like
how 'C-c C-c' naturally does whatever-I-want given the context in which
it's called, and I wouldn't want to lose that intuitiveness.  Similarly
'C-c C-o' currently opens the results of a code block, I also find this
very appealing as it allows for a uniform top-level interface across an
Org-mode document, be it a code block or a link.

Here are my reasons why I think leaving this keybinding is safe.

1) Unlike with shell/elisp links, the contents of code blocks is almost
   always visible right under the user's point.  So it is less likely to
   evaluate something w/o having any idea what you are evaluating.

2) Adding a protection variable (e.g. org-confirm-babel-eval) means that
   the only users who could potentially evaluate a code block with a
   slip of the fingers would be users who have explicitly said that they
   want to be able to easily run code blocks without confirmation.

3) Emacs exposes a number of entry points into code evaluation.  M-!
   allows users to run shell commands, C-M-x evaluate the elisp at
   point, and these have not caused problems in the past.


 5. Removing org-babel-execute-code-block from `C-c C-c'.  Inclusion
should be optional.

 6. A section in the manual on code execution and associated security
risks in Org mode.  This is not only about babel, but also about
org-eval, org-eval-light, shell links and elisp links.  I have meant
to write this section for a long time and would be willing to
draft it. We could then refer to this section from a couple of
places in the docs, without cluttering the docs with disclaimers.


This sounds like a very good idea.  I'd be happy to help write such a
section.


 The reason for 4 and 5 is that I believe Org-mode users are trained
 to blindly press `C-c C-c' whenever they want to update something at
 point.  Matt's example of a blog post about `rm -rf' is a very
 realistic example for bad code being evaluated by mistake, not even
 due to malicious cations.  I belive that a special key for this
 action would gove a good measure of protection.


As I mentioned, I personally feel that an org-confirm-babel-eval
variable is sufficient protection.  I think it's safe to assume that if
a user has explicitly customized that variable, then they know what
they're doing and trust themselves to execute code responsibly.  I think
it's likely that the casual Org-babel user would never customize this
variable, which seems to me entirely appropriate.


 This is what I think - please let me know if you think I am overdoing
 it.


So to summarize, I think that the combination of (1), (2) and (6),
should be sufficient to protect users from accidental code evaluation.
Please let me 

[Orgmode] Re: Supress Contents frame in LaTeX beamer export

2010-06-30 Thread Tassilo Horn
Nick Dokos nicholas.do...@hp.com writes:

Hi Nick,

 1. How do I supress the contents frame?  I only have 1-star headlines,
each representing a frame.  So there are no sections at all, and the
contents frame is empty. :-(
 

 I think

 #+OPTIONS: toc:nil

 should do it.

It does.

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


[Orgmode] Re: org-capture: Formatting of entries

2010-06-30 Thread Markus Heller

On 6/29/2010 8:19 PM, Puneeth wrote:

Hi

On Wed, Jun 30, 2010 at 5:08 AM, Markus Hellerhelle...@gmail.com  wrote:
Just adding a space before the :PROPERTIES: drawer will work, right?

(setq org-capture-templates
  '((t Task entry (file h:/org/refile.org)
 * TODO %^{Todo} \n:PROPERTIES:\n:Created: %U\n:END:\n\n%?
 :clock-in :clock-resume)))



(setq org-capture-templates
  '((t Task entry (file h:/org/refile.org)
 * TODO %^{Todo} \n :PROPERTIES:\n :Created: %U\n :END:\n\n%?
 :clock-in :clock-resume)))



No, adding a space between \n and :PROPERTIES:, :Created, and 
:END: does just that, it adds a space, but does NOT yield the proper 
indent.  This becomes more obvious when you refile a capture note to a 
second-level headline.


Any other ideas/suggestions?

Thanks
Markus


___
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-freemind-to-org-mode

2010-06-30 Thread J. David Boyd

How is this used?   My lisp-fu is week, or I would read the source and
figure it out

I've tried several variants, and gotten nowhere.


Dave


___
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-capture: active timestamp in template doesn't seem to work

2010-06-30 Thread Markus Heller

On 6/30/2010 11:29 AM, Markus Heller wrote:

Hello all,

the following 2 templates yield identical results, although the second
should give date + time according to my understanding.


Of course, I need to correct myself:  the *first* template (using %^T) 
should give date + time, not the second.



(setq org-capture-templates
'((m Meeting entry (file h:/org/refile.org)
* Subject: %^{Subject} \t\t\t:MEETING:\n :PROPERTIES:\n :Created: %U\n
:END:\n When: %^{When}T\n%?
;; the above template has %^T which should give date + time
;; but it only yields the date
:clock-in t :clock-resume t)
(n Meeting entry (file h:/org/refile.org)
* Subject: %^{Subject} \t\t\t:MEETING:\n :PROPERTIES:\n :Created: %U\n
:END:\n When: %^{When}t\n%?
:clock-in t :clock-resume t)))

Any idea as to why? Or is this a bug?

Thanks
Markus



___
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] Bug: #+ATTR_LaTeX broken in LaTeX export [6.36trans (release_6.36.461.g798e)]

2010-06-30 Thread Tassilo Horn

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


I have an org file like that:

--8---cut here---start-8---
#+STARTUP: beamer
#+LaTeX_CLASS: beamer
#+TITLE: Implementieren, Integrieren, Installieren
#+AUTHOR: Tassilo Horn
#+EMAIL: h...@uni-koblenz.de
#+LANGUAGE: de
#+BEAMER_FRAME_LEVEL: 2
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_HEADER_EXTRA: \usetheme{Madrid} \institute{IST, University Koblenz}

* Implementieren

** Composite Pattern

   #+ATTR_LaTeX: width=\textwidth
   [[./composite-pattern.png]]
--8---cut here---end---8---

Unfortunately, the image doesn't show up, but the #+ATTR_LaTeX is
displayed literally.  Here's the LaTeX code produced by the LaTeX
export.

--8---cut here---start-8---
\begin{frame}
\frametitle{Composite Pattern}
\label{sec-1_3}


   \#+ATTR_\LaTeX{}: width=\textwidth
   \includegraphics[width=\textwidth]{./composite-pattern.png}
\end{frame}
--8---cut here---end---8---

As you can see, the option is there, but it's also added (nearly)
literally...

Emacs  : GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-06-29 on thinkpad
Package: Org-mode version 6.36trans (release_6.36.461.g798e)

current state:
==
(setq
 org-log-done 'time
 org-archive-default-command 'org-archive-set-tag
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-link-frame-setup '((vm . vm-visit-folder) (gnus . org-gnus-no-new-news) 
(file . find-file-other-window))
 org-special-ctrl-a/e 'reversed
 org-agenda-files '(/home/horn/repos/org)
 org-agenda-include-diary t
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-gnus-prefer-web-links t
 org-fontify-whole-heading-line t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-attach-directory /home/horn/repos/org/attachments
 org-special-ctrl-k t
 org-agenda-time-leading-zero t
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-agenda-restore-windows-after-quit t
 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-finalize-agenda-hook '(th-org-agenda-to-appt)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-todo-keywords '((sequence TODO(t) STARTED(s) DELEGATED(g) IDEA(i) 
| DONE(d) CANCELLED(c)))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-directory /home/horn/repos/org
 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 '(th-org-mode-init
 #[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-refile-targets '((org-agenda-files :maxlevel . 5))
 org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash-at-point 
org-babel-execute-src-block-maybe)
 org-complete-tags-always-offer-all-agenda-tags t
 org-return-follows-link t
 org-confirm-elisp-link-function 'yes-or-no-p
 org-refile-use-outline-path 'file
 org-log-into-drawer LOGBOOK
 org-icalendar-categories '(all-tags category)
 org-agenda-mode-hook '(th-org-agenda-mode-init)
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src 
org-babel-exp-inline-src-blocks))
 org-enforce-todo-dependencies t
 org-refile-allow-creating-parent-nodes 'confirm
 org-occur-hook '(org-first-headline-recenter)
 org-icalendar-include-body t
 org-agenda-skip-additional-timestamps-same-entry nil
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-modules '(org-attach org-protocol org-id org-bbdb org-bibtex org-docview 
org-gnus org-info org-jsinfo org-irc
   org-w3m)
 org-columns-default-format %50ITEM %TODO %ALLTAGS %SCHEDULED %DEADLINE
 outline-minor-mode-hook '(th-outline-minor-mode-init)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc 
org-beamer-auto-fragile-frames
   

Re: [Orgmode] Re: latex export and booktabs tables

2010-06-30 Thread Eric Schulte
This booktabs function has now been added to the library of babel.

Cheers -- Eric

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

 Hi Tom,

 How about the following proposed library of babel function which
 constructs a booktabs environment using a toprule, (conditionally) a
 midrule, and a bottomrule.

 *** booktabs
 This block can be used to wrap a table in the latex =booktabs=
 environment, it takes the following arguments -- all but the first two
 are optional.
 | arg   | description|
 |---+|
 | table | a reference to the table   |
 | align | optional alignment string  |
 | env   | optional environment, default to tabular |
 | width | optional width specification string|

 #+srcname: booktabs
 #+begin_src emacs-lisp :var table='((:head) hline (:body)) :var align='() 
 :var env=tabular :var width='() :noweb yes :results latex
   (flet ((to-tab (tab)
  (orgtbl-to-generic
   (mapcar (lambda (lis)
 (if (listp lis)
 (mapcar (lambda (el)
   (if (stringp el)
   el
 (format %S el))) lis)
   lis)) tab)
   (list :lend   :sep:hline \\hline
 (org-fill-template
  
   \\begin{%env}%width%align
   \\toprule
   %table
   \\bottomrule
   \\end{%env}\n
  (list
   (cons env   (or env table))
   (cons width (if width (format {%s} width) ))
   (cons align (if align (format {%s} align) ))
   (cons table
 ;; only use \midrule if it looks like there are column headers
 (if (equal 'hline (second table))
 (concat (to-tab (list (first table)))
 \n\\midrule\n
 (to-tab (cddr table)))
   (to-tab table))
 #+end_src

 once loaded it can be applied as here

 ** booktabs
 #+tblname: months
 | num | Abbrev. |
 |-+-|
 |   1 | Jan.|
 |   2 | Feb.|
 |   3 | Mar.|

 #+call: booktabs(table=months, align=r|l) :results latex :exports results

 Also, note that the longtable function currently in the library-of-babel
 does allow for replacing the global default hline value.

 I'm sure the above isn't perfect, however hopefully it is close enough
 that you could recommend how to get the rest of the way there.

 Thanks -- Eric

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

 Hi Eric,

 This is neat, but it doesn't directly address the problem posed by the
 OP.

 Currently, the LaTeX exporter uses \hline for all the horizontal rules
 in a table.  Booktabs defines three rules of different thickness for
 use at the top of the table, after the column heads, and at the bottom
 of the table.  So, one would want a function that let each of the
 rules take a different value.  The default for each could be hline,
 giving the current behavior of the exporter.  Francesco Pizzolante set
 this out nicely a while back:
 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg18311.html in a
 message that Seb Vauban brought up in a slightly different  context.

 All the best,
 Tom

 On Jun 27, 2010, at 7:09 PM, Eric Schulte wrote:

 One way to deal with this without adding even more complexity to the
 core of org-mode could be through the use of Library of Babel
 functions.

 The attached org-mode file provides a function for exporting to the
 longtable environment with some example usage.  If this looks
 generally
 useful it (and maybe similar functions) could be added to the
 library of
 babel distributed w/Org-mode.

 What do you think? -- Eric

 longtable.org
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Erik,

 Erik Butz wrote:
 I found a very old thread on the list about using the booktabs
 package to
 have nicer tables in latex export.

 I found that, making the changes below I can use the booktab
 package to
 export tables, and using standard tables only, this seems to work
 fine.

 Can anyone advice on whether this kind of change is meaningful or
 if this is
 likely to introduce difficulties elsewhere which I did not
 experience due to
 the limited scope of usage? It should be said that I did not at
 all look
 into longtables so far.

 While trying to improve this, I think one could extend it so that
 the table
 environment can be changed as well, from `tabular' to `array',
 tabular*',
 `tabularx' or any other.

 There was a discussion on this, a while ago, by Francesco
 Pizzolante. Have a
 read at:
 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg18311.html
 .

 Best regards,
  Seb
 ___
 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-jekyll - org-publish-initialize-files-alist

2010-06-30 Thread Sebastian Rose
Nathan Neff nathan.n...@gmail.com writes:
 ...
 Below is the code where org-publish-initialize-files-alist is called
 in org-jekyll.
 It looks like in both cases, the code is trying to figure out what
 project the current
 file belongs to.  Can anyone suggest a fix?  I don't mean to push this
 on anyone, but I really don't know lisp that well.

 ...

 (defun org-jekyll-export-current-entry ()
   (interactive)
   (save-excursion
 (org-publish-initialize-files-alist) ; here
 (let ((project-name (cdr (assoc (expand-file-name (buffer-file-name))
 org-publish-files-alist
   (org-back-to-heading t)
   (org-jekyll-export-entry project-name

I suppose `project-name' shall be the name of the project, i.e. a
string?


;; Evtl. needed to keep compiler happy:
(declare-function org-publish-get-project-from-filename org-publish
  (filename optional up))

(defun org-jekyll-export-current-entry ()
  (interactive)
  (save-excursion
(let ((project-name (org-publish-get-project-from-filename 
buffer-file-name)))
  (org-back-to-heading t)
  (org-jekyll-export-entry project-name





 (defun org-jekyll-export-blog ()
   Export all entries in project files that have a :blog: keyword
 and an :on: datestamp.  Property drawers are exported as
 front-matters, outline entry title is the exported document
 title. 
   (interactive)
   (save-excursion
 (org-publish-initialize-files-alist) ;;  -- here
 (setq org-jekyll-new-buffers nil)
 (mapc
  (lambda (jfile-project)
(let ((jfile (car jfile-project))
  (project (cdr jfile-project)))
  (if (string= (file-name-extension jfile) org)
  (with-current-buffer (org-get-jekyll-file-buffer jfile)
(org-map-entries (lambda () (org-jekyll-export-entry project))
 blog|BLOG)
  (org-publish-get-files (org-publish-expand-projects
  (list (org-publish-get-project-from-filename
 (buffer-file-name) 'up)
 (org-release-buffers org-jekyll-new-buffers)))


(defun org-jekyll-export-blog ()
  Export all entries in project files that have a :blog: keyword
and an :on: datestamp.  Property drawers are exported as
front-matters, outline entry title is the exported document
title. 
  (interactive)
  (save-excursion
(setq org-jekyll-new-buffers nil)
(mapc
 (lambda (jfile-project)
   (let ((jfile (car jfile-project))
 (project (cdr jfile-project)))
 (if (string= (file-name-extension jfile) org)
 (with-current-buffer (org-get-jekyll-file-buffer jfile)
   (org-map-entries (lambda () (org-jekyll-export-entry project))
blog|BLOG)

 ;; NOT SURE IF THIS WILL WORK HERE:
 (org-publish-get-base-files 
   (list (org-publish-get-project-from-filename (buffer-file-name) 'up
(org-release-buffers org-jekyll-new-buffers)))



HTH

   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: org-capture: Formatting of entries

2010-06-30 Thread Tassilo Horn
Markus Heller helle...@gmail.com writes:

Hi Markus,

 No, adding a space between \n and :PROPERTIES:, :Created, and
 :END: does just that, it adds a space, but does NOT yield the proper
 indent.  This becomes more obvious when you refile a capture note to a
 second-level headline.

 Any other ideas/suggestions?

I've suggested a more generic approach to specify properties in capture
templates.  Have a look at the thread starting with the message
877hlqetr8@thinkpad.tsdh.de.

Of course, that's only a suggestion and nothing of that is
implemented... ;-)

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


[Orgmode] Re: [ANN] Org-babel integrated into Org-mode

2010-06-30 Thread Eric Schulte
Matt Lundin m...@imapmail.org writes:

[...]

 When I run make clean  make  make install I find that the language
 directory is not installed. Does the langs directory require a manual
 installation?

 Also, with make install, the ob-* files are installed on the same level
 as the org-files, yet lines 108-114 in org.el indicate that they should
 be installed in a babel subdirectory.

 Thanks!
 Matt

Hi Matt,

This should now be fixed.

Thanks -- Eric

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


[Orgmode] Re: org-capture: Formatting of entries

2010-06-30 Thread Markus Heller

On 6/30/2010 12:05 PM, Tassilo Horn wrote:

Markus Hellerhelle...@gmail.com  writes:

Hi Markus,


No, adding a space between \n and :PROPERTIES:, :Created, and
:END: does just that, it adds a space, but does NOT yield the proper
indent.  This becomes more obvious when you refile a capture note to a
second-level headline.

Any other ideas/suggestions?


I've suggested a more generic approach to specify properties in capture
templates.  Have a look at the thread starting with the message
877hlqetr8@thinkpad.tsdh.de.

Of course, that's only a suggestion and nothing of that is
implemented... ;-)


Ah, thank you.  I skimmed the thread earlier but didn't catch 
everything.  Let's keep our fingers crossed that your suggestions (or a 
variation thereof) will be implemented; IIRC, Carsten mentioned 
something along these lines.


Thanks
Markus


___
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: [ANN] Org-babel integrated into Org-mode

2010-06-30 Thread Eric Schulte
Hi,

To add some concreteness to my suggestions I'm attaching to possible
patches.

The first introduces a global `org-confirm-babel-evaluate' variable
which defaults to t, meaning all code block evaluations will require
explicit confirmation from the user.

The second patch adds an `org-babel-disable:emacs-lisp' function which
can be called from a users configuration to ensure that *no* emacs-lisp
code blocks can be evaluated on the user's system.

Best -- Eric

From 993dda2b88220a994422becdef11773986094ce6 Mon Sep 17 00:00:00 2001
From: Eric Schulte schulte.e...@gmail.com
Date: Wed, 30 Jun 2010 12:25:22 -0700
Subject: [PATCH 1/2] babel: evaluation of code blocks now requires confirmation

* lisp/babel/ob.el (org-confirm-babel-evaluate): variable used to
  control evaluation of code blocks, default value it t, meaning all
  code block evaluation requires confirmation

  (org-babel-confirm-evaluate): function used to request confirmation
  of code block evaluation from the user

  (org-babel-execute-src-block-maybe): now requires explicit user
  confirmation before evaluating a code block

  (org-babel-open-src-block-result): now requires explicit user
  confirmation before evaluating a code block

* lisp/org.el (org-ctrl-c-ctrl-c): added documentation of code block
  evaluation behavior
---
 lisp/babel/ob.el |   76 +
 lisp/org.el  |7 -
 2 files changed, 59 insertions(+), 24 deletions(-)

diff --git a/lisp/babel/ob.el b/lisp/babel/ob.el
index 6a42bcc..e2ffd67 100644
--- a/lisp/babel/ob.el
+++ b/lisp/babel/ob.el
@@ -61,6 +61,18 @@
 (declare-function org-babel-ref-variables ob-ref (params))
 (declare-function org-babel-ref-resolve-reference ob-ref (ref optional params))
 
+(defcustom org-confirm-babel-evaluate t
+  Require confirmation before interactively evaluating code
+blocks in Org-mode buffers.  The default value of this variable
+is t, meaning confirmation is required for any code block
+evaluation.  This variable can be set to nil to inhibit any
+future confirmation requests.
+
+Note disabling confirmation may result in accidental evaluation
+of potentially harmful code.
+  :group 'org-babel
+  :type 'boolean)
+
 (defvar org-babel-source-name-regexp
   ^[ \t]*#\\+\\(srcname\\|source\\|function\\):[ \t]*
   Regular expression used to match a source name line.)
@@ -134,6 +146,19 @@ added to the header-arguments-alist.
   (org-babel-parse-inline-src-block-match)
 nil
 
+(defun org-babel-confirm-evaluate (optional info)
+  Confirm that the user wishes to evaluate the code block
+defined by INFO.  This behavior can be suppressed by setting the
+value of `org-confirm-babel-evaluate' to nil, in which case all
+future interactive code block evaluations will proceed without
+any confirmation from the user.
+
+Note disabling confirmation may result in accidental evaluation
+of potentially harmful code.
+  (or (not org-confirm-babel-evaluate)
+  (yes-or-no-p (format Evaluate this%scode on your system?
+			   (if info (format  %s  (nth 0 info))  )
+
 ;;;###autoload
 (defun org-babel-execute-src-block-maybe ()
   Detect if this is context for a org-babel src-block and if so
@@ -141,7 +166,10 @@ then run `org-babel-execute-src-block'.
   (interactive)
   (let ((info (org-babel-get-src-block-info)))
 (if info
-(progn (org-babel-execute-src-block current-prefix-arg info) t) nil)))
+	(if (org-babel-confirm-evaluate info)
+	(progn (org-babel-execute-src-block current-prefix-arg info) t)
+	  (error evaluation aborted))
+  nil)))
 
 (add-hook 'org-ctrl-c-ctrl-c-hook 'org-babel-execute-src-block-maybe)
 
@@ -379,28 +407,30 @@ argument RE-RUN the source-code block is evaluated even if
 results already exist.
   (interactive P)
   (when (org-babel-get-src-block-info)
-(save-excursion
-  ;; go to the results, if there aren't any then run the block
-  (goto-char (or (and (not re-run) (org-babel-where-is-src-block-result))
- (progn (org-babel-execute-src-block)
-(org-babel-where-is-src-block-result
-  (end-of-line 1)
-  (while (looking-at [\n\r\t\f ]) (forward-char 1))
-  ;; open the results
-  (if (looking-at org-bracket-link-regexp)
-  ;; file results
-  (org-open-at-point)
-(let ((results (org-babel-read-result)))
-  (flet ((echo-res (result)
-   (if (stringp result) result (format %S result
-(pop-to-buffer (get-buffer-create org-babel-results))
-(delete-region (point-min) (point-max))
-(if (listp results)
-;; table result
-(insert (orgtbl-to-generic results '(:sep \t :fmt echo-res)))
-  ;; scalar result
-  (insert (echo-res results))
-  t)))
+(if (org-babel-confirm-evaluate)
+	(save-excursion
+	  ;; go to the results, if there aren't any then run the block
+	  (goto-char 

[Orgmode] Re: Bug: #+ATTR_LaTeX broken in LaTeX export [6.36trans (release_6.36.461.g798e)]

2010-06-30 Thread Sébastien Vauban
Hi Tassilo,

Tassilo Horn wrote:
 * Implementieren

 ** Composite Pattern

#+ATTR_LaTeX: width=\textwidth
[[./composite-pattern.png]]

 Unfortunately, the image doesn't show up, but the #+ATTR_LaTeX is
 displayed literally.  Here's the LaTeX code produced by the LaTeX
 export.

Just for information, this must be the same cause as for the symptom I
described in Tables and environment with parameters.

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] Bug in timeline report

2010-06-30 Thread Sébastien Vauban
Hello,

Finally reporting the following bug. Has been there for as long as I can
remember, but never did report it when seeing it. And kept forgetting.

So, now...

--8---cut here---start-8---
* 2010

** 2010-06 June

*** Admin

 Organization
 :LOGBOOK:
 CLOCK: [2010-06-30 Wed 13:30]--[2010-06-30 Wed 17:50] =  4:20
 - DUPLICATED TeXt.
 :END:

 Emails and News
 :LOGBOOK:
 CLOCK: [2010-06-28 Mon 09:10]--[2010-06-28 Mon 10:40] =  1:30
 CLOCK: [2010-06-30 Wed 10:30]--[2010-06-30 Wed 12:30] =  2:00
 :END:

*** ABC
:LOGBOOK:
CLOCK: [2010-06-30 Wed 09:30]--[2010-06-30 Wed 10:30] =  1:00
- Transfer of files to ABC.
:END:
--8---cut here---end---8---

generates the following timeline:

--8---cut here---start-8---
Timeline of file /home/sva/Projects/ecm.org

2010-06-28 Mon 
__
  Clocked:   (1:30) Emails and News

2010-06-29 Tue 
__

2010-06-30 Wed 
__
  Clocked:   (1:00) ABC - Transfer of files to ABC.
  Clocked:   (2:00) Emails and News - DUPLICATED TeXt.
  Clocked:   (4:20) Organization - DUPLICATED TeXt.
--8---cut here---end---8---

As you can see, the fact that I never put a descriptive text for reading
emails is wrongly reported: previous text is used in the timeline, instead.

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Re: [org-babel] Does org-babel needs some simplification?

2010-06-30 Thread Daniel Brunner
Hello everyone,

thanks for bringing this topic up. I do not want to be misunderstood:
org-mode is one of the greatest things developed the last years. I use
it every day and it is a great help. I also appreciate the work of all
those developers contributing to org-mode / babel.

My setup is: I use the git repository because I like some of the new
features und from time to time I pull the new things. Normalley a
make does the job and flipping through the log messages helps me to
understand the new things. I use org-mode on my main business machine;
ok, perhaps it is a bit risky. And I try to use as much as possible
out-of-the-box. 

But then my .emacs reported problems: org-babel has changed its place
and the way it is loaded. I found the reason for that in the news
group. But then the nice patch by Eric Schulte for tangling org-mode
files doesn't work any more because org-babel-tangle-langs does not
exist any more. And David Maus' addition org-atom for generating atom
feeds is broken because there is something with a
org-export-inbuffer-options-extra variable (which is not a org-babel
problem as I suppose).

I know, org-mode is a growing project and I really really like the
org-babel features. But for me it is now not advisable any more to keep
on the master branch. Today I spent several hours for finding the
reasons why something is not working any more. And that is too much for
a productive environment. 

Today, I am a bit sad about my broken org-mode installation and I am
going back to the 6.36c. 

Kind regards, Daniel. 


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


Re: [Orgmode] Estimate ranges in column view

2010-06-30 Thread Juan
On Thu, Jul 01, 2010 at 06:19:02AM +1200, Michael Gauland wrote:
 I send the from to ass...@gnu.org just before I sent the patch, but I
 haven't received a reply. Should I expect one, or is that all I need to do?

It goes like this:
 - submit form online
 - wait some days
 - receive a contract to sign (with an ugly FSF sticker for your
   laptop)
 - sign contract, mail back

Then nothing happens (at least in my case).

But someone at FSF should also sign the contract, and you should get
some feedback.

Regards,
Juan Pechiar

___
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: [ANN] Org-babel integrated into Org-mode

2010-06-30 Thread Matthew Lundin
Eric Schulte schulte.e...@gmail.com writes:

 Matt Lundin m...@imapmail.org writes:

 [...]

 When I run make clean  make  make install I find that the language
 directory is not installed. Does the langs directory require a manual
 installation?

 Also, with make install, the ob-* files are installed on the same level
 as the org-files, yet lines 108-114 in org.el indicate that they should
 be installed in a babel subdirectory.

 This should now be fixed.

Thanks. Everything was installed in the right place.

- Matt

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


Re: [Orgmode] Re: Bug: #+ATTR_LaTeX broken in LaTeX export [6.36trans (release_6.36.461.g798e)]

2010-06-30 Thread Nicolas Goaziou
I don't know about #+BEGIN_changemargin (but as far as I understand,
it's coming from org-exp-blocks and should be handled during
preprocess-hook, so it is beyond the scope of this patch).

There is some design choice involved here. Until recently, there was a
catch-all function called org-export-handle-comments that was called
at the end of the export process and removed any line starting with
a #. It was certainly useful, but made things hard to debug : had
the #+ATTR_LaTeX line been misinterpreted or just silently deleted ?

At the moment, org-export-handle-comments only handles... comments.
But everything that is not comments has to be taken care of somewhere
else. For example, org-export-attach-captions-and-attributes
deletes #+CAPTIONS and #+ATTR_backend in the process, and
org-export-select-backend-specific-text deletes #+backend
and #+ATTR_backend not used (that's what my patch do, actually).

If you want to apply my patch (v. 2), we have to define a function to
remove #+TBLFM and #+TBLNAME lines because there is none at the
moment. It could be org-export-special-table-lines but it doesn't look
like it's the purpose of that function.

Otherwise, you can just ignore the patch and bring back the full power
to org-export-handle-comments.

I personally prefer avoiding do-it-all functions. But I'm not a
maintainer.

Regards,

-- Nicolas

___
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] icalendar extended to define alarm triggers for timed events

2010-06-30 Thread Eric S Fraga
Hello,

attached is a rudimentary patch for org-icalendar.el to add the
definition of alarm triggers for timed events that are exported to
icalendar format.  The default is to behave as it does at the moment
however.

I hope it proves passable (given my less than brilliant elisp
expertise...).

eric
diff --git a/lisp/org-icalendar.el b/lisp/org-icalendar.el
index a50fdb6..702c9ee 100644
--- a/lisp/org-icalendar.el
+++ b/lisp/org-icalendar.el
@@ -44,6 +44,12 @@ The file name should be absolute, the file will be 
overwritten without warning.
   :group 'org-export-icalendar
   :type 'file)
 
+(defcustom org-icalendar-alarm-time 0
+  The default number of minutes for triggering an alarm if a timed event is 
exported.
+A zero value (the default) turns off the definition of an alarm trigger for 
timed events.
+  :group 'org-export-icalendar
+  :type 'integer)
+
 (defcustom org-icalendar-combined-name OrgMode
   Calendar name for the combined iCalendar representing all agenda files.
   :group 'org-export-icalendar
@@ -279,7 +285,7 @@ When COMBINE is non nil, add the category to each line.
  DTSTART))
hd ts ts2 state status (inc t) pos b sexp rrule
scheduledp deadlinep todo prefix due start
-   tmp pri categories location summary desc uid
+   tmp pri categories location summary desc uid alarm
(sexp-buffer (get-buffer-create *ical-tmp*)))
 (org-refresh-category-properties)
 (save-excursion
@@ -311,6 +317,7 @@ When COMBINE is non nil, add the category to each line.
(org-id-get-create)
  (or (org-id-get) (org-id-new)))
categories (org-export-get-categories)
+   alarm 
deadlinep nil scheduledp nil)
  (if (looking-at re2)
  (progn
@@ -359,6 +366,17 @@ When COMBINE is non nil, add the category to each line.
;INTERVAL= (match-string 1 ts)))
(setq rrule ))
  (setq summary (or summary hd))
+ ;; create an alarm entry if the entry is timed.  this is not very 
general in that:
+ ;; (a) only one alarm per entry is defined,
+ ;; (b) only minutes are allowed for the trigger period ahead of the 
start time, and
+ ;; (c) only a DISPLAY action is defined.
+ ;; [ESF]
+ (let ((t1 (ignore-errors (org-parse-time-string ts 'nodefault
+   (if (and ( org-icalendar-alarm-time 0) 
+(car t1) (nth 1 t1) (nth 2 t1))
+   (setq alarm (format 
\nBEGIN:VALARM\nACTION:DISPLAY\nDESCRIPTION:%s\nTRIGGER:-P0D0H%dM0S\nEND:VALARM
 summary org-icalendar-alarm-time))
+ (setq alarm ))
+   )
  (if (string-match org-bracket-link-regexp summary)
  (setq summary
(replace-match (if (match-end 3)
@@ -375,7 +393,7 @@ UID: %s
 %s
 %s%s
 SUMMARY:%s%s%s
-CATEGORIES:%s
+CATEGORIES:%s%s
 END:VEVENT\n
   (concat prefix uid)
   (org-ical-ts-to-string ts DTSTART)
@@ -385,7 +403,8 @@ END:VEVENT\n
   (concat \nDESCRIPTION:  desc) )
   (if (and location (string-match \\S- location))
   (concat \nLOCATION:  location) )
-  categories)
+  categories
+  alarm)
   (when (and org-icalendar-include-sexps
 (condition-case nil (require 'icalendar) (error nil))
 (fboundp 'icalendar-export-region))
-- 
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: [org-babel] Does org-babel needs some simplification?

2010-06-30 Thread Bernt Hansen
Daniel Brunner dan...@dbrunner.de writes:

 I know, org-mode is a growing project and I really really like the
 org-babel features. But for me it is now not advisable any more to keep
 on the master branch. Today I spent several hours for finding the
 reasons why something is not working any more. And that is too much for
 a productive environment. 

I too run my production org-mode stuff from the master branch.  If you
pull and things break you can just step back to the commit you were at
before your pull with

$ git checkout ORIG_HEAD

All of your local commit changes should be available in the reflog so
you can go back to any recent point in time in your repository.

$ git reflog

will show a list of commits you have visited recently and you can return
to any one with a checkout of the SHA1 or by using the h...@{n} shortcut
-- just beware that h...@{n} changes everytime you move HEAD on your
repository.

Another method is to tag commits you know are good - so you can return
to them easily using whatever-name-you-like.

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


Re: [Orgmode] [org-babel] Does org-babel needs some simplification?

2010-06-30 Thread Torsten Wagner
Hi,

many thanks for the nice thoughts and posts.
To sum up, I think it might not be easy to remove parts of org-babel
since it is difficult to determine and a highly personal decision to
define what is important and what is unimportant.

Nevertheless Carten and Eric pointed out that the overhelming feature
set of org-babel, the fact that you could achive the same thing in
different ways and the missing of a org-babel for dummies might be a
problem for new org-babel users as well as for infrequent users.

Recently org-mode got his org-mode for dummies short manual. I guess
in the case of org-babel it might make more sense to create rather
typical examples for particular languages. This manuals could consist of
a typical example and of a template for this example which makes it easy
for beginners to fill in there own code and text.

Since Eric and the other org-babel and org-mode contributors are already
fully occupied with keeping org-babel and org-mode running, I would
suggest to collect a group of org-babel manual supporters. If possible
for each supported language one. This group could write up standard
situations for the particular language and maintain those manuscripts
whenever org-babel introduces some changes. In fact this group could
also serve as a kind of beta-testers for org-babel by trying on request
from e.g., Eric to compile there examples with the new org-babel
versions. I know there are some standard tests but I guess the do not go
that fare.

I guess, the manual maintainers do NOT have to be experts in both
org-mode resp. org-babel nore they have to be experts in the supported
language. Its more about the kind of standard stuff and maybe, to
complex stuff even scare people. More things like How to create a
measurement protocol with org-babel and python, How to evaluate and
report data analysis with org-babel and R, etc.

To make it more easy for both the readers and the maintainers a kind of
template for such manuals might be helpful. This would help to find the
same information at the same locations and make a comparison e.g.
between the use of R and python possible.

I'am not an expert for both org-* and python and I'm often very limited
in time. However, I would try to maintain a python and org-babel manual.

If there are more people who are interested to act as a kind of manual
maintainers I would like to discuss with you how a template might look like.

Best regards

Torsten



On 06/29/2010 12:51 PM, Torsten Wagner wrote:
 Dear All,
 
 as a (quite, but happy) org-bable user of the first hour I followed up
 the development process actively.
 Nevertheless, some weeks or months pass where I had no need for
 org-babel (yes, really strange I know).
 
 Whenever I come back to org-babel, it takes me a huge amount of time to
 find myself back again in the syntax. Often I spend a day or two heavily
 reading the website and manual again to figure out how to make it working.
 
 There are so many options. tangle files, results, scripting mode,
 sessions, noweb, lot, etc.
 
 Just yesterday, I fighted again to make a simple python script running
 as desired to generate an automatic report. I did this dozen of times
 and even by using some old report as template I still struggle with it.
 Comparing old reports I noticed that I did it in many different ways.
 Tangeling all snipplets, using noweb syntax, with and without session
 support, etc.
 
 Don't get me wrong, I really love org-babel and I think it is really
 great. I just wonder wether it has become too complex and too difficult
 to use to attract most of the org-mode people. Esp. considering people
 who use it not on a regular basis.
 
 Best regards
 
 Torsten


___
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] resubmitted patch to contrib/lisp/org-mac-link-grabber.el

2010-06-30 Thread Carsten Dominik


On Jun 30, 2010, at 7:32 AM, David Maus wrote:


Anthony Lander wrote:

[1  text/plain; US-ASCII (7bit)]
This patch fixes an issue with opening AddressBook.app and
Together.app links.


This is just a reply with the patch attached in a way the
patchtracker[1] will catch it.


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


[Orgmode] Re: Bug: #+ATTR_LaTeX broken in LaTeX export [6.36trans (release_6.36.461.g798e)]

2010-06-30 Thread Tassilo Horn
Eric Schulte schulte.e...@gmail.com writes:

Hi Eric,

 I've applied your patch.  I agree that a catchall cleanup function at
 the end of the export process is not solution.  Especially when it
 makes some perfectly valid constructs (e.g. nested blocks) impossible
 to export.

I can confirm that it works for me, now.

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