Re: [O] Outlook replacement

2011-03-25 Thread Suvayu Ali
Hi Nick and Memnon,

On Fri, 25 Mar 2011 23:31:21 -0400
Nick Dokos  wrote:

> That's tough: you'll need to leave the mail server-side so that you
> can access it from all the different machines, but that leaves you
> vulnerable to network outages. offlineIMAP might be a good solution
> for you.

Looks like this is the only feasible solution for now. I will try my
hand at it again when I have the time.

Thanks a lot. :)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [PATCH][ANN] org-html/org-odt

2011-03-25 Thread Jambunathan K

Hello Sean

Thanks for trying out the new exporter and submitting this patch. I have
applied it to my branch.

Jambunathan K.

> Hi,
>
> I was getting the error:
>
> org-html-insert-toc: Wrong type argument: char-or-string-p, nil
>
> when trying to generate an HTML file with
>
> #+OPTIONS: toc:nil
>
> The patch below seems to fix this.
>
> Regards,
> Sean
>
> index bd53741..37eddf4 100644
> --- a/lisp/org-html.el
> +++ b/lisp/org-html.el
> @@ -2113,7 +2113,7 @@ the alist of previous items."
>
>  (defun org-html-end-export ()
>;; insert the table of contents
> -  (when (and org-export-with-toc (not body-only))
> +  (when (and org-export-with-toc (not body-only) org-parse-table-of-contents)
>  (org-html-insert-toc org-parse-table-of-contents))
>
>;; remove empty paragraphs



Re: [O] [Link] Missing referenced page in Org-beamer

2011-03-25 Thread Nick Dokos
Eric S Fraga  wrote:

> ...  I guess the link should really be to there, section 12.6.6 to be
> exact.  Can somebody recommend the best way to link there?

Something like this perhaps?

--8<---cut here---start->8---
[1] [[http://orgmode.org/manual/Beamer-class-export.html#Beamer-class-export][A 
previously created example presentation]], now part of the
Org manual, is available.
--8<---cut here---end--->8---

Nick



Re: [O] Outlook replacement

2011-03-25 Thread Nick Dokos
Suvayu Ali  wrote:

>> I use fetchmail and postfix. They run in the background dealing with
>> incoming and outgoing mail resp. - as far as emacs is concerned, all
>> mail is local.
>
> I have tried that too but unsuccessfully, my understanding of mail
> servers and email protocols are rather limited. I use several emails
> accounts on markedly different email systems (GMail, Zimbra, some kind
> of M$ mail server). Trying to talk to all these simultaneously seemed
> extremely difficult.
> 
Well, fetchmail can read POP or IMAP from various servers. Don't know anything
about Zimbra, don't *want* to know anything about M$.

> Also I often access email from multiple locations, home workstation,
> university workstation and my laptop. Not sure how to deal with that. I
> once tried OfflineImap but something came up before I could set it up
> properly and I never had the time to get back to it. Maybe when I have
> the time again.
> 

That's tough: you'll need to leave the mail server-side so that you can
access it from all the different machines, but that leaves you vulnerable
to network outages. offlineIMAP might be a good solution for you.

I get my email (three different servers) on a laptop that travels
between home and work. The setup I have is enough for that.

Nick



[O] Re: Outlook replacement

2011-03-25 Thread Memnon Anon
Suvayu Ali  writes:

> How do you (as in all users using Emacs as their email client) deal with
> unreliable networks?

Setup here:

Emacs +
  leafnode (local newsserver for gmane, gwene)
  fetchmail
  msmtp

So all data is dealt with locally, as far as Emacs is concerned.

hth
Memnon




Re: [O] Outlook replacement

2011-03-25 Thread Suvayu Ali
On Fri, 25 Mar 2011 22:19:08 -0400
Nick Dokos  wrote:

> [I sound like a broken record]
> 

I saw your response but forgot to comment about it.

> I use fetchmail and postfix. They run in the background dealing with
> incoming and outgoing mail resp. - as far as emacs is concerned, all
> mail is local.

I have tried that too but unsuccessfully, my understanding of mail
servers and email protocols are rather limited. I use several emails
accounts on markedly different email systems (GMail, Zimbra, some kind
of M$ mail server). Trying to talk to all these simultaneously seemed
extremely difficult.

Also I often access email from multiple locations, home workstation,
university workstation and my laptop. Not sure how to deal with that. I
once tried OfflineImap but something came up before I could set it up
properly and I never had the time to get back to it. Maybe when I have
the time again.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Outlook replacement

2011-03-25 Thread Nick Dokos
Suvayu Ali  wrote:

> On Fri, 25 Mar 2011 21:11:02 +
> Eric S Fraga  wrote:
> 
> > The short answer is to use *Emacs* for your email,
> 
> How do you (as in all users using Emacs as their email client) deal with
> unreliable networks? When I used to use tramp over a particularly
> slow/unreliable network day before, I found every time tramp got stuck
> emacs would hang too until tramp could recover. I thought it was
> because emacs is still not multi-threaded (am I correct?), so a stuck
> process would bring make the entire session unresponsive. This was more
> annoying when I was running `emacs --daemon'. So as a conpromise, I
> resorted to using plugins (wherever I could) to use emacs as my
> alternate editor. So far this has worked very well in Firefox (It's all
> text), Thunderbird (Alternate Editor) and claws-mail (native support).
> 
> Is there any resolution to these issues? If so, I would really love to
> try an Emacs based email client. Of course as always if my understanding
> is incorrect please feel free to correct me. :)
> 

[I sound like a broken record]

I use fetchmail and postfix. They run in the background dealing with
incoming and outgoing mail resp. - as far as emacs is concerned, all
mail is local. If the network is gone, fetchmail tries and fails, so I
don't see any new mail. I can send mail but it stays local until postfix
can connect to my relay and send it out. emacs does not know anything
about nor does it care about the network outage (well,
org-google-weather causes the agenda to be slow, so I know something is
up :-) )

Nick




Re: [O] Outlook replacement

2011-03-25 Thread Suvayu Ali
On Fri, 25 Mar 2011 21:11:02 +
Eric S Fraga  wrote:

> The short answer is to use *Emacs* for your email,

How do you (as in all users using Emacs as their email client) deal with
unreliable networks? When I used to use tramp over a particularly
slow/unreliable network day before, I found every time tramp got stuck
emacs would hang too until tramp could recover. I thought it was
because emacs is still not multi-threaded (am I correct?), so a stuck
process would bring make the entire session unresponsive. This was more
annoying when I was running `emacs --daemon'. So as a conpromise, I
resorted to using plugins (wherever I could) to use emacs as my
alternate editor. So far this has worked very well in Firefox (It's all
text), Thunderbird (Alternate Editor) and claws-mail (native support).

Is there any resolution to these issues? If so, I would really love to
try an Emacs based email client. Of course as always if my understanding
is incorrect please feel free to correct me. :)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [Link] Missing referenced page in Org-beamer

2011-03-25 Thread Eric S Fraga
Sébastien Vauban  writes:

> Hi Eric,
>
> Check this out in section 4.3 of
> http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html
> (last line).

Thanks Seb.

Yes, that document ceased to exist a while back.  I forgot I was linking
to it.  It's the original document by Carsten, I believe, which was
superseded by the section in the info document.  I guess the link should
really be to there, section 12.6.6 to be exact.  Can somebody recommend
the best way to link there?

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.115.g00134.dirty)



Re: [O] [PATCH][ANN] org-html/org-odt

2011-03-25 Thread Sean O'Halpin
Hi,

I was getting the error:

org-html-insert-toc: Wrong type argument: char-or-string-p, nil

when trying to generate an HTML file with

#+OPTIONS: toc:nil

The patch below seems to fix this.

Regards,
Sean

index bd53741..37eddf4 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -2113,7 +2113,7 @@ the alist of previous items."

 (defun org-html-end-export ()
   ;; insert the table of contents
-  (when (and org-export-with-toc (not body-only))
+  (when (and org-export-with-toc (not body-only) org-parse-table-of-contents)
 (org-html-insert-toc org-parse-table-of-contents))

   ;; remove empty paragraphs



[O] [PATCH] Avoid spurious matches to literal "#+end_src" inside source block

2011-03-25 Thread Sean O'Halpin
>From d5a47db19a6c263b0516c454594296da9f44c428 Mon Sep 17 00:00:00 2001
From: Sean O'Halpin 
Date: Fri, 25 Mar 2011 22:16:54 +
Subject: [PATCH] * lisp/ob.el: Avoid spurious matches to literal
"#+end_src" inside a source block.

Added newline to org-babel-src-block-regexp.

---
 lisp/ob.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/ob.el b/lisp/ob.el
index 6b4a766..8938b3b 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -141,7 +141,7 @@ remove code block execution from the C-c C-c keybinding."
;; (4) header arguments
"\\([^\n]*\\)\n"
;; (5) body
-   "\\([^\000]*?\n*\\)[ \t]*#\\+end_src")
+   "\\([^\000]*?\n*\\)\n[ \t]*#\\+end_src")
   "Regexp used to identify code blocks.")

 (defvar org-babel-inline-src-block-regexp
-- 
1.7.0.4



Re: [O] Outlook replacement

2011-03-25 Thread Nick Dokos
John Hendy  wrote:

> On Fri, Mar 25, 2011 at 4:38 PM, Nick Dokos  wrote:
> > John Hendy  wrote:
> >
> >> I would love to do this. Unfortunately, it is limiting in a corporate
> >> setting -- my IMAP/POP ports are blocked (using emacs for personal
> >> email is out), the admins have not enabled IMAP/POP on the company
> >> Lotus Notes Domino server (using emacs for work emails is out), and
> >> yes, no scheduling would work from emacs through Domino innards,
> >> probably.
> >>
> >
> > I don't understand: how do you send and receive mail?
> >
> 
> Work email: Lotus Notes
> Personal email: Gmail web client
> 

OK, I see: thanks.





Re: [O] Re: [bug] Problem with Worg (html?) publishing

2011-03-25 Thread Nick Dokos
Sébastien Vauban  wrote:

> >
> > It could use the fact that it is in a  section - but the function
> > is generic wrt backends, so it doesn't worry about details like this.
> > Maybe a backend-specific function can be called at this point to deal
> > with it - and that can be smarter about how to transform it properly.
> 
> A comment from a 30,000 feet view: why looking at ?  Maybe looking at the
> fact it is (still, at that point in time) a LaTeX order in a HTML block?
> 

Well, my view is maybe from 29000 feet, so I'm not sure I can see any
better than you can: the  suggestion was because clearly anything
in a  should not be transformed any further by the HTML exporter;
I'm not sure whether you can make similar (but perhaps somewhat weaker)
statements outside of a .

> The opposite could be as generic: not interpreting HTML orders when in LaTeX
> blocks?
> 

Yes, the way that is done today is draconian: delete the thing. If it's
not there, it cannot be interpreted. So off with its head! Dead men tell
no tales :-)

You are right: it is a generic problem - writing HTML examples to be
published with LaTeX would lead to the same difficulties.

Nick



Re: [O] Re: Outlook replacement

2011-03-25 Thread Nick Dokos
Sébastien Vauban  wrote:

> > Also, how do you handle outside email accounts, for example, from gmail?
> 
> What do you mean?  Accessing them?  That can be done from Emacs, although I
> did not set this up (yet).
> 

I use fetchmail for incoming mail and a local postfix server (sending
either through a company relay at work, or the smtp server of my ISP at
home) for outgoing mail: as far as emacs is concerned, all mail is
local.

Nick





Re: [O] Outlook replacement

2011-03-25 Thread John Hendy
On Fri, Mar 25, 2011 at 4:38 PM, Nick Dokos  wrote:
> John Hendy  wrote:
>
>> I would love to do this. Unfortunately, it is limiting in a corporate
>> setting -- my IMAP/POP ports are blocked (using emacs for personal
>> email is out), the admins have not enabled IMAP/POP on the company
>> Lotus Notes Domino server (using emacs for work emails is out), and
>> yes, no scheduling would work from emacs through Domino innards,
>> probably.
>>
>
> I don't understand: how do you send and receive mail?
>

Work email: Lotus Notes
Personal email: Gmail web client

> Nick
>



Re: [O] Outlook replacement

2011-03-25 Thread Nick Dokos
John Hendy  wrote:

> I would love to do this. Unfortunately, it is limiting in a corporate
> setting -- my IMAP/POP ports are blocked (using emacs for personal
> email is out), the admins have not enabled IMAP/POP on the company
> Lotus Notes Domino server (using emacs for work emails is out), and
> yes, no scheduling would work from emacs through Domino innards,
> probably.
> 

I don't understand: how do you send and receive mail?

Nick



Re: [O] Outlook replacement

2011-03-25 Thread Nick Dokos
Eric S Fraga  wrote:

> Chris Malone  writes:
> 
> > Hi Henri-Paul,
> >
> > While you've brought the topic up I /have/ been recently curious about
> > others' email setup and how they incorporate that into Emacs/org-mode?  I
> > notice several users send emails from within Emacs using org-mode syntax -
> > any tips on setting such a thing up?  Also, how do you handle outside email
> > accounts, for example, from gmail?
> >
> > Chris
> 
> The short answer is to use *Emacs* for your email, e.g. with gnus or
> wanderlust or mh-e or vm or rmail or ...  after all, why would you want
> to leave emacs and interrupt your flow!
> 
> I use gnus to read email from imap and pop servers as well as gmail
> (imap).  I send via them as well.
> 
> Sending with org-mode syntax is basically down to "It's all text" (R)
> ;-)  Just type it in!  (of course, you can define yasnippets or whatever
> to help)
> 

... and orgstruct-mode and orgtbl-mode help as well.

Nick



[O] Re: [bug] Problem with Worg (html?) publishing

2011-03-25 Thread Sébastien Vauban
Hi Nick,

Nick Dokos wrote:
> It's not clear to me how to fix it properly: at the point where
> org-export-select-backend-specific-text is called, there's been a
> partial transformation of the input, so the function is looking at the
> following:
>
> ,
> | 
> | #+BEGIN_HTML
> | 
> | *** A block   
> :B_ignoreheading:BMCOL:
> | :PROPERTIES:
> | :BEAMER_env: ignoreheading
> | :BEAMER_col: 0.4
> | :END:
> | - this slide consists of two columns
> | - the first (left) column has no heading and consists of text
> | - the second (right) column has an image and is enclosed in an
> |   @example@ block
> | 
> | *** A screenshot
> :BMCOL:B_example:
> | :PROPERTIES:
> | :BEAMER_col: 0.6
> | :BEAMER_env: example
> | :END:
> | #+ATTR_LATEX: width=\textwidth
> | [[file://../../images/org-beamer/a-simple-slide.png]]
> | 
> | 
> | #+END_HTML
> | 
> `
>
> It could use the fact that it is in a  section - but the function
> is generic wrt backends, so it doesn't worry about details like this.
> Maybe a backend-specific function can be called at this point to deal
> with it - and that can be smarter about how to transform it properly.

A comment from a 30,000 feet view: why looking at ?  Maybe looking at the
fact it is (still, at that point in time) a LaTeX order in a HTML block?

The opposite could be as generic: not interpreting HTML orders when in LaTeX
blocks?

Best regards,
  Seb

-- 
Sébastien Vauban




[O] [Link] Missing referenced page in Org-beamer

2011-03-25 Thread Sébastien Vauban
Hi Eric,

Check this out in section 4.3 of
http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html
(last line).

Best regards,
  Seb

-- 
Sébastien Vauban




Re: [O] Re: Outlook replacement

2011-03-25 Thread Chris Malone
Hi Seb and Eric,

Thanks for the advice - the info and sample .gnus file were great!

Chris

2011/3/25 Sébastien Vauban 

> Chris Malone,
>
> Chris Malone wrote:
> > Hi Henri-Paul,
> >
> > While you've brought the topic up I /have/ been recently curious about
> > others' email setup and how they incorporate that into Emacs/org-mode?  I
> > notice several users send emails from within Emacs using org-mode syntax
> -
> > any tips on setting such a thing up?
>
> For the list and table stuff, here's an example from my .gnus file:
>
> #+begin_src emacs-lisp
>  ;; operates on messages you send
>  (defun my/message-mode-hook ()
>
>;; tab completion for alias in `.mailrc'
>(local-set-key (kbd "M-TAB") 'mail-abbrev-complete-alias)
>
>;; enable automatic word-wrap when composing messages
>(setq fill-column 78)
>(turn-on-auto-fill)
>
>(when (try-require 'org-footnote)
>  ;; default style used for footnoting is local to the Message being
>  ;; written
>  (set (make-local-variable 'org-footnote-auto-label) 'plain))
>
>(when (locate-library "org.el")
>
>  ;; turn on the `org-mode' table editor
>  (turn-on-orgtbl)
>
>  ;; turn on orgstruct-mode
>  (turn-on-orgstruct)
>
>  ;; turn on the enhanced version of orgstruct-mode
>  (turn-on-orgstruct++)))
>
>  (add-hook 'message-mode-hook 'my/message-mode-hook)
> #+end_src
>
> For "Org-mode syntax" (putting codes as the above):
>
> - simply copy/paste,
> - select region with C-x C-x,
> - demarcate block with C-c C-v C-d and insert the correct language (here:
>  emacs-lisp).
>
> > Also, how do you handle outside email accounts, for example, from gmail?
>
> What do you mean?  Accessing them?  That can be done from Emacs, although I
> did not set this up (yet).
>
> Does the above meet your question?
>
> Best regards,
>  Seb
>
> --
> Sébastien Vauban
>
>
>


[O] Re: Outlook replacement

2011-03-25 Thread Sébastien Vauban
Chris Malone,

Chris Malone wrote:
> Hi Henri-Paul,
>
> While you've brought the topic up I /have/ been recently curious about
> others' email setup and how they incorporate that into Emacs/org-mode?  I
> notice several users send emails from within Emacs using org-mode syntax -
> any tips on setting such a thing up?

For the list and table stuff, here's an example from my .gnus file:

#+begin_src emacs-lisp
  ;; operates on messages you send
  (defun my/message-mode-hook ()

;; tab completion for alias in `.mailrc'
(local-set-key (kbd "M-TAB") 'mail-abbrev-complete-alias)

;; enable automatic word-wrap when composing messages
(setq fill-column 78)
(turn-on-auto-fill)

(when (try-require 'org-footnote)
  ;; default style used for footnoting is local to the Message being
  ;; written
  (set (make-local-variable 'org-footnote-auto-label) 'plain))

(when (locate-library "org.el")

  ;; turn on the `org-mode' table editor
  (turn-on-orgtbl)

  ;; turn on orgstruct-mode
  (turn-on-orgstruct)

  ;; turn on the enhanced version of orgstruct-mode
  (turn-on-orgstruct++)))

  (add-hook 'message-mode-hook 'my/message-mode-hook)
#+end_src

For "Org-mode syntax" (putting codes as the above):

- simply copy/paste,
- select region with C-x C-x,
- demarcate block with C-c C-v C-d and insert the correct language (here:
  emacs-lisp).

> Also, how do you handle outside email accounts, for example, from gmail?

What do you mean?  Accessing them?  That can be done from Emacs, although I
did not set this up (yet).

Does the above meet your question?

Best regards,
  Seb

-- 
Sébastien Vauban




Re: [O] Outlook replacement

2011-03-25 Thread Eric S Fraga
Chris Malone  writes:

> Hi Henri-Paul,
>
> While you've brought the topic up I /have/ been recently curious about
> others' email setup and how they incorporate that into Emacs/org-mode?  I
> notice several users send emails from within Emacs using org-mode syntax -
> any tips on setting such a thing up?  Also, how do you handle outside email
> accounts, for example, from gmail?
>
> Chris

The short answer is to use *Emacs* for your email, e.g. with gnus or
wanderlust or mh-e or vm or rmail or ...  after all, why would you want
to leave emacs and interrupt your flow!

I use gnus to read email from imap and pop servers as well as gmail
(imap).  I send via them as well.

Sending with org-mode syntax is basically down to "It's all text" (R)
;-)  Just type it in!  (of course, you can define yasnippets or whatever
to help)

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.115.g00134.dirty)



Re: [bug] Problem with Worg (html?) publishing (was Re: [O] orgmode BEAMER scaling image)

2011-03-25 Thread Nick Dokos
Nick Dokos  wrote:

> Eric S Fraga  wrote:
> 
> 
> > In the org-beamer tutorial (Worg/org-tutorials/org-beamer/tutorial.org),
> > I have the following:
> > 
> > ,
> > | 
> > | #+BEGIN_Example
> > | ,** Two columns
> > | 
> > | ,*** A block   
> > :B_ignoreheading:BMCOL:
> > | :PROPERTIES:
> > | :BEAMER_env: ignoreheading
> > | :BEAMER_col: 0.4
> > | :END:
> > | - this slide consists of two columns
> > | - the first (left) column has no heading and consists of text
> > | - the second (right) column has an image and is enclosed in an
> > |   @example@ block
> > | 
> > | ,*** A screenshot
> > :BMCOL:B_example:
> > | :PROPERTIES:
> > | :BEAMER_col: 0.6
> > | :BEAMER_env: example
> > | :END:
> > | ,#+ATTR_LATEX: width=\textwidth
> > | [[file://../../images/org-beamer/a-simple-slide.png]]
> > | #+END_Example
> > `
> > 
> > Note the second last line of the example which sets the latex attribute
> > for the following image.  On export to HTML for publishing on the Worg
> > website, this line has magically *disappeared*!  The ',' is supposed to
> > protect this line but instead it disappears.
> > 
> > I have gone through the whole tutorial and this is the only line that
> > has disappeared.  My intuition is that the HTML export is ignoring all
> > LATEX attribute lines (as it should) but that maybe the regex for is
> > rather greedy?  However, I have looked at the code but have not seen
> > anywhere obvious where this happens -- all the regexs I found seem to be
> > pinned at the start of the line with only whitespace allowed before
> > the #+.
> > 
> 
> Your intuition is (almost) correct: in org-export-preprocess-string, the comma
> is stripped by org-export-replace-src-segments-and-examples and the
> ATTR_LATEX is stripped by org-export-select-backend-specific-text which 
> very explicitly says:
> 
> ,
> |   ...
> |   ;; Delete #+attr_Backend: stuff of another backend. Those
> |   ;; matching the current backend will be taken care of by
> |   ;; `org-export-attach-captions-and-attributes'
> |   ...
> `
> 
> 

Commenting out the two forms that follow this comment preserve the ATTR_LATEX,
but that's obviously not *the* fix:

,
|   ...
|   ;; 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)
|   ;;  (setq ind (org-get-indentation))
|   ;;  (when (not (eq (car fmt) org-export-current-backend))
|   ;;(delete-region (point-at-bol) (min (1+ (point-at-eol)) 
(point-max)
|   ;; 
|   ;; Handle #+begin_backend and #+end_backend stuff
|   ...
`

It's not clear to me how to fix it properly: at the point where
org-export-select-backend-specific-text is called, there's been a
partial transformation of the input, so the function is looking at the
following:

,
| 
| #+BEGIN_HTML
| 
| *** A block   :B_ignoreheading:BMCOL:
| :PROPERTIES:
| :BEAMER_env: ignoreheading
| :BEAMER_col: 0.4
| :END:
| - this slide consists of two columns
| - the first (left) column has no heading and consists of text
| - the second (right) column has an image and is enclosed in an
|   @example@ block
| 
| *** A screenshot:BMCOL:B_example:
| :PROPERTIES:
| :BEAMER_col: 0.6
| :BEAMER_env: example
| :END:
| #+ATTR_LATEX: width=\textwidth
| [[file://../../images/org-beamer/a-simple-slide.png]]
| 
| 
| #+END_HTML
| 
`

It could use the fact that it is in a  section - but the function
is generic wrt backends, so it doesn't worry about details like this.
Maybe a backend-specific function can be called at this point to deal
with it - and that can be smarter about how to transform it properly.

Nick





Re: [O] Outlook replacement

2011-03-25 Thread John Hendy
On Fri, Mar 25, 2011 at 1:56 PM, Henri-Paul Indiogine
 wrote:
> Greetings!
>
> A few days ago I noticed a headline somewhere, possibly
> http://linuxtoday.com or http://lxer.com, that read "an Outlook
> replacement for Linux".
>
> Then I thought, I have an Emacs gnus frame next to a frame with my
> agenda.org.   I guess that is my "Outlook replacement".  Also, regularly I
> export my agenda to Google Calendar.   So, I am not missing anything
> from Outlook.  Yes, I know, I can not schedule appointments in a
> corporate setting, but I work more or less alone.
>

I would love to do this. Unfortunately, it is limiting in a corporate
setting -- my IMAP/POP ports are blocked (using emacs for personal
email is out), the admins have not enabled IMAP/POP on the company
Lotus Notes Domino server (using emacs for work emails is out), and
yes, no scheduling would work from emacs through Domino innards,
probably.

There is some hope: http://bit.ly/fEkWrN

They've created a command line interface to Lotus Notes that works...
but only 32bit (I have to chroot into a 32bit environment) and one
would have to parse everything that came through to make it usable and
also write elisp functions that sent Lotus Notes commands via the
command line client.

Anyway, I *love* the idea of doing this... but it's quite difficult
when the "corporate world" is against you!


John


> Best,
> Henri-Paul
>
>
>
> --
> Henri-Paul Indiogine
> Email: hindiog...@gmail.com
> Running: Ubuntu Linux 10.10, Emacs 24.0.50.1, org-mode 7.4
>
>



[O] Comma-protection of Org blocks (was: [bug] Problem with Worg (html?) publishing)

2011-03-25 Thread Sébastien Vauban
Hi Eric (and Eric, and Dan, and ...),

Eric S Fraga wrote:
> In the org-beamer tutorial (Worg/org-tutorials/org-beamer/tutorial.org),
> I have the following:
>
> ,
> | 
> | #+BEGIN_Example
> | ,** Two columns
> | 
> | ,*** A block   
> :B_ignoreheading:BMCOL:
> | :PROPERTIES:
> | :BEAMER_env: ignoreheading
> | :BEAMER_col: 0.4
> | :END:
> | - this slide consists of two columns
> | - the first (left) column has no heading and consists of text
> | - the second (right) column has an image and is enclosed in an
> |   @example@ block
> | 
> | ,*** A screenshot
> :BMCOL:B_example:
> | :PROPERTIES:
> | :BEAMER_col: 0.6
> | :BEAMER_env: example
> | :END:
> | ,#+ATTR_LATEX: width=\textwidth
> | [[file://../../images/org-beamer/a-simple-slide.png]]
> | #+END_Example
> `
>
> Note the second last line of the example which sets the latex attribute
> for the following image.  On export to HTML for publishing on the Worg
> website, this line has magically *disappeared*!  The ',' is supposed to
> protect this line but instead it disappears.

This makes me think of a request I briefly discussed with Carsten and Bastien,
the day of Fosdem.

The "comma-protection" causes troubles when M-q comes into play.

For the sake of clarity -- I hope --, an example (for my Isodoc letters in Org):

* Body
#+srcname: body
#+begin_src org :results latex
,Ik ben het totaalbedrag van de omzet 2010 vergeten op te nemen. 
De ontbrekende
,gegeven voor mijn kleine onderneming is 0,00 EUR (nul euro).
#+end_src

* Composed letter  
:noexport:
#+begin_src latex :noweb yes :tangle yes
\documentclass[11pt]{isodoc}

\begin{document}

\letter[language=dutch,to={\firstname~\lastname\\\addressi\\\postcode~\town\\\country},openingcomma={,}]{%
<>
}
\end{document}
#+end_src

The above "body" block is converted to LaTeX and its result is tangled into
the Isodoc LaTeX letter (here, voluntary kept to an ultra-minimal).

The prefix "," is not kept in the process, that's what is expected. But the
trouble is if I press M-q, because I add words to the sentences directly in
the whole Org buffer: pressing M-q will move all the leading "," everywhere in
the text, and then they will be transported up to the TeX file. Not what I
want.

The above user mistake (pressing M-q, what puts the leading commas everywhere,
letting them loose their initial meaning) -- is it really an error? -- would
have had no impact (or much much less), would the prefix be a space, for
example...

Hence, questions:

- would it be possible to replace the comma by something more neutral (maybe a
  space, or a non-breaking space for example) for HTML/LaTeX exports?

- would it be possible to put the "protecting prefix" only when needed
  (automatic detection when TAB'ing), or let it be specified by the user?

- is there maybe an alternative for the above Org/TeX problem (conversion +
  tangling)?

Best regards,
  Seb

-- 
Sébastien Vauban




Re: [O] Outlook replacement

2011-03-25 Thread Chris Malone
Hi Henri-Paul,

While you've brought the topic up I /have/ been recently curious about
others' email setup and how they incorporate that into Emacs/org-mode?  I
notice several users send emails from within Emacs using org-mode syntax -
any tips on setting such a thing up?  Also, how do you handle outside email
accounts, for example, from gmail?

Chris

On Fri, Mar 25, 2011 at 2:56 PM, Henri-Paul Indiogine
wrote:

> Greetings!
>
> A few days ago I noticed a headline somewhere, possibly
> http://linuxtoday.com or http://lxer.com, that read "an Outlook
> replacement for Linux".
>
> Then I thought, I have an Emacs gnus frame next to a frame with my
> agenda.org.   I guess that is my "Outlook replacement".  Also, regularly I
> export my agenda to Google Calendar.   So, I am not missing anything
> from Outlook.  Yes, I know, I can not schedule appointments in a
> corporate setting, but I work more or less alone.
>
> Best,
> Henri-Paul
>
>
>
> --
> Henri-Paul Indiogine
> Email: hindiog...@gmail.com
> Running: Ubuntu Linux 10.10, Emacs 24.0.50.1, org-mode 7.4
>
>


[O] Re: Org-clone-subtree-with-time-shift

2011-03-25 Thread Jambunathan K

> Is it possible to have the headline increment the page number 1 or
> show how many are completed.

Org doesn't understand what a page is. You should be thinking in terms
of word count and not page numbers.

Jambunathan K.



Re: [bug] Problem with Worg (html?) publishing (was Re: [O] orgmode BEAMER scaling image)

2011-03-25 Thread Nick Dokos
Eric S Fraga  wrote:


> In the org-beamer tutorial (Worg/org-tutorials/org-beamer/tutorial.org),
> I have the following:
> 
> ,
> | 
> | #+BEGIN_Example
> | ,** Two columns
> | 
> | ,*** A block   
> :B_ignoreheading:BMCOL:
> | :PROPERTIES:
> | :BEAMER_env: ignoreheading
> | :BEAMER_col: 0.4
> | :END:
> | - this slide consists of two columns
> | - the first (left) column has no heading and consists of text
> | - the second (right) column has an image and is enclosed in an
> |   @example@ block
> | 
> | ,*** A screenshot
> :BMCOL:B_example:
> | :PROPERTIES:
> | :BEAMER_col: 0.6
> | :BEAMER_env: example
> | :END:
> | ,#+ATTR_LATEX: width=\textwidth
> | [[file://../../images/org-beamer/a-simple-slide.png]]
> | #+END_Example
> `
> 
> Note the second last line of the example which sets the latex attribute
> for the following image.  On export to HTML for publishing on the Worg
> website, this line has magically *disappeared*!  The ',' is supposed to
> protect this line but instead it disappears.
> 
> I have gone through the whole tutorial and this is the only line that
> has disappeared.  My intuition is that the HTML export is ignoring all
> LATEX attribute lines (as it should) but that maybe the regex for is
> rather greedy?  However, I have looked at the code but have not seen
> anywhere obvious where this happens -- all the regexs I found seem to be
> pinned at the start of the line with only whitespace allowed before
> the #+.
> 

Your intuition is (almost) correct: in org-export-preprocess-string, the comma
is stripped by org-export-replace-src-segments-and-examples and the
ATTR_LATEX is stripped by org-export-select-backend-specific-text which 
very explicitly says:

,
|   ...
|   ;; Delete #+attr_Backend: stuff of another backend. Those
|   ;; matching the current backend will be taken care of by
|   ;; `org-export-attach-captions-and-attributes'
|   ...
`


Nick



[O] Org-clone-subtree-with-time-shift

2011-03-25 Thread Matthew Sauer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Question on the usage of this function or maybe I need to look into
another function?

I am trying to work on a project (journal for a class) that requires me
to write 75 pages of handwritten text.  Every week I will go put in a
TODO to journal, use M-x Org-clone-subtree-with-time-shift 4 copies +1d
shift . . .Is it possible to have the headline increment the page number
1 or show how many are completed.  I would still want to be able to
press t in the agenda and mark it completed when done . . I know I could
put a cookie and make a project "journal" that all the iterations would
fall under but then it would be more difficult to mark the function as
done.  I guess I am just trying to figure out a way to iterate through a
progressive project that I am wanting a daily reminder to track the
progress (but it has limited scope in reccurence) and I didn't know if I
should make a custom function or if something already existed?


** TODO Jounral pg 45  :ENGL101:
or
** TODO Journal [/]
*** TODO Journal page 1
or
??

Matthew
p.s.  I am thinking of using something like this to help plan a novel
text that I am outlining and inserting text into in orgmode

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNjMbAAAoJEIOmaYkNCFBpkzsH/03CKR2swk48cWbwtOc+KuK3
W7y2ihllF9/qM6lrP65pRIUY9aKcaAJK7ikfm8YeoUzL58PvN+ft31zXgEuIc5uw
UiX/B6pqbmFNsjX2jJrIpcNHSqHtSjyHjz66r99sjl3+gpa80LO2OVS7H4NpMPJo
EqpKTr296qw4315pZEOl9YCbSdl7P3WjhKWkFNpoP30Y2C5LDqEjCKrCeo3KIgBG
B1zTy6bUXZBwDQu8oqutSqPcrw0rKDqVNgoqIZl6R7L9v78IqaIKt/bojgta6lWl
/E1IrlZrw5BJb0fQaPrGeTzbk5/9LrB+IJJW78+QUvHukYTH5m7vbgVRO4SkU3M=
=Fd/Z
-END PGP SIGNATURE-



Re: [O] T-shirt idea

2011-03-25 Thread Carsten Dominik

On 25.3.2011, at 20:09, Christopher Allan Webber wrote:

> I do think they are both very cute :)

:-)  I am sure we can the convince the store holder to make them :D

- Carsten

> 
> Jason Dunsmore  writes:
> 
>> Christopher Allan Webber  writes:
>> 
>>> What about mom's orgmode file?
>> 
>> Good point.  Here's one for the Moms:
>> http://dunsmor.com/img/110325124500.png
>> 
> 
> -- 
> 𝓒𝓱𝓻𝓲𝓼𝓽𝓸𝓹𝓱𝓮𝓻 𝓐𝓵𝓵𝓪𝓷 𝓦𝓮𝓫𝓫𝓮𝓻




Re: [O] Using org-mode for recipes (i.e. cooking)

2011-03-25 Thread brian powell
* Could do a link like this in an OrgMode buffer:

[[shell:google-chrome --enable-plugins ~/CountDownTimer.html &]]

** Where ~/CountDownTimer.html contains the below code and/or only
contains the below code/markup:

http://www.chumby.com/virtualchumby_noskin.swf";
FlashVars="_chumby_profile_url=http%3A%2F%2Fwww.chumby.com%2Fxml%2Fvirtualprofiles%2FC3BB9562-5713-11E0-8D7D-0021288E6F90&baseURL=http%3A%2F%2Fwww.chumby.com"
pluginspage="http://www.macromedia.com/go/getflashplayer";>

** Tested this; worked for me.

** You may have to make a "VirtualChumby" which I believe is free from
Chumby Industries.

*** FWIW I am in no way connected to "Chumby Industries"--no way that
I know of...

;-)

On Thu, Mar 24, 2011 at 5:56 PM, Christian Moe  wrote:
> PS. Using Eric Schulte's new with-time macro
> (http://orgmode.org/worg/org-hacks.html#sec-1_2_6), part of the table
> formula in my above example can be written more compactly:
>
> $5 = '(if (string-match org-timer-re $3) (org-timer-secs-to-hms (-
> (org-timer-hms-to-secs $2) (org-timer-hms-to-secs $4))) "")
>
> becomes:
>
> $5='(if (string-match org-timer-re $3) (with-time t (- $2 $4)) "")
>
>



[bug] Problem with Worg (html?) publishing (was Re: [O] orgmode BEAMER scaling image)

2011-03-25 Thread Eric S Fraga
Gilberto  writes:

> That should help, but the thing is that the
>> |#+ATTR_LATEX| line
> is missing from the example:
>> *** A screenshot:BMCOL:B_example:
>>  :PROPERTIES:
>>  :BEAMER_col: 0.6
>>  :BEAMER_env: example
>>  :END:
>>  [[file://../../images/org-beamer/a-simple-slide.png]]
> It'd be great if you could add it.
> I promise I'll check how to contribute to Worg so I can give a hand in
> situtations like this.
>
> Gilberto

Ah, this is a problem with the publishing of Worg as the original org
file on Worg has the line.  Thanks for noticing this.  I have cc-ed the
org list.  

For the list:

In the org-beamer tutorial (Worg/org-tutorials/org-beamer/tutorial.org),
I have the following:

,
| 
| #+BEGIN_Example
| ,** Two columns
| 
| ,*** A block   :B_ignoreheading:BMCOL:
| :PROPERTIES:
| :BEAMER_env: ignoreheading
| :BEAMER_col: 0.4
| :END:
| - this slide consists of two columns
| - the first (left) column has no heading and consists of text
| - the second (right) column has an image and is enclosed in an
|   @example@ block
| 
| ,*** A screenshot:BMCOL:B_example:
| :PROPERTIES:
| :BEAMER_col: 0.6
| :BEAMER_env: example
| :END:
| ,#+ATTR_LATEX: width=\textwidth
| [[file://../../images/org-beamer/a-simple-slide.png]]
| #+END_Example
`

Note the second last line of the example which sets the latex attribute
for the following image.  On export to HTML for publishing on the Worg
website, this line has magically *disappeared*!  The ',' is supposed to
protect this line but instead it disappears.

I have gone through the whole tutorial and this is the only line that
has disappeared.  My intuition is that the HTML export is ignoring all
LATEX attribute lines (as it should) but that maybe the regex for is
rather greedy?  However, I have looked at the code but have not seen
anywhere obvious where this happens -- all the regexs I found seem to be
pinned at the start of the line with only whitespace allowed before
the #+.

I'll leave this for the exports methinks...

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.115.g00134.dirty)



Re: [O] T-shirt idea

2011-03-25 Thread Christopher Allan Webber
I do think they are both very cute :)

Jason Dunsmore  writes:

> Christopher Allan Webber  writes:
>
>> What about mom's orgmode file?
>
> Good point.  Here's one for the Moms:
> http://dunsmor.com/img/110325124500.png
>

-- 
𝓒𝓱𝓻𝓲𝓼𝓽𝓸𝓹𝓱𝓮𝓻 𝓐𝓵𝓵𝓪𝓷 𝓦𝓮𝓫𝓫𝓮𝓻


[O] Outlook replacement

2011-03-25 Thread Henri-Paul Indiogine
Greetings!

A few days ago I noticed a headline somewhere, possibly
http://linuxtoday.com or http://lxer.com, that read "an Outlook
replacement for Linux".

Then I thought, I have an Emacs gnus frame next to a frame with my
agenda.org.   I guess that is my "Outlook replacement".  Also, regularly I
export my agenda to Google Calendar.   So, I am not missing anything
from Outlook.  Yes, I know, I can not schedule appointments in a
corporate setting, but I work more or less alone.

Best,
Henri-Paul



-- 
Henri-Paul Indiogine
Email: hindiog...@gmail.com
Running: Ubuntu Linux 10.10, Emacs 24.0.50.1, org-mode 7.4



Re: [O] T-shirt idea

2011-03-25 Thread Jason Dunsmore
Christopher Allan Webber  writes:

> What about mom's orgmode file?

Good point.  Here's one for the Moms:
http://dunsmor.com/img/110325124500.png



Re: [O] T-shirt idea

2011-03-25 Thread Christopher Allan Webber
What about mom's orgmode file?

Jason Dunsmore  writes:

> T-shirt idea for babies/little kids:
> http://dunsmor.com/img/110325094800.png
>

-- 
𝓒𝓱𝓻𝓲𝓼𝓽𝓸𝓹𝓱𝓮𝓻 𝓐𝓵𝓵𝓪𝓷 𝓦𝓮𝓫𝓫𝓮𝓻


[O] T-shirt idea

2011-03-25 Thread Jason Dunsmore
T-shirt idea for babies/little kids:
http://dunsmor.com/img/110325094800.png



Re: [O] Org babel with multiple linked segments of source code

2011-03-25 Thread Nicholas Patrick
I may try playing around with the sequential sections...since that's how I'm
currently writing the majority of this file.  Most of the pieces of code are
simply defining functions that call other functions or macros and wouldn't
be executed alone.  However, I'm defining other blocks as tests for the
functional sections.  So I might do the following:

#+source: functional-definitions
#+begin_src emacs-lisp
(defn f1
#+end_src

#+source: functional-definitions
#+begin_src emacs-lisp
(defn f2
#+end_src

#+begin_src emacs-lisp
<>
(def xyz (f1 (f2 foo))) ; produces bar
#+end_src

#+results:
| bar |

I'm still pretty new to using babel, so I haven't figured out much other
than the basic tangling capability.  Maybe my example could be accomplished
with something like a ':concatenate yes' option on the
functional-definitions blocks.

On Tue, Mar 22, 2011 at 9:57 PM, Eric Schulte wrote:

> Hi,
>
> The setup you suggest below is not currently supported.  I fear
> implementing such a system could have some odd semantic extensions into
> other parts of Org-mode code blocks, for example, would it then make
> sense for the results of a code block to be collected over all code
> blocks with that name?  For example,
>
> #+source: test2
> #+begin_src emacs-lisp
>  1
> #+end_src
>
> #+source: test2
> #+begin_src emacs-lisp
>  2
> #+end_src
>
> #+begin_src emacs-lisp :var data=test2
>  data
> #+end_src
>
> #+results:
> | 1 | 2 |
>
> Maybe, but this is certainly not possible under the current setup.
>
> Anyways, back to your use case, maybe it would be equally convenient to
> simply have a number of sequential code blocks in the Org-mode file all
> tangle out, as they will be placed in the tangled file in the order they
> appear in the Org-mode file, so your example below could be changed
> to...
>
> ** tangling example
>   :PROPERTIES:
>:tangle:   test1.clj
>   :exports:  none
>:END:
>
> #+begin_src clojure
>  blah
> #+end_src
>
> #+begin_src clojure
>  foo
> #+end_src
>
> #+begin_src clojure
>  bar
> #+end_src
>
> #+begin_src clojure
>  blah
> #+end_src
>
> While not the same as what you suggested this may be sufficient.
>
> Best -- Eric
>
> Nicholas Patrick  writes:
>
> > I'm trying to figure out how to minimize the overhead with using babel to
> > write some segments of code.  I find myself writing short segments of a
> set
> > of functionality, then writing a collector source block which is referred
> to
> > later on in the code... e.g.
> >
> > *
> > #+srcname: test1
> > #+begin_src clojure :tangle test1.clj :exports none :noweb yes
> > blah
> > <>
> > blah
> > #+end_src
> >
> > #+srcname: test2
> > #+begin_src clojure
> > foo
> > #+end_src
> >
> > #+srcname: test2
> > #+begin_src clojure
> > bar
> > #+end_src
> > *
> > I'd like to see
> > blah
> > foo
> > bar
> > blah
> >
> > but I see
> > blah
> > foo
> > blah
> >
> > What I'd like to see is a single srcname for the code that just
> concatenates
> > the two different sections when it is referred by <>.
> > That way I don't have to come up with different names and collectors and
> so
> > on and so forth.  Maybe I'm just not doing "literate programming" right,
> but
> > when I'm hacking stuff together, I'd like to minimize the housekeeping.
> > e.g.
> >
> > Is there a way to do this?
>
>


Re: [O] Re: [babel] "Marker does not point anywhere" error?

2011-03-25 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25/03/11 14:22, Sébastien Vauban wrote:
> Hi Rainer,
> 
> Rainer M Krug wrote:
>> On 25/03/11 13:50, Jambunathan K wrote:
>>>
>>> Can you do M-x toggle-debug-on-error and copy/paste what comes up in the
>>> backtrace buffer?
>>
>> Here it is:
>>
>> Debugger entered--Lisp error: (error "Marker does not point anywhere")
>>   (...)
>>   org-babel-execute-src-block-maybe()
>>   org-babel-execute-maybe()
>>   org-babel-execute-safely-maybe()
>>   run-hook-with-args-until-success(org-babel-execute-safely-maybe)
>>   org-ctrl-c-ctrl-c(nil)
>>   call-interactively(org-ctrl-c-ctrl-c nil nil)
> 
> Just to be sure: above, it refers to C-c C-c

Correct

> 
>>> When I put my cursor into the block and want to execute it with C-c c I
>>> get usually at the first attempt a "Marker does not point anywhere"
>>> error, and when I, without moving the cursor, do C-c c again, the code
>>> is executed - it is not a serious problem, but a little bit irritating.
> 
> Here to C-c c... What's the capital "i" you refer to?

Sorry C-c C-c(org-ctrl-c-ctrl-c). The "I" is me (I get usually ).

> 
> Can you explicit which keybinding you're using?

org-ctrl-c-ctrl-c



Cheers,

Rainer


> 
> Best regards,
>   Seb
> 


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

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

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

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

iEYEARECAAYFAk2Mms0ACgkQoYgNqgF2egoENwCfTtk4FC52uhPTLLQHBYFOaooP
lcwAn0tkELZtmoWaT7sL8bkDWb7vvM7p
=1rj8
-END PGP SIGNATURE-



[O] Re: [babel] "Marker does not point anywhere" error?

2011-03-25 Thread Sébastien Vauban
Hi Rainer,

Rainer M Krug wrote:
> On 25/03/11 13:50, Jambunathan K wrote:
>>
>> Can you do M-x toggle-debug-on-error and copy/paste what comes up in the
>> backtrace buffer?
>
> Here it is:
>
> Debugger entered--Lisp error: (error "Marker does not point anywhere")
>   (...)
>   org-babel-execute-src-block-maybe()
>   org-babel-execute-maybe()
>   org-babel-execute-safely-maybe()
>   run-hook-with-args-until-success(org-babel-execute-safely-maybe)
>   org-ctrl-c-ctrl-c(nil)
>   call-interactively(org-ctrl-c-ctrl-c nil nil)

Just to be sure: above, it refers to C-c C-c

>> When I put my cursor into the block and want to execute it with C-c c I
>> get usually at the first attempt a "Marker does not point anywhere"
>> error, and when I, without moving the cursor, do C-c c again, the code
>> is executed - it is not a serious problem, but a little bit irritating.

Here to C-c c... What's the capital "i" you refer to?

Can you explicit which keybinding you're using?

Best regards,
  Seb

-- 
Sébastien Vauban




Re: [O] [babel] feature request: automatically connect source code block to its session

2011-03-25 Thread Andreas Leha
Hi Eric,

thanks for looking into this!

Unfortunately, I do not know the setup here.  But I asked on the ess
mailing list and got an answer from Stephen Eglen:

"I think you want to set ess-local-process-name given by the :session
argument in the .org buffer when the temp buffer is opened by C-c '."

I hope that is the information you need.

Regards,
Andreas






Am 23.03.2011 04:00, schrieb Eric Schulte:
> This seems reasonable,
> 
> Do you know how ESS associates a code buffer with a session (i.e. is
> there some buffer-local variable which holds the session name)?
> 
> With this information in hand it shouldn't be difficult to expand the
> C-' behavior for R s.t. it automatically associates the resulting
> Org-Src buffer with the proper R session.
> 
> Good idea.  Best -- Eric
> 
> Andreas Leha  writes:
> 
>> Hi all,
>>
>> I have a feature request (if what I want is not already possible, that is).
>>
>> Could a source code block, which has the :session header argument, be
>> associated with its session as soon as C-' is pressed?
>>
>> The background to this question is, that all ess support functionality
>> for R (r-autoyas, autocomplete-R, and ess-eldoc) need an associated R
>> session.  They start to function only as soon as the first line of the
>> code block is evaluated, which associates the source buffer with its
>> session.
>> The autocomplete-R even fails to load without an associated R session
>> (byte-code: Language mode `R-mode' fails with: "Symbol nil may not be
>> buffer-local")
>> and this way cuts the connection to org, such that C-' becomes undefined.
>>
>> Regards,
>> Andreas
> 




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [O] Re: [babel] "Marker does not point anywhere" error?

2011-03-25 Thread Thomas Holst
Hi,

· Rainer M Krug  wrote:
> On 25/03/11 13:50, Jambunathan K wrote:
>>
>> Can you do M-x toggle-debug-on-error and copy/paste what comes up in the
>> backtrace buffer?
>
> Here it is:
>

[ ... backtrace ... ]

I have a similar behaviour with a gnuplot source block, except that I
get the same error every time I hit C-c C-c. Here is part of the
backtrace:

Debugger entered--Lisp error: (error "Marker does not point anywhere")
  ansi-color-apply-on-region(# #)
  ansi-color-process-output("")
  run-hook-with-args(ansi-color-process-output "")
  comint-send-input()
  gnuplot-send-string-to-gnuplot(...)
  [... snip ...]

It seems that ansi-color-process-output is the source of trouble. But I
couldn't track it down further. It does not happen every time. I also
don't how to reproduce it for shure.

WinXP
org-mode Org-mode version 7.5 (release_7.5.62.gfb2ac)
GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1

Regards
  Thomas



[O] Re: [babel] "Marker does not point anywhere" error?

2011-03-25 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25/03/11 13:50, Jambunathan K wrote:
> 
> Can you do M-x toggle-debug-on-error and copy/paste what comes up in the
> backtrace buffer?

Here it is:


Debugger entered--Lisp error: (error "Marker does not point anywhere")
  ansi-color-apply-on-region(# #)
  ansi-color-process-output("")
  run-hook-with-args(ansi-color-process-output "")
  comint-send-input(nil t)
  #[(line) "c\210\301\302\303\"\210\304\305!\207" [line
comint-send-input nil t sleep-for 0.25] 3]("RESULTSDIR=$(cat
<<'BABEL_TABLE'")
  mapc(#[(line) "c\210\301\302\303\"\210\304\305!\207" [line
comint-send-input nil t sleep-for 0.25] 3] ("RESULTSDIR=$(cat
<<'BABEL_TABLE'"
"/home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/results/"
"BABEL_TABLE" ")" "ANALYSISDIR=$(cat <<'BABEL_TABLE'"
"/home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/" "BABEL_TABLE"
")" "echo" "## Copy scripts" "scpa SA.sh SA.sub SA.R
Analysis_sensitivity.R generateLatinHypercubeScenarios.R
cluster://export/home/rkrug/sim/nsa/SA/" "# scp SA.sub
cluster://export/home/rkrug/sim/nsa/SA/" "# scp SA.R
cluster://export/home/rkrug/sim/nsa/SA/" "## Copy data" "# scp
$ANALYSISDIR/../analysis.db  cluster://export/home/rkrug/sim/nsa/SA/"
"echo `date`" "echo 'org_babel_sh_eoe'"))
  org-babel-sh-evaluate(# "RESULTSDIR=$(cat
<<'BABEL_TABLE'\n/home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/results/\nBABEL_TABLE\n)\nANALYSISDIR=$(cat
<<'BABEL_TABLE'\n/home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/\nBABEL_TABLE\n)\necho\n##
Copy scripts\nscpa SA.sh SA.sub SA.R  Analysis_sensitivity.R
generateLatinHypercubeScenarios.R
cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.sub
cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.R
cluster://export/home/rkrug/sim/nsa/SA/\n## Copy data\n# scp
$ANALYSISDIR/../analysis.db
cluster://export/home/rkrug/sim/nsa/SA/\necho `date`\n" ("output"
"replace"))
  org-babel-execute:sh("echo\n## Copy scripts\nscpa SA.sh SA.sub SA.R
Analysis_sensitivity.R generateLatinHypercubeScenarios.R
cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.sub
cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.R
cluster://export/home/rkrug/sim/nsa/SA/\n## Copy data\n# scp
$ANALYSISDIR/../analysis.db
cluster://export/home/rkrug/sim/nsa/SA/\necho `date`\n" ((:var
RESULTSDIR .
"/home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/results/") (:var
ANALYSISDIR . "/home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/")
(:colname-names) (:rowname-names) (:result-params "output" "replace")
(:result-type . output) (:comments . "") (:shebang . "#!/bin/bash")
(:cache . "no") (:padline . "") (:noweb . "no") (:tangle . "no")
(:exports . "code") (:results . "output replace") (:session . "sh")
(:padnewline . "yes") (:hlines . "no")))
  org-babel-execute-src-block(nil ("sh" "echo\n## Copy scripts\nscpa
SA.sh SA.sub SA.R  Analysis_sensitivity.R
generateLatinHypercubeScenarios.R
cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.sub
cluster://export/home/rkrug/sim/nsa/SA/\n# scp SA.R
cluster://export/home/rkrug/sim/nsa/SA/\n## Copy data\n# scp
$ANALYSISDIR/../analysis.db
cluster://export/home/rkrug/sim/nsa/SA/\necho `date`\n" ((:var
RESULTSDIR .
"/home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/results/") (:var
ANALYSISDIR . "/home/rkrug/sim/results/nsa/LHCube/nsa.63.up-to-date/")
(:colname-names) (:rowname-names) (:result-params "output" "replace")
(:result-type . output) (:comments . "") (:shebang . "#!/bin/bash")
(:cache . "no") (:padline . "") (:noweb . "no") (:tangle . "no")
(:exports . "code") (:results . "output replace") (:session . "sh")
(:padnewline . "yes") (:hlines . "no")) "" nil 0))
  org-babel-execute-src-block-maybe()
  org-babel-execute-maybe()
  org-babel-execute-safely-maybe()
  run-hook-with-args-until-success(org-babel-execute-safely-maybe)
  org-ctrl-c-ctrl-c(nil)
  call-interactively(org-ctrl-c-ctrl-c nil nil)

and some more info:

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-export-latex-listings t
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-src-window-setup 'current-window
 org-src-fontify-natively t
 org-plantuml-jar-path
"/home/rkrug/.emacs.d/org-mode/contrib/scripts/plantuml.jar"
 org-ctrl-k-protect-subtree "ask"
 org-hide-leading-stars t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el"))
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'y-or-n-p

[O] Re: [babel] "Marker does not point anywhere" error?

2011-03-25 Thread Jambunathan K

Can you do M-x toggle-debug-on-error and copy/paste what comes up in the
backtrace buffer?



Rainer M Krug  writes:

> Hi
>
> I have the following code block:
>
> #+begin_src sh :session sh
>   echo
>   ## Copy scripts
>   scp SA.sh SA.sub SA.R  Analysis_sensitivity.R
> generateLatinHypercubeScenarios.R cluster://export/home/rkrug/sim/nsa/SA/
>   # scp SA.sub cluster://export/home/rkrug/sim/nsa/SA/
>   # scp SA.R   cluster://export/home/rkrug/sim/nsa/SA/
>   ## Copy data
>   # scp $ANALYSISDIR/../analysis.db  cluster://export/home/rkrug/sim/nsa/SA/
>   echo `date`
> #+end_src
>
> When I put my cursor into the block and want to execute it with C-c c I
> get usually at the first attempt a "Marker does not point anywhere"
> error, and when I, without moving the cursor, do C-c c again, the code
> is executed - it is not a serious problem, but a little bit irritating.
>
> Org-mode version 7.5 (release_7.5.113.g9010a)
> GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
>
> Cheers,
>
> Rainer

-- 



[O] [babel] "Marker does not point anywhere" error?

2011-03-25 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I have the following code block:

#+begin_src sh :session sh
  echo
  ## Copy scripts
  scp SA.sh SA.sub SA.R  Analysis_sensitivity.R
generateLatinHypercubeScenarios.R cluster://export/home/rkrug/sim/nsa/SA/
  # scp SA.sub cluster://export/home/rkrug/sim/nsa/SA/
  # scp SA.R   cluster://export/home/rkrug/sim/nsa/SA/
  ## Copy data
  # scp $ANALYSISDIR/../analysis.db  cluster://export/home/rkrug/sim/nsa/SA/
  echo `date`
#+end_src

When I put my cursor into the block and want to execute it with C-c c I
get usually at the first attempt a "Marker does not point anywhere"
error, and when I, without moving the cursor, do C-c c again, the code
is executed - it is not a serious problem, but a little bit irritating.

Org-mode version 7.5 (release_7.5.113.g9010a)
GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)

Cheers,

Rainer


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

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

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

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

iEYEARECAAYFAk2Mjh0ACgkQoYgNqgF2egqxjwCdGtnTtafWbdpkQsXbVYyAr4Ip
G+sAnjVRzyEMUdicspEGanw8xre5XcsH
=xcHw
-END PGP SIGNATURE-



[O] Re: programmatic jump to headline

2011-03-25 Thread Bernt Hansen
Eric Abrahamsen  writes:

> I'm writing a little helper function for use when I'm starting work on a
> particular long-term writing project. Basically I found myself doing the
> same little ritual of commands two or three times a day, and I got tired
> of it. Here's what I've got so far, it's pretty self-explanatory. The "my-"
> variables are set elsewhere.
>
> #+BEGIN_SRC emacs-lisp
> (defun my-project-start ()
>   (interactive)
>   (delete-other-windows)
>   (find-file my-project-file)
>   ;; here's where I go to the most recent Chapter heading
>   (org-narrow-to-subtree)
>   (split-window-horizontally)
>   (other-window 1)
>   (goto-char (point-max))
>   (read-abbrev-file my-project-abbrev-file)
> )
> #+END_SRC
>
> The bit I'm missing is in the comment above. The file is full of
> different headings, most (but not all) of which look like
>
> * Chapter XXX
>
> I've looked at the code for org-goto, but it's a wee bit complicated,
> and I don't need to do things like pushing to the mark ring. My question
> is, what's the simplest way to either:
>
> 1. Jump to the "Chapter" heading with the largest number
> 2. Jump to the bottom-most "Chapter" heading (the bottom-most heading is
> not a Chapter)
>
> Additionally, in this case is there any practical difference between
> using narrowing or using an indirect buffer? I'm not doing anything but
> writing…

Hi Eric,

If your chapters are always level 1 headings you can do something like
this:

--8<---cut here---start->8---
(defun bh/jump-to-last-level-1-heading ()
  (interactive)
  (goto-char (point-max))
  (while (org-up-heading-safe)))
--8<---cut here---end--->8---

HTH,
-- 
Bernt



Re: [O] Re: Org-capture does not work with "long" extracts of text

2011-03-25 Thread Giovanni Ridolfi
Sébastien Vauban  writes:

> Hi Giovanni,
>
> Giovanni Ridolfi wrote:
>> Sébastien Vauban  writes:
>>> Org-capture, [...] on Firefox/Windows XP. [...]
>>>
[...]
> In particular, for Windows, I created the following =.reg= file:
 :-(
Sorry, I don't have the permission to change registry files,
I can't help.

Giovanni



Re: [O] Re: Completing with anything

2011-03-25 Thread Julien Danjou
On Thu, Mar 24 2011, Cian wrote:

> Can you separate out the gnus specific code at some point. If I ever
> get any time (two small children and a day job, so big if) I'd like to
> integrate it into Wanderlust. But currently the code assumes that
> you're using gnus.

Sure, I'll add that to my todo list.

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpkJD0trazLk.pgp
Description: PGP signature


[O] Re: Org-capture does not work with "long" extracts of text

2011-03-25 Thread Sébastien Vauban
Hi Giovanni,

Giovanni Ridolfi wrote:
> Sébastien Vauban  writes:
>> Org-capture, [...] on Firefox/Windows XP. [...]
>>
>> So, what's the limitation? I can only capture _short text_ extracts from
>> the Web. Once it gets over 20 lines of text or so, the "Org-capture" button
>> still does not do anything.
>
> would you please share some details and a brief tutorial so that I can try
> to reproduce this behaviour?

I followed quite precisely the instructions given on
http://orgmode.org/worg/org-contrib/org-protocol.php

In particular, for Windows, I created the following =.reg= file:

#+begin_src txt :tangle org-protocol-setup.reg
REGEDIT4

[HKEY_CLASSES_ROOT\org-protocol]
@="URL:Org Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\org-protocol\shell]
[HKEY_CLASSES_ROOT\org-protocol\shell\open]
[HKEY_CLASSES_ROOT\org-protocol\shell\open\command]
@="\"C:\\Program Files\\Emacs\\emacs\\bin\\emacsclientw.exe\" \"%1\""
#+end_src

and double-click it.

Then I created JavaScript bookmarklets, by adding new bookmarks, with the
following *names* and *addresses*:

- =org-capture=

  #+BEGIN_SRC javascript
  
javascript:location.href='org-protocol://capture://'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)+'/'+encodeURIComponent(window.getSelection())
  #+END_SRC

- =org-store-link=

  #+BEGIN_SRC javascript
  
javascript:location.href='org-protocol://store-link://'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)+'/'+encodeURIComponent(window.getSelection())
  #+END_SRC

- =org-open-source=

  #+BEGIN_SRC javascript
  
javascript:location.href='org-protocol://open-source://'+encodeURIComponent(location.href)
  #+END_SRC

Best regards,
  Seb

-- 
Sébastien Vauban




[O] programmatic jump to headline

2011-03-25 Thread Eric Abrahamsen
I'm writing a little helper function for use when I'm starting work on a
particular long-term writing project. Basically I found myself doing the
same little ritual of commands two or three times a day, and I got tired
of it. Here's what I've got so far, it's pretty self-explanatory. The "my-"
variables are set elsewhere.

#+BEGIN_SRC emacs-lisp
(defun my-project-start ()
  (interactive)
  (delete-other-windows)
  (find-file my-project-file)
  ;; here's where I go to the most recent Chapter heading
  (org-narrow-to-subtree)
  (split-window-horizontally)
  (other-window 1)
  (goto-char (point-max))
  (read-abbrev-file my-project-abbrev-file)
)
#+END_SRC

The bit I'm missing is in the comment above. The file is full of
different headings, most (but not all) of which look like

* Chapter XXX

I've looked at the code for org-goto, but it's a wee bit complicated,
and I don't need to do things like pushing to the mark ring. My question
is, what's the simplest way to either:

1. Jump to the "Chapter" heading with the largest number
2. Jump to the bottom-most "Chapter" heading (the bottom-most heading is
not a Chapter)

Additionally, in this case is there any practical difference between
using narrowing or using an indirect buffer? I'm not doing anything but
writing…

Thanks!
Eric




Re: [O] org-remember and lists

2011-03-25 Thread Radosław Grzanka

W dniu 2011-03-25 10:12, Aankhen pisze:

Hullo,

On Fri, Mar 25, 2011 at 02:07, Radosław Grzanka  wrote:

  I'm trying to tweak remember templates to follow my needs but I
fail. I want to do template for my shopping list entries like this:

(setq org-remember-templates (list
   (list "shopping" ?s "- [ ] %?\n" (concat 
org-directory
"notes.org") "Shopping List")
))

However after saving, there is header prepended to this like:

** Thu Mar 24 21:32:49 2011 (- [ ] apples)
   - [ ] apples

I don't want this - I already have heading with all the info I need "*
Shopping List". ;) I don't know how to accomplish that.

Any help?

I’m not sure what the problem is here, but ‘org-capture’ is preferred
over remember these days; maybe that would work better for you:

,
| (require 'org-capture)
| (global-set-key (kbd "C-M-z") 'org-capture) ; use any key you like
| (setq org-capture-templates `(("s" "Shopping" checkitem
|(file+headline ,(concat org-directory
"notes.org")
|   "Shopping List"
`Hello,


  Yep! That solved it. I think I come from stone age when "remember" 
was preffered ;) . Thanks for help.


Radek.



Re: [O] org-remember and lists

2011-03-25 Thread Aankhen
Hullo,

On Fri, Mar 25, 2011 at 02:07, Radosław Grzanka  wrote:
>  I'm trying to tweak remember templates to follow my needs but I
> fail. I want to do template for my shopping list entries like this:
>
> (setq org-remember-templates (list
>                               (list "shopping" ?s "- [ ] %?\n" (concat 
> org-directory
> "notes.org") "Shopping List")
> ))
>
> However after saving, there is header prepended to this like:
>
> ** Thu Mar 24 21:32:49 2011 (- [ ] apples)
>   - [ ] apples
>
> I don't want this - I already have heading with all the info I need "*
> Shopping List". ;) I don't know how to accomplish that.
>
> Any help?

I’m not sure what the problem is here, but ‘org-capture’ is preferred
over remember these days; maybe that would work better for you:

,
| (require 'org-capture)
| (global-set-key (kbd "C-M-z") 'org-capture) ; use any key you like
| (setq org-capture-templates `(("s" "Shopping" checkitem
|(file+headline ,(concat org-directory
"notes.org")
|   "Shopping List"
`

Take a look at the manual for more.[1] You may need to update your Org
installation and add the ‘contrib’ directory to ‘load-path’ in order
to use ‘org-capture’.

Hope this helps,
Aankhen

[1]: http://orgmode.org/org.html#Capture



Re: [O] Org-capture does not work with "long" extracts of text

2011-03-25 Thread Giovanni Ridolfi
Sébastien Vauban  writes:

 Hi, Sébastien,
>
> Org-capture, [...]  on Firefox/Windows XP.
>
[...]
> So, what's the limitation?  I can only capture _short text_ extracts from the
> Web. Once it gets over 20 lines of text or so, the "Org-capture" button still
> does not do anything.

would you please share some details and a brief tutorial so that I can 
try to reproduce this behaviour?

tia,
Giovanni



[O] Bug: Jumping to date in custom agenda looses starting day of week

2011-03-25 Thread Sébastien Vauban
Hi Bernt,

Bernt Hansen wrote:
> I can move forwards and backwards one day at a time with 'f' and 'b' and it
> works great. If however I want to jump to a specific date the block view is
> lost and it reverts back to the regular calendar agenda view.

In the same spirit, I would add another point: if you have a view with
starting day (of the week) on Monday:

--8<---cut here---start->8---
("C" "Weekly appointments"
 agenda ""
 ((org-agenda-ndays 7)
  (org-agenda-start-on-weekday 1)
  (org-agenda-time-grid nil)
  (org-agenda-prefix-format "  %12:t ")
  (org-agenda-include-all-todo nil)
  (org-agenda-repeating-timestamp-show-all t)
  (org-agenda-skip-function
   '(org-agenda-skip-entry-if 'deadline 'scheduled
--8<---cut here---end--->8---

and jump to a Thursday, then the new 7-days view is beginning on Thursday
(which is my global setting), instead of keeping the Monday.

What I would find logical is to keep this setting active for the jump.

Best regards,
  Seb

-- 
Sébastien Vauban




Re: [O] Extracting pdf metadata

2011-03-25 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 25/03/11 02:21, Marvin Doyley wrote:
> Hi there,
> 
> Does anybody have a lisp code that can extract metadata from pdf. There
> is an interesting program called sciplpore
> (http://www.sciplore.org/software/sciplore_mindmapping/ that does this
> for freemind), it might be useful if were able to do the same with org
> (i.e., important pdf meta data, bookmark and stickies directly into org).

As far as I remember, sciplore is not only extracting metadata embedded
in th pdf, but also from the text - they submit it to a server which
uses the academic article and compares it to layouts from different
publishers and uses those to extract bibliographic information from the
text. If that is what you want, then it might be considerably more
difficult then just extracting embedded metadata.

Cheers,

Rainer


> 
> 
> Cheers
> 
> M
> 
> PS I think one of my goals this summer will be to learn lisp :)


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

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

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

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

iEYEARECAAYFAk2MU4IACgkQoYgNqgF2egqKNgCdH5J+8IOb8Sz5jjultIDXI/yU
noUAnA++JSXpB7zMaY/bdNOWG8PppXGF
=Fl62
-END PGP SIGNATURE-



Re: [O] A little bug of Org capture?

2011-03-25 Thread Carsten Dominik
Hi Chao,

On 25.3.2011, at 06:14, Chao LU wrote:

> Dear all,
> 
> Don't know if it is a little bug:
> 
> For org capture template, if I set an template like this:
> ("i" "INBOX" entry (file+olp (concat org-private-dir "/iPrv.org") "INBOX" 
> "test") "* %?" :prepend t)
> 
> And for the iPrv.org, I have this structure:
> * INBOX
> ** test
> 
> Then it works.
> 
> But if the first level and the second level happen to have the same title (it 
> does happen to me sometimes), like:
> * INBOX
> ** INBOX
> 
> ("i" "INBOX" entry (file+olp (concat org-private-dir "/iPrv.org") "INBOX" 
> "INBOX") "* %?" :prepend t)
> Then Org will prompt an error.

Indeed, there was a bug in the outline path resolving code.
Thanks for the report, fixed now.

- Carsten