Re: [Orgmode] [Update Config] Babel changes -- security updates and final integration push

2010-07-05 Thread Carsten Dominik

Hi Eric,

On Jul 6, 2010, at 3:09 AM, Eric Schulte wrote:


Hi Tom,

Thanks for finding this error, the problem is that org-table is not
being required before the source-code block is run.  As a temporary  
fix

you can put

 (require 'org-table)

somewhere in your configuration.

As a long term solution I would want to talk to Carsten about how best
to ensure that org-table is required when org-babel has been  
required as

I believe it may require some change in the org require tree.

Carsten, do you have any suggestion?  I've tried a couple of  
approaches

but most result in a recursive require error.


You are using only a few entry points from org-table, and I have
just added these to the autoloads.  This fixes the current issue.

The require tree of Org could be better, but this is too complex
an issue for the moment.

- Carsten



Thanks -- Eric

"Thomas S. Dye"  writes:


Hi Eric,

Thanks for all your work integrating Babel into Org-mode.

I've pulled the latest Org-mode and changed my initialization
according to your message.  I also pulled the latest starter-kit,  
so I

think I have all the latest code.

When I try to evaluate this code block I get an error that orgtbl-to-
orgtbl is void.

#+begin_src emacs-lisp
 (list 1 (+ 2 3))
#+end_src

Here is a backtrace:

Debugger entered--Lisp error: (void-function orgtbl-to-orgtbl)
 (orgtbl-to-orgtbl (if (or ... ...) result (list result)) (quote
(:fmt ...)))
 (concat (orgtbl-to-orgtbl (if ... result ...) (quote ...)) "\n")
 (insert (concat (orgtbl-to-orgtbl ... ...) "\n"))
 (cond ((not ...) (insert ...) (goto-char beg) (when ... ...))
((member "file" result-params) (insert result)) ((member "html"
result-
params) (insert ...)) ((member "latex" result-params) (insert ...))
((member "code" result-params) (insert ...)) ((or ... ...) (save-
excursion ...) (if ... ...)) (t (org-babel-examplize-region
... ... results-switches)))
 (let ((existing-result ...) (results-switches ...) beg end) (when
existing-result (goto-char existing-result) (save-excursion ... ...)
(forward-line 1) (setq beg ...) (cond ... ... ...)) (setq results-
switches (if results-switches ... "")) (cond (... ... ... ...)
(... ...) (... ...) (... ...) (... ...) (... ... ...) (t ...)) (setq
end (if ... ... ...)) (when (and indent ... ...) (indent-rigidly beg
end indent)))
 (save-excursion (let (... ... beg end) (when existing-
result ... ... ... ... ...) (setq results-switches ...) (cond
... ... ... ... ... ... ...) (setq end ...) (when ... ...)))
 (if (and result-params (member "silent" result-params)) (progn
(message ...) result) (when (and ... ...) (setq result ...)) (save-
excursion (let ... ... ... ... ... ...)) (message "finished"))
 (if (= (length result) 0) (if (member "value" result-params)
(message "No result returned by source block") (message "Source block
produced no output")) (if (and result-params ...) (progn ... result)
(when ... ...) (save-excursion ...) (message "finished")))
 org-babel-insert-result((1 5) ("replace") ("emacs-lisp" "(list 1 (+
2 3))\n" ((:cache . "no") (:colnames . "no") (:comments . "")
(:exports . "code") (:hlines . "yes") (:noweb . "yes") (:results .
"replace") (:session . "none") (:shebang . "") (:tangle . "")) "" nil
nil 0) nil 0 "emacs-lisp")
 (if (and (not arg) new-hash (equal new-hash old-hash)) (save-
excursion (goto-char ...) (end-of-line 1) (forward-char 1) (setq
result ...) (message ...) result) (setq result (funcall cmd body
params)) (if (eq result-type ...) (setq result ...))
(org-babel-insert-
result result result-params info new-hash indent lang) (run-hooks
(quote org-babel-after-execute-hook)) result)
 (progn (fset (quote call-process-region) (function* ...)) (unless
(fboundp cmd) (error "No org-babel-execute function for %s!" lang))
(if (and ... new-hash ...) (save-excursion ... ... ... ... ...  
result)
(setq result ...) (if ... ...) (org-babel-insert-result result  
result-

params info new-hash indent lang) (run-hooks ...) result))
 (unwind-protect (progn (fset ... ...) (unless ... ...)  
(if ... ... ... ... ... ... result)) (if --cl-letf-bound--  
(fset ... --

cl-letf-save--) (fmakunbound ...)))
 (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-
protect (progn ... ... ...) (if --cl-letf-bound-- ... ...)))
 (letf ((... ...)) (unless (fboundp cmd) (error "No org-babel-
execute function for %s!" lang)) (if (and ... new-hash ...) (save-
excursion ... ... ... ... ... result) (setq result ...) (if ... ...)
(org-babel-insert-result result result-params info new-hash indent
lang) (run-hooks ...) result))
 (letf* ((... ...)) (unless (fboundp cmd) (error "No org-babel-
execute function for %s!" lang)) (if (and ... new-hash ...) (save-
excursion ... ... ... ... ... result) (setq result ...) (if ... ...)
(org-babel-insert-result result result-params info new-hash indent
lang) (run-hooks ...) result))
 (flet ((call-process-region ... ...)) (unless (fboundp cmd) (error
"No org-babel-execute function for %s!" lang)) (if (and ... new-

Re: [Orgmode] diary-float and TODO entries

2010-07-05 Thread Carsten Dominik


On Jul 5, 2010, at 11:11 PM, Greg Troxel wrote:



I have successfully used repeating times on TODO entries, and seen the
scheduled time move forward when I do C-c C-t d (d is my DONE  
shortcut).
I have a meeting on the 2nd monday of each month and am responsible  
for

inviting people ahead of time, and I've picked the first monday for
that.  I think I have to use a diary-mode expression, and the  
SCHEDULED:

time and event time below work ok.  But when I set the todo to DONE it
goes to DONE, instead of auto-changing back to TODO for the next  
month.


Is there some reasonable way to do what I want?


Unfortunately not.

- Carsten




** FOO
*** TODO Announce meeting
   SCHEDULED: <%%(diary-float t 1 1)>
*** FOO meeting
<%%(diary-float t 1 2)>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




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


[Orgmode] Re: Bug: Items with repeating timestamps don't appear in the agenda [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Tassilo Horn
On Monday 05 July 2010 23:12:46 Bernt Hansen wrote:

Hi Bernt,

> > I did some debugging.
> 
> Thanks.  Sorry I've been tied up with work today.

No problem.  I had some time (and fun) with the debugging.  That was the
first time I dug into the depth of org's internals. ;-)

> Oh!  It's not that the future dates are missing it's the entry for
> _today_ that is missing.

Ups, I should have been a bit more clear on that.  :-)

Anyway, since Carsten reverted that commit, the agenda works again.

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: Don't create marker if target is entire file.

2010-07-05 Thread David Maus
Noorul Islam K M wrote:
>David Maus  writes:

>> * org-agenda.el (org-agenda-bulk-action): Don't create marker for
>> position if target is entire file.
>>
>> If the target of a bulk refile operation is the entire file,
>> `org-refile-get-location' returns nil for the refile position.
>> Creating a marker for the target file's buffer at position nil returns
>> a marker that points nowhere (Cf. GNU Emacs Lisp Reference Manual,
>> 31.6).  `org-refile' adds headings to level 1 if the target position
>> for the target file is nil -- and hence a marker that points nowhere
>> is not nil, tries to jump to nowhere.


>Does this patch fix bulk refile issue that you faced?

It does; and as soon as the patch is reviewed it might get accepted.

Best,
  -- David

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


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


[Orgmode] Re: Don't create marker if target is entire file.

2010-07-05 Thread Noorul Islam K M
David Maus  writes:

> * org-agenda.el (org-agenda-bulk-action): Don't create marker for
> position if target is entire file.
>
> If the target of a bulk refile operation is the entire file,
> `org-refile-get-location' returns nil for the refile position.
> Creating a marker for the target file's buffer at position nil returns
> a marker that points nowhere (Cf. GNU Emacs Lisp Reference Manual,
> 31.6).  `org-refile' adds headings to level 1 if the target position
> for the target file is nil -- and hence a marker that points nowhere
> is not nil, tries to jump to nowhere.


Does this patch fix bulk refile issue that you faced?

Thank you!

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: Bulk refile is not working as expected

2010-07-05 Thread Noorul Islam K M
David Maus  writes:

> Noorul Islam K M wrote:
>
>>I have couple of tasks in one of my org files which I want to re-file to
>>some other org file.
>
>>Both these files are in my agenda list. This is what I did.
>
>>1. Go to agenda-view
>>2. Navigate to both the tasks and use 'm' to mark them.
>>3. 'B r' to bulk refile tasks
>>4. The marked tasks disappears from Agenda View.
>
>>But actually these tasks are not moved. One thing that I noticed is that
>>the following message is getting displayed.
>
>>org-agenda-refile: Marker does not point anywhere
>
>>(org-version)
>>release_6.36-109-g4f11
>>Org-mode version 6.36trans (release_6.36.109.g4f11)
>
>>Am I doing something different here or is it a bug?
>
> I've reported a similar problem[1]; what did you set the variable
> `org-refile-use-outline-path' set to?
>

It's value is set as file 

Thanks and Regards
Noorul

> [1] 
> http://news.gmane.org/find-root.php?message_id=8739vzpqx1.wl%25dmaus%40ictsoc.de


___
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] [Update Config] Babel changes -- security updates and final integration push

2010-07-05 Thread Thomas S. Dye

Thanks Eric,

That works.

Tom
On Jul 5, 2010, at 3:09 PM, Eric Schulte wrote:


Hi Tom,

Thanks for finding this error, the problem is that org-table is not
being required before the source-code block is run.  As a temporary  
fix

you can put

 (require 'org-table)

somewhere in your configuration.

As a long term solution I would want to talk to Carsten about how best
to ensure that org-table is required when org-babel has been  
required as

I believe it may require some change in the org require tree.

Carsten, do you have any suggestion?  I've tried a couple of  
approaches

but most result in a recursive require error.

Thanks -- Eric

"Thomas S. Dye"  writes:


Hi Eric,

Thanks for all your work integrating Babel into Org-mode.

I've pulled the latest Org-mode and changed my initialization
according to your message.  I also pulled the latest starter-kit,  
so I

think I have all the latest code.

When I try to evaluate this code block I get an error that orgtbl-to-
orgtbl is void.

#+begin_src emacs-lisp
 (list 1 (+ 2 3))
#+end_src

Here is a backtrace:

Debugger entered--Lisp error: (void-function orgtbl-to-orgtbl)
 (orgtbl-to-orgtbl (if (or ... ...) result (list result)) (quote
(:fmt ...)))
 (concat (orgtbl-to-orgtbl (if ... result ...) (quote ...)) "\n")
 (insert (concat (orgtbl-to-orgtbl ... ...) "\n"))
 (cond ((not ...) (insert ...) (goto-char beg) (when ... ...))
((member "file" result-params) (insert result)) ((member "html"
result-
params) (insert ...)) ((member "latex" result-params) (insert ...))
((member "code" result-params) (insert ...)) ((or ... ...) (save-
excursion ...) (if ... ...)) (t (org-babel-examplize-region
... ... results-switches)))
 (let ((existing-result ...) (results-switches ...) beg end) (when
existing-result (goto-char existing-result) (save-excursion ... ...)
(forward-line 1) (setq beg ...) (cond ... ... ...)) (setq results-
switches (if results-switches ... "")) (cond (... ... ... ...)
(... ...) (... ...) (... ...) (... ...) (... ... ...) (t ...)) (setq
end (if ... ... ...)) (when (and indent ... ...) (indent-rigidly beg
end indent)))
 (save-excursion (let (... ... beg end) (when existing-
result ... ... ... ... ...) (setq results-switches ...) (cond
... ... ... ... ... ... ...) (setq end ...) (when ... ...)))
 (if (and result-params (member "silent" result-params)) (progn
(message ...) result) (when (and ... ...) (setq result ...)) (save-
excursion (let ... ... ... ... ... ...)) (message "finished"))
 (if (= (length result) 0) (if (member "value" result-params)
(message "No result returned by source block") (message "Source block
produced no output")) (if (and result-params ...) (progn ... result)
(when ... ...) (save-excursion ...) (message "finished")))
 org-babel-insert-result((1 5) ("replace") ("emacs-lisp" "(list 1 (+
2 3))\n" ((:cache . "no") (:colnames . "no") (:comments . "")
(:exports . "code") (:hlines . "yes") (:noweb . "yes") (:results .
"replace") (:session . "none") (:shebang . "") (:tangle . "")) "" nil
nil 0) nil 0 "emacs-lisp")
 (if (and (not arg) new-hash (equal new-hash old-hash)) (save-
excursion (goto-char ...) (end-of-line 1) (forward-char 1) (setq
result ...) (message ...) result) (setq result (funcall cmd body
params)) (if (eq result-type ...) (setq result ...))
(org-babel-insert-
result result result-params info new-hash indent lang) (run-hooks
(quote org-babel-after-execute-hook)) result)
 (progn (fset (quote call-process-region) (function* ...)) (unless
(fboundp cmd) (error "No org-babel-execute function for %s!" lang))
(if (and ... new-hash ...) (save-excursion ... ... ... ... ...  
result)
(setq result ...) (if ... ...) (org-babel-insert-result result  
result-

params info new-hash indent lang) (run-hooks ...) result))
 (unwind-protect (progn (fset ... ...) (unless ... ...)  
(if ... ... ... ... ... ... result)) (if --cl-letf-bound--  
(fset ... --

cl-letf-save--) (fmakunbound ...)))
 (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-
protect (progn ... ... ...) (if --cl-letf-bound-- ... ...)))
 (letf ((... ...)) (unless (fboundp cmd) (error "No org-babel-
execute function for %s!" lang)) (if (and ... new-hash ...) (save-
excursion ... ... ... ... ... result) (setq result ...) (if ... ...)
(org-babel-insert-result result result-params info new-hash indent
lang) (run-hooks ...) result))
 (letf* ((... ...)) (unless (fboundp cmd) (error "No org-babel-
execute function for %s!" lang)) (if (and ... new-hash ...) (save-
excursion ... ... ... ... ... result) (setq result ...) (if ... ...)
(org-babel-insert-result result result-params info new-hash indent
lang) (run-hooks ...) result))
 (flet ((call-process-region ... ...)) (unless (fboundp cmd) (error
"No org-babel-execute function for %s!" lang)) (if (and ... new-
hash ...) (save-excursion ... ... ... ... ... result) (setq result
...) (if ... ...) (org-babel-insert-result result result-params  info
new-hash indent lang) (run-hooks ...) result))
 (unwind-protect (flet (...) (un

Re: [Orgmode] tabular logging of values in habits and other repeating tasks

2010-07-05 Thread Michael Gilbert
Darlan —

Thank you for the additional hand-holding. This will be very useful to me. Much 
obliged!

— Michael


On Jul 5,2010, at 2:06 PM, Darlan Cavalcante Moreira wrote:

> What I though is something like the task below
> --8<---cut here---start->8---
> * TODO Running
>  :PROPERTIES:
>  :STYLE:habit
>  :END:
> 
>  | Date | Place| Distance |
>  |--+--+--|
>  | [2010-07-03 Sáb] | Park Something   | 6km  |
>  | [2010-07-05 Seg] | Some other place | 5km  |
> --8<---cut here---end--->8---
> 
> You then create a template that adds a line after the hline in the
> table. That way the most recent completed task would be in the top.
> 
> Whenever you do the task you call org-capture with the template to add a
> new line to the table and then mark the task as done. It is true that
> adding the line and marking the task as done are not a "single thing", but
> with org-capture you can add a line to the table from any buffer without
> needing to go until the task heading and the table keeps everything more
> organized.
> 
> Also, you can give this table a name and do whatever you want with it using
> org babel super powers. You could easily calculate the mean distance that
> you run, the variance, maybe even plot the distances that you run in each
> day (there is probably a way to use the inactive timestamps as values for
> the x axis). This would not be possible if you store the information as
> notes in the task.


___
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] [Update Config] Babel changes -- security updates and final integration push

2010-07-05 Thread Eric Schulte
Hi Tom,

Thanks for finding this error, the problem is that org-table is not
being required before the source-code block is run.  As a temporary fix
you can put

  (require 'org-table)

somewhere in your configuration.

As a long term solution I would want to talk to Carsten about how best
to ensure that org-table is required when org-babel has been required as
I believe it may require some change in the org require tree.

Carsten, do you have any suggestion?  I've tried a couple of approaches
but most result in a recursive require error.

Thanks -- Eric

"Thomas S. Dye"  writes:

> Hi Eric,
>
> Thanks for all your work integrating Babel into Org-mode.
>
> I've pulled the latest Org-mode and changed my initialization
> according to your message.  I also pulled the latest starter-kit, so I
> think I have all the latest code.
>
> When I try to evaluate this code block I get an error that orgtbl-to-
> orgtbl is void.
>
> #+begin_src emacs-lisp
>   (list 1 (+ 2 3))
> #+end_src
>
> Here is a backtrace:
>
> Debugger entered--Lisp error: (void-function orgtbl-to-orgtbl)
>   (orgtbl-to-orgtbl (if (or ... ...) result (list result)) (quote
> (:fmt ...)))
>   (concat (orgtbl-to-orgtbl (if ... result ...) (quote ...)) "\n")
>   (insert (concat (orgtbl-to-orgtbl ... ...) "\n"))
>   (cond ((not ...) (insert ...) (goto-char beg) (when ... ...))
> ((member "file" result-params) (insert result)) ((member "html"
> result- 
> params) (insert ...)) ((member "latex" result-params) (insert ...))
> ((member "code" result-params) (insert ...)) ((or ... ...) (save- 
> excursion ...) (if ... ...)) (t (org-babel-examplize-region
> ... ... results-switches)))
>   (let ((existing-result ...) (results-switches ...) beg end) (when
> existing-result (goto-char existing-result) (save-excursion ... ...)
> (forward-line 1) (setq beg ...) (cond ... ... ...)) (setq results- 
> switches (if results-switches ... "")) (cond (... ... ... ...)
> (... ...) (... ...) (... ...) (... ...) (... ... ...) (t ...)) (setq
> end (if ... ... ...)) (when (and indent ... ...) (indent-rigidly beg
> end indent)))
>   (save-excursion (let (... ... beg end) (when existing-
> result ... ... ... ... ...) (setq results-switches ...) (cond
> ... ... ... ... ... ... ...) (setq end ...) (when ... ...)))
>   (if (and result-params (member "silent" result-params)) (progn
> (message ...) result) (when (and ... ...) (setq result ...)) (save- 
> excursion (let ... ... ... ... ... ...)) (message "finished"))
>   (if (= (length result) 0) (if (member "value" result-params)
> (message "No result returned by source block") (message "Source block
> produced no output")) (if (and result-params ...) (progn ... result)
> (when ... ...) (save-excursion ...) (message "finished")))
>   org-babel-insert-result((1 5) ("replace") ("emacs-lisp" "(list 1 (+
> 2 3))\n" ((:cache . "no") (:colnames . "no") (:comments . "")
> (:exports . "code") (:hlines . "yes") (:noweb . "yes") (:results .
> "replace") (:session . "none") (:shebang . "") (:tangle . "")) "" nil
> nil 0) nil 0 "emacs-lisp")
>   (if (and (not arg) new-hash (equal new-hash old-hash)) (save-
> excursion (goto-char ...) (end-of-line 1) (forward-char 1) (setq
> result ...) (message ...) result) (setq result (funcall cmd body
> params)) (if (eq result-type ...) (setq result ...))
> (org-babel-insert- 
> result result result-params info new-hash indent lang) (run-hooks
> (quote org-babel-after-execute-hook)) result)
>   (progn (fset (quote call-process-region) (function* ...)) (unless
> (fboundp cmd) (error "No org-babel-execute function for %s!" lang))
> (if (and ... new-hash ...) (save-excursion ... ... ... ... ... result)
> (setq result ...) (if ... ...) (org-babel-insert-result result result- 
> params info new-hash indent lang) (run-hooks ...) result))
>   (unwind-protect (progn (fset ... ...) (unless ... ...) (if ... ... ... ... 
> ... ... result)) (if --cl-letf-bound-- (fset ... -- 
> cl-letf-save--) (fmakunbound ...)))
>   (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-
> protect (progn ... ... ...) (if --cl-letf-bound-- ... ...)))
>   (letf ((... ...)) (unless (fboundp cmd) (error "No org-babel-
> execute function for %s!" lang)) (if (and ... new-hash ...) (save-
> excursion ... ... ... ... ... result) (setq result ...) (if ... ...)
> (org-babel-insert-result result result-params info new-hash indent
> lang) (run-hooks ...) result))
>   (letf* ((... ...)) (unless (fboundp cmd) (error "No org-babel-
> execute function for %s!" lang)) (if (and ... new-hash ...) (save-
> excursion ... ... ... ... ... result) (setq result ...) (if ... ...)
> (org-babel-insert-result result result-params info new-hash indent
> lang) (run-hooks ...) result))
>   (flet ((call-process-region ... ...)) (unless (fboundp cmd) (error
> "No org-babel-execute function for %s!" lang)) (if (and ... new- 
> hash ...) (save-excursion ... ... ... ... ... result) (setq result
> ...) (if ... ...) (org-babel-insert-result result result-params  info

Re: [Orgmode] [Update Config] Babel changes -- security updates and final integration push

2010-07-05 Thread Thomas S. Dye

Hi Eric,

Thanks for all your work integrating Babel into Org-mode.

I've pulled the latest Org-mode and changed my initialization  
according to your message.  I also pulled the latest starter-kit, so I  
think I have all the latest code.


When I try to evaluate this code block I get an error that orgtbl-to- 
orgtbl is void.


#+begin_src emacs-lisp
  (list 1 (+ 2 3))
#+end_src

Here is a backtrace:

Debugger entered--Lisp error: (void-function orgtbl-to-orgtbl)
  (orgtbl-to-orgtbl (if (or ... ...) result (list result)) (quote  
(:fmt ...)))

  (concat (orgtbl-to-orgtbl (if ... result ...) (quote ...)) "\n")
  (insert (concat (orgtbl-to-orgtbl ... ...) "\n"))
  (cond ((not ...) (insert ...) (goto-char beg) (when ... ...))  
((member "file" result-params) (insert result)) ((member "html" result- 
params) (insert ...)) ((member "latex" result-params) (insert ...))  
((member "code" result-params) (insert ...)) ((or ... ...) (save- 
excursion ...) (if ... ...)) (t (org-babel-examplize-region ... ...  
results-switches)))
  (let ((existing-result ...) (results-switches ...) beg end) (when  
existing-result (goto-char existing-result) (save-excursion ... ...)  
(forward-line 1) (setq beg ...) (cond ... ... ...)) (setq results- 
switches (if results-switches ... "")) (cond (... ... ... ...)  
(... ...) (... ...) (... ...) (... ...) (... ... ...) (t ...)) (setq  
end (if ... ... ...)) (when (and indent ... ...) (indent-rigidly beg  
end indent)))
  (save-excursion (let (... ... beg end) (when existing- 
result ... ... ... ... ...) (setq results-switches ...)  
(cond ... ... ... ... ... ... ...) (setq end ...) (when ... ...)))
  (if (and result-params (member "silent" result-params)) (progn  
(message ...) result) (when (and ... ...) (setq result ...)) (save- 
excursion (let ... ... ... ... ... ...)) (message "finished"))
  (if (= (length result) 0) (if (member "value" result-params)  
(message "No result returned by source block") (message "Source block  
produced no output")) (if (and result-params ...) (progn ... result)  
(when ... ...) (save-excursion ...) (message "finished")))
  org-babel-insert-result((1 5) ("replace") ("emacs-lisp" "(list 1 (+  
2 3))\n" ((:cache . "no") (:colnames . "no") (:comments . "")  
(:exports . "code") (:hlines . "yes") (:noweb . "yes") (:results .  
"replace") (:session . "none") (:shebang . "") (:tangle . "")) "" nil  
nil 0) nil 0 "emacs-lisp")
  (if (and (not arg) new-hash (equal new-hash old-hash)) (save- 
excursion (goto-char ...) (end-of-line 1) (forward-char 1) (setq  
result ...) (message ...) result) (setq result (funcall cmd body  
params)) (if (eq result-type ...) (setq result ...)) (org-babel-insert- 
result result result-params info new-hash indent lang) (run-hooks  
(quote org-babel-after-execute-hook)) result)
  (progn (fset (quote call-process-region) (function* ...)) (unless  
(fboundp cmd) (error "No org-babel-execute function for %s!" lang))  
(if (and ... new-hash ...) (save-excursion ... ... ... ... ... result)  
(setq result ...) (if ... ...) (org-babel-insert-result result result- 
params info new-hash indent lang) (run-hooks ...) result))
  (unwind-protect (progn (fset ... ...) (unless ... ...)  
(if ... ... ... ... ... ... result)) (if --cl-letf-bound-- (fset ... -- 
cl-letf-save--) (fmakunbound ...)))
  (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind- 
protect (progn ... ... ...) (if --cl-letf-bound-- ... ...)))
  (letf ((... ...)) (unless (fboundp cmd) (error "No org-babel- 
execute function for %s!" lang)) (if (and ... new-hash ...) (save- 
excursion ... ... ... ... ... result) (setq result ...) (if ... ...)  
(org-babel-insert-result result result-params info new-hash indent  
lang) (run-hooks ...) result))
  (letf* ((... ...)) (unless (fboundp cmd) (error "No org-babel- 
execute function for %s!" lang)) (if (and ... new-hash ...) (save- 
excursion ... ... ... ... ... result) (setq result ...) (if ... ...)  
(org-babel-insert-result result result-params info new-hash indent  
lang) (run-hooks ...) result))
  (flet ((call-process-region ... ...)) (unless (fboundp cmd) (error  
"No org-babel-execute function for %s!" lang)) (if (and ... new- 
hash ...) (save-excursion ... ... ... ... ... result) (setq  
result ...) (if ... ...) (org-babel-insert-result result result-params  
info new-hash indent lang) (run-hooks ...) result))
  (unwind-protect (flet (...) (unless ... ...)  
(if ... ... ... ... ... ... result)) (setq call-process-region (quote  
org-babel-call-process-region-original)))
  (let* ((info ...) (evaluation-confirmed ...) (lang ...)  
(params ...) (new-hash ...) (old-hash ...) (body ...) (result- 
params ...) (result-type ...) (cmd ...) (dir ...) (default- 
directory ...) (org-babel-call-process-region-original ...)  
(indent ...) result) (unwind-protect (flet ... ... ...) (setq call- 
process-region ...)))
  org-babel-execute-src-block(nil ("emacs-lisp" "(list 1 (+ 2 3)) 
\n" ((:cache . "no") (:colnames . "no") (:comments .

Re: [Orgmode] hypermedia programming with babel

2010-07-05 Thread Eric Schulte
Erik Iverson  writes:

>>
>>> How can I help next?
>>
>> Babel in general is in need of some language-specific introductory
>> tutorials, with the goal of laying out the basic usage plenty of
>> examples covering simple use case e.g.
>> - author a shell script which can be tangled out to an executable
>> - simple processing of data in tables, or execution of code blocks with
>>   the output captured in the buffer
>
> What format do you have in mind for these? I'd be glad to work on R examples.

I was thinking these would take the form of .org files with the
explanatory text and the actual source code, we could then export them
to HTML and post that up on Worg, and we could also share the raw .org
files from Worg.

R examples would be great.

I think the most important languages to do up front (i.e. those
languages with the most potential users) would be R, python, shell,
emacs-lisp, and ruby (although my guesses at popularity could be wrong).

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


Re: [Orgmode] Google CL and org-mode

2010-07-05 Thread Daniel Mahler
On Mon, Jul 5, 2010 at 11:54 PM, Eric S Fraga  wrote:
> On Mon, 5 Jul 2010 17:10:55 +0200, Daniel Mahler  wrote:
>>
>> Hi,
>>
>> Have you looked at g-client?
>
> Thanks.  I did look at g-client a long time ago.  It should provide
> everything we need but it's much more than I want to even start
> considering...  I just don't have the time unfortunately.
>
> The google command line scripts, on the other hand, are
> straightforward and will give me (others?) 90% of the functionality I
> want.
>
> Mind you, I've been playing a bit and Google's "quick add" syntax
> leaves a bit to be desired.  There's no formal specification and it
> doesn't quite work, especially trying to get a repeated entry at a
> given time of day.
>

GoogleCL is actually a rather thin wrapper around the gdata python
client library,
which essentially just adds the commandline processing.
Maybe the way to go is to call gdata directly via pymacs.

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


meta model for literate programming [pdf] Re: [Orgmode] hypermedia programming with babel

2010-07-05 Thread David O'Toole
An interesting paper!

http://www.cosc.canterbury.ac.nz/research/reports/HonsReps/1999/hons_9902.pdf

On Mon, Jul 5, 2010 at 4:15 PM, Eric Schulte  wrote:

> Hi David,
>
> "David O'Toole"  writes:
>
> > Since discovering org babel, I've been doing a lot of reading and
> > brainstorming, and have collected some thoughts/code/plans in several
> > places:
> >
> >  1. http://github.com/dto/org-babel-lisp
> >
> > Some very basic compatibility. I'm not experienced enough with either
> > babel or slime, perhaps someone can help me flesh this code out. I
> > have papers on file with FSF, please feel free to take
> > org-babel-lisp.el and do whatever you want.
> >
>
> This looks like a good start, you could look to ob-clojure.el for an
> example of a slime-driven lisp Babel file.
> http://repo.or.cz/w/org-mode.git/blob_plain/HEAD:/lisp/ob-clojure.el
>
> >
> >  2. http://github.com/dto/hypo
> >
> > My thoughts and some code toward a reproducible-results sort of digital
> > asset management system, with relevance to games.
> > Github's formatter messes it up. To read the raw file, use this link:
> > http://github.com/dto/hypo/raw/master/hypo.org
> >
> > I've made TODO items for the icons discussion. I want to be able to
> > define/contribute my own competing theme.
>
> That looks like a great application for literate programming.  It might
> be nice to link to this project from the Babel uses page at
> http://orgmode.org/worg/org-contrib/babel/uses.php
>
> > How can I help next?
>
> Babel in general is in need of some language-specific introductory
> tutorials, with the goal of laying out the basic usage plenty of
> examples covering simple use case e.g.
> - author a shell script which can be tangled out to an executable
> - simple processing of data in tables, or execution of code blocks with
>  the output captured in the buffer
>
> There is also plenty of room for help with documentation, testing,
> etc...
>
> 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


Re: [Orgmode] Google CL and org-mode

2010-07-05 Thread Eric S Fraga
On Mon, 5 Jul 2010 17:10:55 +0200, Daniel Mahler  wrote:
> 
> Hi,
> 
> Have you looked at g-client?

Thanks.  I did look at g-client a long time ago.  It should provide
everything we need but it's much more than I want to even start
considering...  I just don't have the time unfortunately.

The google command line scripts, on the other hand, are
straightforward and will give me (others?) 90% of the functionality I
want.

Mind you, I've been playing a bit and Google's "quick add" syntax
leaves a bit to be desired.  There's no formal specification and it
doesn't quite work, especially trying to get a repeated entry at a
given time of day.
-- 
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: Bug: Items with repeating timestamps don't appear in the agenda [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Carsten Dominik

Hi Bernt,

thanks, I have reverted the commit.  Too bad it is not working.

- Carsten


On Jul 5, 2010, at 11:16 PM, Bernt Hansen wrote:


Bernt Hansen  writes:


Oh!  It's not that the future dates are missing it's the entry for
_today_ that is missing.  So yes my commit breaks this and I'll get  
it

reverted.



Hi Carsten,

Please revert the following commit.  It's my second failed attempt at
fixing this issue.

I think I'll just leave it alone for now.  I'd rather have the agenda
display all entries as it does now than miss cyclic repeating entries
for today.

,
| commit 516640aff96b627d8ad412f6cdb436535600aff0
| Author: Bernt Hansen 
| Date:   Wed Jun 23 02:40:16 2010 +
|
| Fix agenda display for late scheduled and deadline tasks
|
| * lisp/org.el (org-time-string-to-absolute): Ignore cyclic  
repeater

| when displaying items on todays agenda date.
|
| Ignore the cyclic repeater when displaying items on today's  
agenda
| date.  If you have a weekly task and miss the date the agenda  
view

| will show more than a week late now instead of resetting on the
| cyclic repeating date.  This makes it much more obvious when you
| missed a repeating task after the repeater.
`

Thanks,
Bernt


- 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: Items with repeating timestamps don't appear in the agenda [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Bernt Hansen
Bernt Hansen  writes:

> Oh!  It's not that the future dates are missing it's the entry for
> _today_ that is missing.  So yes my commit breaks this and I'll get it
> reverted.
>

Hi Carsten,

Please revert the following commit.  It's my second failed attempt at
fixing this issue.

I think I'll just leave it alone for now.  I'd rather have the agenda
display all entries as it does now than miss cyclic repeating entries
for today.

,
| commit 516640aff96b627d8ad412f6cdb436535600aff0
| Author: Bernt Hansen 
| Date:   Wed Jun 23 02:40:16 2010 +
| 
| Fix agenda display for late scheduled and deadline tasks
| 
| * lisp/org.el (org-time-string-to-absolute): Ignore cyclic repeater
| when displaying items on todays agenda date.
| 
| Ignore the cyclic repeater when displaying items on today's agenda
| date.  If you have a weekly task and miss the date the agenda view
| will show more than a week late now instead of resetting on the
| cyclic repeating date.  This makes it much more obvious when you
| missed a repeating task after the repeater.
`

Thanks,
Bernt

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


[Orgmode] Re: Bug: Items with repeating timestamps don't appear in the agenda [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Bernt Hansen
Tassilo Horn  writes:

> Hi again, Bernt!
>
> I did some debugging.

Thanks.  Sorry I've been tied up with work today.

> The reason that the repeating events are not shown is that
> `org-agenda-get-timestamps' doesn't return those repeater events,
> because when it iterates over all timestamps of a file, the test in
> the following `if' always returns t and so we are skipping.
>
> --8<---cut here---start->8---
>   (catch :skip
> (and (org-at-date-range-p) (throw :skip nil))
> (org-agenda-skip)
> (if (and (match-end 1)
>  (not (= d1 (org-time-string-to-absolute
>  (match-string 1) d1 nil
>  org-agenda-repeating-timestamp-show-all
> (throw :skip nil))
> --8<---cut here---end--->8---
>
> This happens, because `org-time-string-to-absolute' returns the first
> date (the literally written date), not the closest repeating date.
>
> For example, for "<2010-06-28 Mon 22:00 +1w>" (last week's Monday) that
> function returns 733951, although it should return 733958 (last week's
> Monday + 7 days = today), I guess.
>
> The underlined predicate looks suspicious to me:
>
> --8<---cut here---start->8---
> (defun org-time-string-to-absolute (s &optional daynr prefer show-all)
>   "Convert a time stamp to an absolute day number.
> If there is a specifyer for a cyclic time stamp, get the closest date to
> DAYNR.
> PREFER and SHOW-ALL are passed through to `org-closest-date'.
> the variable date is bound by the calendar when this is called."
>   (let ((today (calendar-absolute-from-gregorian (calendar-current-date
> (cond
>  ((and daynr (string-match "\\`%%\\((.*)\\)" s))
>   (if (org-diary-sexp-entry (match-string 1 s) "" date)
>   daynr
> (+ daynr 1000)))
>  ((and daynr (not (eq daynr today)) (string-match "\\+[0-9]+[dwmy]" s))
>  ^^
>(org-closest-date s (if (and (boundp 'daynr) (integerp daynr)) daynr
>  (time-to-days (current-time))) (match-string 0 s)
>  prefer show-all))
>   (t (time-to-days (apply 'encode-time (org-parse-time-string s)))
> --8<---cut here---end--->8---
>
> Why shouldn't that case trigger when daynr is today?  In that case, we
> don't even look at the timestamp s...

This change was my second attempt at fixing the scheduled display when a
weekly TODO entry is missed (ie it's over a week late already).  The
agenda display.  For the case where we're displaying the scheduled date
for today's agenda I wanted it to reflect how many days late the task is
instead of rolling over on the cyclic repeater.

I don't (yet) understand why your example works on my agenda but not
yours ...

Oh!  It's not that the future dates are missing it's the entry for
_today_ that is missing.  So yes my commit breaks this and I'll get it
reverted.

Thanks for reporting this issue!

Regards,
Bernt

>
> I deleted the whole underlined predicate, and then the agenda works
> again for me.
>
> 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] diary-float and TODO entries

2010-07-05 Thread Greg Troxel

I have successfully used repeating times on TODO entries, and seen the
scheduled time move forward when I do C-c C-t d (d is my DONE shortcut).
I have a meeting on the 2nd monday of each month and am responsible for
inviting people ahead of time, and I've picked the first monday for
that.  I think I have to use a diary-mode expression, and the SCHEDULED:
time and event time below work ok.  But when I set the todo to DONE it
goes to DONE, instead of auto-changing back to TODO for the next month.

Is there some reasonable way to do what I want?


** FOO
*** TODO Announce meeting
SCHEDULED: <%%(diary-float t 1 1)>
*** FOO meeting
<%%(diary-float t 1 2)>


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


Re: [Orgmode] hypermedia programming with babel

2010-07-05 Thread Erik Iverson





How can I help next?


Babel in general is in need of some language-specific introductory
tutorials, with the goal of laying out the basic usage plenty of
examples covering simple use case e.g.
- author a shell script which can be tangled out to an executable
- simple processing of data in tables, or execution of code blocks with
  the output captured in the buffer


What format do you have in mind for these? I'd be glad to work on R examples.

___
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] tabular logging of values in habits and other repeating tasks

2010-07-05 Thread Darlan Cavalcante Moreira

What I though is something like the task below
--8<---cut here---start->8---
* TODO Running
  :PROPERTIES:
  :STYLE:habit
  :END:

  | Date | Place| Distance |
  |--+--+--|
  | [2010-07-03 Sáb] | Park Something   | 6km  |
  | [2010-07-05 Seg] | Some other place | 5km  |
--8<---cut here---end--->8---

You then create a template that adds a line after the hline in the
table. That way the most recent completed task would be in the top.

Whenever you do the task you call org-capture with the template to add a
new line to the table and then mark the task as done. It is true that
adding the line and marking the task as done are not a "single thing", but
with org-capture you can add a line to the table from any buffer without
needing to go until the task heading and the table keeps everything more
organized.

Also, you can give this table a name and do whatever you want with it using
org babel super powers. You could easily calculate the mean distance that
you run, the variance, maybe even plot the distances that you run in each
day (there is probably a way to use the inactive timestamps as values for
the x axis). This would not be possible if you store the information as
notes in the task.

--
Darlan


At Mon, 5 Jul 2010 11:31:59 -0700,
Michael Gilbert  wrote:
> 
> On Jul 5,2010, at 2:01 AM, Darlan Cavalcante Moreira wrote:
> 
> > You can create a table in the task and possibly a template (with org
> > capture) to easily add a new line to this table. Whenever you complete the
> > task you add the information to the table and mark the task as DONE. An
> > advantage of this is that you can use the org-babel powers to make whatever
> > you want with the information.
> 
> Thank you, Darlan — that is more or less what I thought. But here's the thing 
> (which betrays by rather shallow understanding of org-mode at this point):  I 
> know how to create such a table. But what I don't know is how to get the 
> prompt to enter a new row. The notes function for tasks that are marked done 
> don't navigate you to a previously defined block of text, if I'm not 
> mistaken. So, there would be a lot of hand-navigation to make each entry. 
> Perhaps Im misunderstanding something, but I am seeking the ease of use of 
> the notes prompt, but with each new entry being not a separate note, but a 
> row in that table. Thoughts?
> 
> — Michael
> 
> 
> 
> > At Mon, 5 Jul 2010 00:46:38 -0700,
> > Michael Gilbert  wrote:
> >> 
> >> performed.
> >> 
> >> In general, I am trying to break my ties to a number of simpler
> >> data-logging tools (web apps, text files) and just centralize this into
> >> Org-Mode where it belongs.
> >> 
> >> Any advice?
> 
> 

___
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] hypermedia programming with babel

2010-07-05 Thread David O'Toole
Hi Eric,

Thanks for the additional info. I'll keep you informed on my progress---I'll
be presenting my "paper" for the Lisp Games Expo (see
http://dto.github.com/notebook/2010expo.html

About linking from the Uses section on the babel page... Should I make a
page for the program, or can you just link to my current repo? Either way,
it's not quite ready for being on the webpage :) but I see it as a
discussion topic here.

Do others have thoughts or experiences with multimedia and babel or org?

On Mon, Jul 5, 2010 at 4:15 PM, Eric Schulte  wrote:

> Hi David,
>
> "David O'Toole"  writes:
>
> > Since discovering org babel, I've been doing a lot of reading and
> > brainstorming, and have collected some thoughts/code/plans in several
> > places:
> >
> >  1. http://github.com/dto/org-babel-lisp
> >
> > Some very basic compatibility. I'm not experienced enough with either
> > babel or slime, perhaps someone can help me flesh this code out. I
> > have papers on file with FSF, please feel free to take
> > org-babel-lisp.el and do whatever you want.
> >
>
> This looks like a good start, you could look to ob-clojure.el for an
> example of a slime-driven lisp Babel file.
> http://repo.or.cz/w/org-mode.git/blob_plain/HEAD:/lisp/ob-clojure.el
>
> >
> >  2. http://github.com/dto/hypo
> >
> > My thoughts and some code toward a reproducible-results sort of digital
> > asset management system, with relevance to games.
> > Github's formatter messes it up. To read the raw file, use this link:
> > http://github.com/dto/hypo/raw/master/hypo.org
> >
> > I've made TODO items for the icons discussion. I want to be able to
> > define/contribute my own competing theme.
>
> That looks like a great application for literate programming.  It might
> be nice to link to this project from the Babel uses page at
> http://orgmode.org/worg/org-contrib/babel/uses.php
>
> > How can I help next?
>
> Babel in general is in need of some language-specific introductory
> tutorials, with the goal of laying out the basic usage plenty of
> examples covering simple use case e.g.
> - author a shell script which can be tangled out to an executable
> - simple processing of data in tables, or execution of code blocks with
>  the output captured in the buffer
>
> There is also plenty of room for help with documentation, testing,
> etc...
>
> 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


Re: [Orgmode] Code block switches buffer-wide?

2010-07-05 Thread Rainer M Krug
On Mon, Jul 5, 2010 at 10:34 PM, Rainer M Krug  wrote:

>
>
> On Mon, Jul 5, 2010 at 6:06 PM, Carsten Dominik  > wrote:
>
>>
>> On Jul 2, 2010, at 2:47 PM, Rainer M Krug wrote:
>>
>>  Hi
>>>
>>> I would like to include the -n code block switch (number lines) into all
>>> my code blocks in a buffer. Is there a way to define a kind of buffer-wide
>>> switches, like it is with the #+BABEL keyword for header arguments?
>>>
>>
>> No, there currently is not.
>>
>
> That's a petty.
>

Should have been pity



>
> thanks,
>
> Rainer
>
>
>>
>> - Carsten
>>
>>
>>> Thanks,
>>>
>>> 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
>>>
>>
>> - Carsten
>>
>>
>>
>>
>
>
> --
> 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
>
>


-- 
NEW GERMAN FAX NUMBER!!!

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

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

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

Skype:  RMkrug
Google: r.m.k...@gmail.com
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Code block switches buffer-wide?

2010-07-05 Thread Rainer M Krug
On Mon, Jul 5, 2010 at 6:06 PM, Carsten Dominik
wrote:

>
> On Jul 2, 2010, at 2:47 PM, Rainer M Krug wrote:
>
>  Hi
>>
>> I would like to include the -n code block switch (number lines) into all
>> my code blocks in a buffer. Is there a way to define a kind of buffer-wide
>> switches, like it is with the #+BABEL keyword for header arguments?
>>
>
> No, there currently is not.
>

That's a petty.

thanks,

Rainer


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


-- 
NEW GERMAN FAX NUMBER!!!

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

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

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

Skype:  RMkrug
Google: r.m.k...@gmail.com
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Crash of emacs when using SHIFT-TAB

2010-07-05 Thread Rainer M Krug
On Mon, Jul 5, 2010 at 7:40 PM, Jason Dunsmore wrote:

> Carsten Dominik  writes:
>
> >> Hi
> >>
> >> my emacs is crashing quite regularly when I am using org-babel. Is
> >> there a way to get a traceback or something similar which I could
> >> submit to get an idea what is causing it?
> >
> > I think this has probably nothing to do with org-babel.  More likely,
> > you are using org-indent-mode, on an Emacs version where it does not
> > work.  Check the Org manual for the exact version of Emacs you need.
>
> I was bitten by this same bug.  I narrowed it down to org-indent, but I
> had no idea I should look in the manual to see which version of emacs
> org-indent was compatible with.
>
> Here's a patch that will make emacs display an error if org-indent is
> loaded with an incompatible version of emacs:
>
> --8<---cut here---start->8---
> diff --git a/lisp/org-indent.el b/lisp/org-indent.el
> index 77411af..0ef8456 100644
> --- a/lisp/org-indent.el
> +++ b/lisp/org-indent.el
> @@ -131,6 +131,18 @@ FIXME:  How to update when broken?"
>   (setq org-indent-mode nil)
> (if org-indent-mode
>(progn
> +  (destructuring-bind (maj min bld)
> +  (mapcar 'string-to-number (split-string emacs-version
> "[.]"))
> +(let ((msg "Emacs 23.1.50.3 or greater is recommended for
> org-indent
> +  (when (< maj 23)
> +(display-warning 'org msg :warning))
> +  (when (= maj 23)
> +(unless (>= bld 50)
> +  (display-warning 'org msg :warning)))
> +  (when (and (= maj 23)
> + (= bld 50))
> +(unless (>= min 1)
> +  (display-warning 'org msg :warning)
>  (org-set-local 'indent-tabs-mode nil)
>  (or org-indent-strings (org-indent-initialize))
>  (when org-indent-mode-turns-off-org-adapt-indentation
> --8<---cut here---end--->8---
>
> Perhaps this would be better as a separate function:
>
> --8<---cut here---start->8---
> (defun org-version-check (version feature level)
>  (destructuring-bind (rmaj rmin rbld)
>  (mapcar 'string-to-number (split-string version "[.]"))
>(destructuring-bind (maj min bld)
>(mapcar 'string-to-number (split-string emacs-version "[.]"))
>  (let ((msg (format "Emacs %s or greater is recommended for %s" version
> feature)))
>(when (< maj rmaj)
>  (display-warning 'org msg level))
>(when (= maj rmaj)
>  (unless (>= min rmin)
>(display-warning 'org msg level)))
>(when (and (= maj rmaj)
>   (= min rmin))
>  (unless (>= bld rbld)
>(display-warning 'org msg level)))
> --8<---cut here---end--->8---
>
> It could then be called with:
>
> (org-version-check "23.1.50" "org-indent" :warning)
>
> I made it display a warning because org-indent seems to work almost
> perfectly with the version of emacs I'm running (23.1.1).
>

I think that is a brilliant idea, especially as the repositories from ubuntu
do not yet include emacs 23.2.

Cheers,

Rainer


> Regards,
> Jason
>
> ___
> 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] Re: Bug: Items with repeating timestamps don't appear in the agenda [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Tassilo Horn
Hi again, Bernt!

I did some debugging.  The reason that the repeating events are not
shown is that `org-agenda-get-timestamps' doesn't return those repeater
events, because when it iterates over all timestamps of a file, the test
in the following `if' always returns t and so we are skipping.

--8<---cut here---start->8---
  (catch :skip
(and (org-at-date-range-p) (throw :skip nil))
(org-agenda-skip)
(if (and (match-end 1)
 (not (= d1 (org-time-string-to-absolute
 (match-string 1) d1 nil
 org-agenda-repeating-timestamp-show-all
(throw :skip nil))
--8<---cut here---end--->8---

This happens, because `org-time-string-to-absolute' returns the first
date (the literally written date), not the closest repeating date.

For example, for "<2010-06-28 Mon 22:00 +1w>" (last week's Monday) that
function returns 733951, although it should return 733958 (last week's
Monday + 7 days = today), I guess.

The underlined predicate looks suspicious to me:

--8<---cut here---start->8---
(defun org-time-string-to-absolute (s &optional daynr prefer show-all)
  "Convert a time stamp to an absolute day number.
If there is a specifyer for a cyclic time stamp, get the closest date to
DAYNR.
PREFER and SHOW-ALL are passed through to `org-closest-date'.
the variable date is bound by the calendar when this is called."
  (let ((today (calendar-absolute-from-gregorian (calendar-current-date
(cond
 ((and daynr (string-match "\\`%%\\((.*)\\)" s))
  (if (org-diary-sexp-entry (match-string 1 s) "" date)
  daynr
(+ daynr 1000)))
 ((and daynr (not (eq daynr today)) (string-match "\\+[0-9]+[dwmy]" s))
 ^^
   (org-closest-date s (if (and (boundp 'daynr) (integerp daynr)) daynr
 (time-to-days (current-time))) (match-string 0 s)
 prefer show-all))
  (t (time-to-days (apply 'encode-time (org-parse-time-string s)))
--8<---cut here---end--->8---

Why shouldn't that case trigger when daynr is today?  In that case, we
don't even look at the timestamp s...

I deleted the whole underlined predicate, and then the agenda works
again for me.

Bye,
Tassilo


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


Re: [Orgmode] org-capture-templates : should symbols work as a file target ?

2010-07-05 Thread David Maus
Julien Fantin wrote:
>Hi folks,

>I'v been trying to setup an org-capture template using a symbol as the file
>target, but this raises an error.
>Someone on IRC mentionned this is probably a bug, but I'm not experienced
>enough to be sure I'm not simply misusing it...


>Here is the bit of config in question:


>** Templates
>#+BEGIN_SRC emacs-lisp
>(setq org-capture-templates
>   `(
>("t" "Task" entry
> (file+headline  organizer "Tasks")
> "* TODO %?\n%U")

>("j" "Journal" entry
> (file+datetree "~/org/journal.org")
> "* %?\nEntered on %U\n %i\n %a")
>))
>#+END_SRC

You already backquote the template list so you've just to but the
special marker , (comma) in front of organizer and it gets evaluated.

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


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


Re: [Orgmode] hypermedia programming with babel

2010-07-05 Thread Eric Schulte
Hi David,

"David O'Toole"  writes:

> Since discovering org babel, I've been doing a lot of reading and
> brainstorming, and have collected some thoughts/code/plans in several
> places:
>
>  1. http://github.com/dto/org-babel-lisp
>
> Some very basic compatibility. I'm not experienced enough with either
> babel or slime, perhaps someone can help me flesh this code out. I
> have papers on file with FSF, please feel free to take
> org-babel-lisp.el and do whatever you want.
>

This looks like a good start, you could look to ob-clojure.el for an
example of a slime-driven lisp Babel file.
http://repo.or.cz/w/org-mode.git/blob_plain/HEAD:/lisp/ob-clojure.el

>
>  2. http://github.com/dto/hypo
>
> My thoughts and some code toward a reproducible-results sort of digital
> asset management system, with relevance to games.
> Github's formatter messes it up. To read the raw file, use this link:
> http://github.com/dto/hypo/raw/master/hypo.org
>
> I've made TODO items for the icons discussion. I want to be able to
> define/contribute my own competing theme.

That looks like a great application for literate programming.  It might
be nice to link to this project from the Babel uses page at
http://orgmode.org/worg/org-contrib/babel/uses.php

> How can I help next?

Babel in general is in need of some language-specific introductory
tutorials, with the goal of laying out the basic usage plenty of
examples covering simple use case e.g.
- author a shell script which can be tangled out to an executable
- simple processing of data in tables, or execution of code blocks with
  the output captured in the buffer

There is also plenty of room for help with documentation, testing,
etc...

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] org-capture-templates : should symbols work as a file target ?

2010-07-05 Thread Julien Fantin
Hi folks,

I'v been trying to setup an org-capture template using a symbol as the file
target, but this raises an error.
Someone on IRC mentionned this is probably a bug, but I'm not experienced
enough to be sure I'm not simply misusing it...


Here is the bit of config in question:


* Files
#+BEGIN_SRC emacs-lisp
(setq org-directory  (concat (getenv "HOME") "/org/"))
(setq organizer (concat org-directory "organizer.org"))
#+END_SRC

* Capture
#+BEGIN_SRC emacs-lisp
(setq org-default-notes-files organizer)
#+END_SRC

** Templates
#+BEGIN_SRC emacs-lisp
(setq org-capture-templates
   `(
("t" "Task" entry
 (file+headline  organizer "Tasks")
 "* TODO %?\n%U")

("j" "Journal" entry
 (file+datetree "~/org/journal.org")
 "* %?\nEntered on %U\n %i\n %a")
))
#+END_SRC


Which results in the following message when the first template is selected
 after executing org-capture:

org-find-base-buffer-visiting: Wrong type argument: stringp, organizer

So is this actually a bug ?
If not, could anyone enlighten me as to how I could manage to reuse this
'organizer in the form ?

Cheers !
___
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: Items with repeating timestamps don't appear in the agenda [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Bernt Hansen
Tassilo Horn  writes:

> Tassilo Horn  writes:
>
> Hi again,
>
>>> This works for me in both
>>>
>>> GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09 on 
>>> raven, modified by Debian
>>> Org-mode version 6.36trans (release_6.36.509.g9e9b)
>>>
>>> and 
>>>
>>> GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1,
>>> Org-mode version 6.36trans (release_6.36.509.g9e9b)
>>
>> I use
>>
>> GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of
>> 2010-06-29 on thinkpad
>>
>> and the current org git HEAD.
>
> Now I tried Emacs 23.2, and the problem still persists.  Did you do a
> "make clean" before "make" in org to exclude the possibility of having
> old (but working) *.elc files around?

I have no .elc files - I run directly from the source files (which
greatly simplifies jumping around on different commits when I'm trying
things)

Does reverting that commit locally fix it for you?

Do I understand the problem correctly?  If I use your example entry (by
sticking it at a level 1 task in my refile.org and doing v m in the
agenda to show all entries for the month I see the future entries in my
agenda but you don't?

I'm confused.

-Bernt

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


[Orgmode] [PATCH] Don't create marker if target is entire file.

2010-07-05 Thread David Maus
* org-agenda.el (org-agenda-bulk-action): Don't create marker for
position if target is entire file.

If the target of a bulk refile operation is the entire file,
`org-refile-get-location' returns nil for the refile position.
Creating a marker for the target file's buffer at position nil returns
a marker that points nowhere (Cf. GNU Emacs Lisp Reference Manual,
31.6).  `org-refile' adds headings to level 1 if the target position
for the target file is nil -- and hence a marker that points nowhere
is not nil, tries to jump to nowhere.
---
 lisp/org-agenda.el |   11 ++-
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 4345f06..1fe4639 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7489,11 +7489,12 @@ The prefix arg is passed through to the command if 
possible."
   "Refile to: "
   (marker-buffer (car org-agenda-bulk-marked-entries))
   org-refile-allow-creating-parent-nodes))
-  (setcar (nthcdr 3 rfloc)
- (move-marker (make-marker) (nth 3 rfloc)
-  (or (get-file-buffer (nth 1 rfloc))
-  (find-buffer-visiting (nth 1 rfloc))
-  (error "This should not happen"
+  (if (nth 3 rfloc)
+ (setcar (nthcdr 3 rfloc)
+ (move-marker (make-marker) (nth 3 rfloc)
+  (or (get-file-buffer (nth 1 rfloc))
+  (find-buffer-visiting (nth 1 rfloc))
+  (error "This should not happen")
 
   (setq cmd (list 'org-agenda-refile nil (list 'quote rfloc) t)
redo-at-end 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] tabular logging of values in habits and other repeating tasks

2010-07-05 Thread Michael Gilbert
On Jul 5,2010, at 2:01 AM, Darlan Cavalcante Moreira wrote:

> You can create a table in the task and possibly a template (with org
> capture) to easily add a new line to this table. Whenever you complete the
> task you add the information to the table and mark the task as DONE. An
> advantage of this is that you can use the org-babel powers to make whatever
> you want with the information.

Thank you, Darlan — that is more or less what I thought. But here's the thing 
(which betrays by rather shallow understanding of org-mode at this point):  I 
know how to create such a table. But what I don't know is how to get the prompt 
to enter a new row. The notes function for tasks that are marked done don't 
navigate you to a previously defined block of text, if I'm not mistaken. So, 
there would be a lot of hand-navigation to make each entry. Perhaps Im 
misunderstanding something, but I am seeking the ease of use of the notes 
prompt, but with each new entry being not a separate note, but a row in that 
table. Thoughts?

— Michael



> At Mon, 5 Jul 2010 00:46:38 -0700,
> Michael Gilbert  wrote:
>> 
>> performed.
>> 
>> In general, I am trying to break my ties to a number of simpler
>> data-logging tools (web apps, text files) and just centralize this into
>> Org-Mode where it belongs.
>> 
>> Any advice?



___
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] [Update Config] Babel changes -- security updates and final integration push

2010-07-05 Thread Eric Schulte
Hi,

I've just merged a large set of Babel related security measures and
layout/initialization updates into the master branch of the git
repository.

These changes will require existing babel users to update their
configuration, see the following instructions for details -- even if you
think you've read similar instructions before these are worth reading.
http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html

>From here on out Babel development in the master branch will settle down
along with the rest of the current Org-mode feature freeze.

Thanks -- Eric

please reply to this email with any question or problems you encounter,
a text export of the contents of the web page linked above is provided
below.

DONE document configuration changes for Babel integration 
==
Babel took the integration into Org-mode as an opportunity to do
some much needed house cleaning.  Most importantly we have
simplified the enabling of language support, and cleared out
unnecessary configuration variables -- which is great unless you
already have a working configuration under the old model.

The most important changes regard the /location/ and /enabling/
of Babel (both core functionality and language specific support).

Babel: Babel is now part of the core of Org-mode, so it is
 now loaded along with the rest of Org-mode.  That means that
 there is /no configuration/ required to enable the main
 Babel functionality.  For current users, this means that
 statements like

 (require 'org-babel)

 or

 (require 'org-babel-init)

 that may by lying around in your configuration must now be
 removed.

load path: Babel (including all language specific files --
 aside from those which are located in the =contrib/=
 directory for reasons of licencing) now lives in the base of
 the Org-mode lisp directory, so /no additional directories/
 need to be added to your load path to use babel.  For Babel
 users this means that statements adding babel-specific
 directories to your load-path should now be removed from
 your config.

language support: It is no longer necessary to require
 language specific support on a language-by-language basis.
 Specific language support should now be managed through the
 `org-babel-load-languages' variable.  This variable can be
 customized using the Emacs customization interface, or
 through the addition of something like the following to your
 configuration (note: any language not mentioned will /not/
 be enabled, aside from =emacs-lisp= which is enabled by
 default)

 (org-babel-do-load-languages
  'org-babel-load-languages
  '((R . t)
(ditaa . t)
(dot . t)
(emacs-lisp . t)
(gnuplot . t)
(haskell . nil)
(ocaml . nil)
(python . t)
(ruby . t)
(screen . nil)
(sh . t)
(sql . nil)
(sqlite . t)))
 
 Despite this change it is still possible to add
 language support through the use of =require=
 statements, however to conform to Emacs file-name
 regulations all Babel language files have changed
 prefix from =org-babel-*= to =ob-*=, so the require
 lines must also change e.g.

 (require 'org-babel-R)

 should be changed to

 (require 'ob-R)

We have eliminated the =org-babel-tangle-w-comments= variable as
well as the two main internal lists of languages, namely
- =org-babel-interpreters= and
- =org-babel-tangle-langs= 

so any config lines which mention those variables, can/should be
stripped out in their entirety.  This includes any calls to the
=org-babl-add-interpreter= function, whose sole purpose was to
add languages to the =org-babel-interpreters= variable.

With those calls stripped out, we may still in some cases want to
associate a file name extension with certain languages, for
example we want all of our emacs-lisp files to end in a =.el=, we
can do this will the =org-babel-tangle-lang-exts= variable.  In
general you shouldn't need to touch this as it already has
defaults for most common languages, and if a language is not
present in org-babel-tangle-langs, then babel will just use the
language name, so for example a file of =c= code will have a =.c=
extension by default, shell-scripts (identified with =sh=) will
have a =.sh= extension etc...

The configuration of /shebang/ lines now lives in header
arguments.  So the shebang for a single file can be set at the
code block level, e.g.


  #+begin_src clojure :shebang #!/usr/bin/env clj
(println "with a shebang line, I can be run as a script!")
  #+end_src

Note that whenever a file is tangled which includes a /shebang/
line, Babel will make the file executable, so there is good
reason to only add /shebangs/ at the source-code block level.
However if you're sure that you want all of your code in some
language (say shell

Re: [Orgmode] Google CL and org-mode

2010-07-05 Thread Jordi Inglada
Hi,

I don't know if this is a good point of view, but since Google CL is
an "official" Google toolkit, I think it may more support and testing. 

When I tried to use g-client a while ago, I had some problems to get it
working and often times the connection with google services was not
robust (although I was using it from behind a proxy at the time).

Best regards,

Jordi

Daniel Mahler writes:
 > Hi,
 > 
 > Have you looked at g-client?
 > It is an elisp wrapper for the gdata APIs.
 > It comes with emacspeak,
 > but can be used independently.
 > I have not used either g-client or GoogleCL,
 > but wanted to make sure people are aware of all the options.
 > Having either integrated into org-mode would be nice
 > 
 > cheers
 > Daniel
 > 
 > On Mon, Jul 5, 2010 at 3:17 PM, Jordi Inglada
 >  wrote:
 > > Hi,
 > >
 > > Happy to hear that. Since I do not know Elisp, I can not help much,
 > > but I am willing to test any code available for this.
 > >
 > > Best regards,
 > >
 > > Jordi
 > >
 > >
 > > Eric S Fraga writes:
 > >  > Thanks for the heads-up on this.  This could be quite useful.  I've
 > >  > been playing recently with the org to google calendar interfacing and
 > >  > this new API could potentially simplify things significantly.
 > >
 > > ___
 > > Emacs-orgmode mailing list
 > > Please use `Reply All' to send replies to the list.
 > > Emacs-orgmode@gnu.org
 > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 > >

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


[Orgmode] Re: Bug: Items with repeating timestamps don't appear in the agenda [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Tassilo Horn
Tassilo Horn  writes:

Hi again,

>> This works for me in both
>>
>> GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09 on 
>> raven, modified by Debian
>> Org-mode version 6.36trans (release_6.36.509.g9e9b)
>>
>> and 
>>
>> GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1,
>> Org-mode version 6.36trans (release_6.36.509.g9e9b)
>
> I use
>
> GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of
> 2010-06-29 on thinkpad
>
> and the current org git HEAD.

Now I tried Emacs 23.2, and the problem still persists.  Did you do a
"make clean" before "make" in org to exclude the possibility of having
old (but working) *.elc files around?

Bye,
Tassilo


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


Re: [Orgmode] Google CL and org-mode

2010-07-05 Thread Eric S Fraga
On Mon, 5 Jul 2010 15:17:16 +0200, Jordi Inglada  
wrote:
> 
> Hi,
> 
> Happy to hear that. Since I do not know Elisp, I can not help much,
> but I am willing to test any code available for this.
> 
> Best regards,
> 
> Jordi
> 
> 
> Eric S Fraga writes:
>  > Thanks for the heads-up on this.  This could be quite useful.  I've
>  > been playing recently with the org to google calendar interfacing and
>  > this new API could potentially simplify things significantly.

I'll be sure to take you up on this ;-)

I've had a quick look at the command line interface.  With the simple
python scripts they provide, it will be straightforward, at least on
Linux, to upload entries from org to google's calendar.  The other way
is more tricky as the scripts don't provide full information on each
entry.  The APIs however might give that.

Stay tuned!
-- 
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: Crash of emacs when using SHIFT-TAB

2010-07-05 Thread Jason Dunsmore
Carsten Dominik  writes:

>> Hi
>>
>> my emacs is crashing quite regularly when I am using org-babel. Is
>> there a way to get a traceback or something similar which I could
>> submit to get an idea what is causing it?
>
> I think this has probably nothing to do with org-babel.  More likely,
> you are using org-indent-mode, on an Emacs version where it does not
> work.  Check the Org manual for the exact version of Emacs you need.

I was bitten by this same bug.  I narrowed it down to org-indent, but I
had no idea I should look in the manual to see which version of emacs
org-indent was compatible with.

Here's a patch that will make emacs display an error if org-indent is
loaded with an incompatible version of emacs:

--8<---cut here---start->8---
diff --git a/lisp/org-indent.el b/lisp/org-indent.el
index 77411af..0ef8456 100644
--- a/lisp/org-indent.el
+++ b/lisp/org-indent.el
@@ -131,6 +131,18 @@ FIXME:  How to update when broken?"
   (setq org-indent-mode nil)
 (if org-indent-mode
(progn
+  (destructuring-bind (maj min bld)
+  (mapcar 'string-to-number (split-string emacs-version "[.]"))
+(let ((msg "Emacs 23.1.50.3 or greater is recommended for 
org-indent 
+  (when (< maj 23)
+(display-warning 'org msg :warning))
+  (when (= maj 23)
+(unless (>= bld 50)
+  (display-warning 'org msg :warning)))
+  (when (and (= maj 23)
+ (= bld 50))
+(unless (>= min 1)
+  (display-warning 'org msg :warning)
  (org-set-local 'indent-tabs-mode nil)
  (or org-indent-strings (org-indent-initialize))
  (when org-indent-mode-turns-off-org-adapt-indentation
--8<---cut here---end--->8---

Perhaps this would be better as a separate function:

--8<---cut here---start->8---
(defun org-version-check (version feature level)
  (destructuring-bind (rmaj rmin rbld)
  (mapcar 'string-to-number (split-string version "[.]"))
(destructuring-bind (maj min bld)
(mapcar 'string-to-number (split-string emacs-version "[.]"))
  (let ((msg (format "Emacs %s or greater is recommended for %s" version
 feature)))
(when (< maj rmaj)
  (display-warning 'org msg level))
(when (= maj rmaj)
  (unless (>= min rmin)
(display-warning 'org msg level)))
(when (and (= maj rmaj)
   (= min rmin))
  (unless (>= bld rbld)
(display-warning 'org msg level)))
--8<---cut here---end--->8---

It could then be called with:

(org-version-check "23.1.50" "org-indent" :warning)

I made it display a warning because org-indent seems to work almost
perfectly with the version of emacs I'm running (23.1.1).

Regards,
Jason

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


Re: [Orgmode] Bug: Export error with images with no caption [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Eric Schulte
No problem, this should be fixed now.

Carsten Dominik  writes:

> Hi Eric,
>
> I guess you saw this?  Seems that this patch is missing a change in the
> definition of org-export-latex-format-image?
>
> You are calling it with 5 arguments, but the function accepts only
> 4.
> Sorry to have to add this to your plate.  Is everything going well?
>

very well,

I'm getting ready to merge the Babel safety changes into the master
branch, I mainly just want to write some instructions for updating Babel
config before I perform the merge.

Best -- Eric

>
> Cheers
>
> - Carsten
>
> On Jul 5, 2010, at 10:52 AM, Tassilo Horn wrote:
>
>>
>> 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.
>> 
>>
>> Since I updated my org version to the current git HEAD today, the org
>> latex export errors on image-links.  Here's a test document:
>>
>> --8<---cut here---start->8---
>> #+STARTUP: beamer
>> #+LaTeX_CLASS: beamer
>> #+TITLE: Test
>> #+AUTHOR: Tassilo Horn
>> #+EMAIL: f...@bar.de
>> #+LANGUAGE: de
>> #+BEAMER_FRAME_LEVEL: 2
>> #+LaTeX_CLASS_OPTIONS: [presentation]
>> #+BEAMER_HEADER_EXTRA: \usetheme{Madrid} \institute{IST, University
>> Koblenz}
>>
>> * Implementieren
>>
>> ** Abstract Factory (Erzeugungsmuster)
>>
>>   #+ATTR_LaTeX: height=0.85\textheight
>>   [[./abstract-factory.png]]
>> --8<---cut here---end--->8---
>>
>> The error backtrace is this:
>>
>> --8<---cut here---start->8---
>> Debugger entered--Lisp error: (wrong-number-of-arguments #[(path
>> caption label attr)
>> "\306\211\211\211\211\2112\206..3.\307\310\311.4#.5\203c.
>> 5;\203c.\312\313.5\"\203;.\314.\306.\315\316\314\211.5$. 
>> 5\312\317.5\"\203P.\306.\314.\315\316\314\211.5$.5\312\320.5\"\203c. 
>> \314.\315\316\314\211.5$.5\203k.\321\202t.\203s.\322\202t.\316.5\20
>> 3\227.5;\203\227.\312\323.5\"\203\227.\324\325.5\". 
>> \315\316\314\211.5$.5.5\205\240.\326.5!\211.5\203\256.5G\310U
>> \203\302.\203\266.\327\202\300.\203\276.\330\202\300.5.5\203\312.\
>> 331\202\333.
>> \203\322.\332\202\333.\203\332.\333\202\333.\334.\335\336\337\340\"\
>> 212\341\325!\210\342\343!\210\340\324\310!P)#.3\204.2\204.
>> \312\344\"\203.\315\316\314\211$.\345\346\347\350.4!\203.\351.4!
>> \202.4B\352.5B\353.6\2032.\354\355.6\"\2023.\316B\356.3\203B.
>> \354\357.3\"\202C.\316B\360.2\206K.\316B\361 \206R.\316B
>> \257.\"\306\311.$..\207" [figenv placement multicolumnp wrapp floatp
>> ind nil org-get-text-property-any 0 original-indentation string- 
>> match "[ ]*\\" t replace-match "" "[ ]*\\"
>> "[   ]*\
>> \" "{l}{0.5\\textwidth}" "[htb]" "[
>> ]*\\> (\\S-+\\)" match-string 1 org-trim "width=0.7\\textwidth"
>> "width=0.48\\textwidth" "\\begin{wrapfigure}%placement
>> \\centering
>> \\includegraphics[%attr]{%path}
>> \\caption%shortn{%labelcmd%caption}
>> \\end{wrapfigure}" "\\begin{figure*}%placement
>> \\centering
>> \\includegraphics[%attr]{%path}
>> \\caption{%labelcmd%caption}
>> \\end{figure*}" "\\begin{figure}%placement
>> \\centering
>> \\includegraphics[%attr]{%path}
>> \\caption{%labelcmd%caption}
>> \\end{figure}" "\\includegraphics[%attr]{%path}" mapconcat identity
>> split-string "
>> " beginning-of-line looking-at "[]*" "^caption{.*
>> " org-add-props org-fill-template "path" file-name-absolute-p
>> expand-
>> file-name "attr" "shortn" format "[%s]" "labelcmd" "\\label{%s}"
>> "caption" "placement" caption label path attr shortn] 11 ("/home/
>> horn/repos/el/org-mode/lisp/org-latex.elc" . 59858)] 5)
>>  org-export-latex-format-image(#("./abstract-factory.png" 0 22 (org-
>> no-description t org-protected t fontified nil org-category "impl-
>> integ-install" org-caption nil org-caption-shortn nil org-attributes
>> #("height=0.85\\textheight" 0 22 ...) org-label nil face org-link
>> org-attr nil)) nil nil #("height=0.85\\textheight" 0 22 (org- 
>> category "impl-integ-install" fontified nil)) nil)
>>  org-export-latex-links()
>>  org-export-latex-content(#("\n\n   [[./abstract-factory.png][./
>> abstract-factory.png]]\n\n" 0 2 (fontified nil org-category "impl-
>> integ-install") 2 5 (fontified nil org-category "impl-integ-install"
>> org-caption nil org-caption-shortn nil org-attributes
>> #("height=0.85\ \textheight" 0 22 ...) org-label nil) 5 7 (face
>> org-link) 7 29 (org- 
>> no-description t org-protected t fontified nil org-category "impl-
>> integ-install" org-caption nil org-caption-shortn nil org-attributes
>> #("height=0.85\\textheight" 0 22 ...) org-label nil face org-link)
>> 29 31 (face org-link) 31 53 (org-label nil org-attributes
>> #("height=0.85\\textheight" 0 22 ...) org-caption-shortn nil org- 
>> capt

Re: [Orgmode] Bug: Export error with images with no caption [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Carsten Dominik

Hi Eric,

I guess you saw this?  Seems that this patch is missing a change in the
definition of org-export-latex-format-image?

You are calling it with 5 arguments, but the function accepts only  
4.

Sorry to have to add this to your plate.  Is everything going well?

Cheers

- Carsten

On Jul 5, 2010, at 10:52 AM, Tassilo Horn wrote:



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.


Since I updated my org version to the current git HEAD today, the org
latex export errors on image-links.  Here's a test document:

--8<---cut here---start->8---
#+STARTUP: beamer
#+LaTeX_CLASS: beamer
#+TITLE: Test
#+AUTHOR: Tassilo Horn
#+EMAIL: f...@bar.de
#+LANGUAGE: de
#+BEAMER_FRAME_LEVEL: 2
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_HEADER_EXTRA: \usetheme{Madrid} \institute{IST, University  
Koblenz}


* Implementieren

** Abstract Factory (Erzeugungsmuster)

  #+ATTR_LaTeX: height=0.85\textheight
  [[./abstract-factory.png]]
--8<---cut here---end--->8---

The error backtrace is this:

--8<---cut here---start->8---
Debugger entered--Lisp error: (wrong-number-of-arguments #[(path  
caption label attr)  
"\306\211\211\211\211\211....2\206..3.\307\310\311.4#.5\203c. 
5;\203c.\312\313.5\"\203;.\314.\306.\315\316\314\211.5$. 
5\312\317.5\"\203P.\306.\314.\315\316\314\211.5$.5\312\320.5\"\203c. 
\314.\315\316\314\211.5$.5\203k.\321\202t.\203s.\322\202t.\316.5\20 
3\227.5;\203\227.\312\323.5\"\203\227.\324\325.5\". 
\315\316\314\211.5$.5.5\205\240.\326.5!\211.5\203\256.5G\310U 
\203\302.\203\266.\327\202\300.\203\276.\330\202\300.5.5\203\312.\ 
331\202\333.
\203\322.\332\202\333.\203\332.\333\202\333.\334.\335\336\337\340\"\ 
212\341\325!\210\342\343!\210\340\324\310!P)#.3\204.2\204. 
\312\344\"\203.\315\316\314\211$.\345\346\347\350.4!\203.\351.4! 
\202.4B\352.5B\353.6\2032.\354\355.6\"\2023.\316B\356.3\203B. 
\354\357.3\"\202C.\316B\360.2\206K.\316B\361	\206R.\316B 
\257.\"\306\311.$..\207" [figenv placement multicolumnp wrapp floatp  
ind nil org-get-text-property-any 0 original-indentation string- 
match "[ 	]*\\" t replace-match "" "[ 	]*\\" "[ 	]*\ 
\" "{l}{0.5\\textwidth}" "[htb]" "[ 	]*\\(\\S-+\\)" match-string 1 org-trim "width=0.7\\textwidth"  
"width=0.48\\textwidth" "\\begin{wrapfigure}%placement

\\centering
\\includegraphics[%attr]{%path}
\\caption%shortn{%labelcmd%caption}
\\end{wrapfigure}" "\\begin{figure*}%placement
\\centering
\\includegraphics[%attr]{%path}
\\caption{%labelcmd%caption}
\\end{figure*}" "\\begin{figure}%placement
\\centering
\\includegraphics[%attr]{%path}
\\caption{%labelcmd%caption}
\\end{figure}" "\\includegraphics[%attr]{%path}" mapconcat identity  
split-string "

" beginning-of-line looking-at "[ ]*" "^caption{.*
" org-add-props org-fill-template "path" file-name-absolute-p expand- 
file-name "attr" "shortn" format "[%s]" "labelcmd" "\\label{%s}"  
"caption" "placement" caption label path attr shortn] 11 ("/home/ 
horn/repos/el/org-mode/lisp/org-latex.elc" . 59858)] 5)
 org-export-latex-format-image(#("./abstract-factory.png" 0 22 (org- 
no-description t org-protected t fontified nil org-category "impl- 
integ-install" org-caption nil org-caption-shortn nil org-attributes  
#("height=0.85\\textheight" 0 22 ...) org-label nil face org-link  
org-attr nil)) nil nil #("height=0.85\\textheight" 0 22 (org- 
category "impl-integ-install" fontified nil)) nil)

 org-export-latex-links()
 org-export-latex-content(#("\n\n   [[./abstract-factory.png][./ 
abstract-factory.png]]\n\n" 0 2 (fontified nil org-category "impl- 
integ-install") 2 5 (fontified nil org-category "impl-integ-install"  
org-caption nil org-caption-shortn nil org-attributes #("height=0.85\ 
\textheight" 0 22 ...) org-label nil) 5 7 (face org-link) 7 29 (org- 
no-description t org-protected t fontified nil org-category "impl- 
integ-install" org-caption nil org-caption-shortn nil org-attributes  
#("height=0.85\\textheight" 0 22 ...) org-label nil face org-link)  
29 31 (face org-link) 31 53 (org-label nil org-attributes  
#("height=0.85\\textheight" 0 22 ...) org-caption-shortn nil org- 
caption nil org-category "impl-integ-install" fontified nil face org- 
link) 53 55 (face org-link) 55 57 (fontified nil org-category "impl- 
integ-install")))
 org-export-latex-subcontent(((pos . 1176) (level . 2) (occur . 3)  
(heading . #(" Abstract Factory (Erzeugungsmuster)" 1 36 ...))  
(content . #("\n\n   [[./abstract-factory.png][./abstract- 
factory.png]]\n\n" 0 2 ... 2 5 ... 5 7 ... 7 29 ... 29 31 ... 31  
53 ... 53 55 ... 55 57 ...)) (subcontent)) t)
 #[(x) "\302	\"\207" [x num org-export-latex-su

Re: [Orgmode] [PATCH] fixes typo in doc

2010-07-05 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Jul 2, 2010, at 11:49 AM, Giovanni Ridolfi wrote:



This patch fixes a typo in the capture documentation.
cheers,
Giovanni

--- org.texi2010-07-01 23:00:14.0 +0200
+++ org-gio.texi2010-07-02 11:45:44.035569700 +0200
@@ -6135,5 +6135,5 @@

@item :clock-resume
-If Starting the capture interrupted a clock, restart that clock  
when done
+If starting the capture interrupted a clock, restart that clock  
when done

with the capture.

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


- Carsten




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


Re: [Orgmode] Small doc fixes to org-feed.el and org-capture.el

2010-07-05 Thread Carsten Dominik

Applied, thanks.

- Carsten
On Jul 5, 2010, at 10:45 AM, Stephen Eglen wrote:








___
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] Code block switches buffer-wide?

2010-07-05 Thread Carsten Dominik


On Jul 2, 2010, at 2:47 PM, Rainer M Krug wrote:


Hi

I would like to include the -n code block switch (number lines) into  
all my code blocks in a buffer. Is there a way to define a kind of  
buffer-wide switches, like it is with the #+BABEL keyword for header  
arguments?


No, there currently is not.

- Carsten



Thanks,

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


- Carsten




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


Re: [Orgmode] Re: problem exporting an image to latex

2010-07-05 Thread Eric Schulte
Hi,

I've just pushed up the fix for this issue.  Sorry about the
inconvenience.

Best -- Eric

Tassilo Horn  writes:

> Hi Eric,
>
> I already reported that bug.  See the message
> <87tyoee2ev@thinkpad.tsdh.de>.
>
> 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

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


Re: [Orgmode] Bug: Export error with images with no caption [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Eric Schulte
The attached patch fixes this bug.

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index d725fc8..180c498 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -1894,7 +1894,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 	 (t (insert "\\texttt{" desc "}")))
 
 
-(defun org-export-latex-format-image (path caption label attr)
+(defun org-export-latex-format-image (path caption label attr &optional shortn)
   "Format the image element, depending on user settings."
   (let (ind floatp wrapp multicolumnp placement figenv)
 (setq floatp (or caption label))

Best -- Eric

Tassilo Horn  writes:

> 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.
> 
>
> Since I updated my org version to the current git HEAD today, the org
> latex export errors on image-links.  Here's a test document:
>
> #+STARTUP: beamer
> #+LaTeX_CLASS: beamer
> #+TITLE: Test
> #+AUTHOR: Tassilo Horn
> #+EMAIL: f...@bar.de
> #+LANGUAGE: de
> #+BEAMER_FRAME_LEVEL: 2
> #+LaTeX_CLASS_OPTIONS: [presentation]
> #+BEAMER_HEADER_EXTRA: \usetheme{Madrid} \institute{IST, University Koblenz}
>
> * Implementieren
>
> ** Abstract Factory (Erzeugungsmuster)
>
>#+ATTR_LaTeX: height=0.85\textheight
>[[./abstract-factory.png]]
>
> The error backtrace is this:
>
> Debugger entered--Lisp error: (wrong-number-of-arguments #[(path caption 
> label attr) 
> "\306\211\211\211\211\2112\206..3.\307\310\311.4#.5\203c.5;\203c.\312\313.5\"\203;.\314.\306.\315\316\314\211.5$.5\312\317.5\"\203P.\306.\314.\315\316\314\211.5$.5\312\320.5\"\203c.\314.\315\316\314\211.5$.5\203k.\321\202t.
> 
> \203s.\322\202t.\316.5\203\227.5;\203\227.\312\323.5\"\203\227.\324\325.5\".\315\316\314\211.5$.5.5\205\240.\326.5!\211.5\203\256.5G\310U\203\302.
> \203\266.\327\202\300.\203\276.\330\202\300.5.5\203\312.\331\202\333.
> \203\322.\332\202\333.
> \203\332.\333\202\333.\334.\335\336\337\340\"\212\341\325!\210\342\343!\210\340\324\310!P)#.3\204.2\204.\312\344\"\203.\315\316\314\211$.\345\346\347\350.4!\203.\351.4!\202.4B\352.5B\353.6\2032.\354\355.6\"\2023.\316B\356.3\203B.\354\357.3\"\202C.\316B\360.2\206K.\316B\361
>   \206R.\316B\257.\"\306\311.$..\207" [figenv placement multicolumnp 
> wrapp floatp ind nil org-get-text-property-any 0 original-indentation 
> string-match "[]*\\" t replace-match "" "[ ]*\\" 
> "[   ]*\\" "{l}{0.5\\textwidth}" "[htb]" "[   
> ]*\\ "width=0.48\\textwidth" "\\begin{wrapfigure}%placement
> \\centering
> \\includegraphics[%attr]{%path}
> \\caption%shortn{%labelcmd%caption}
> \\end{wrapfigure}" "\\begin{figure*}%placement
> \\centering
> \\includegraphics[%attr]{%path}
> \\caption{%labelcmd%caption}
> \\end{figure*}" "\\begin{figure}%placement
> \\centering
> \\includegraphics[%attr]{%path}
> \\caption{%labelcmd%caption}
> \\end{figure}" "\\includegraphics[%attr]{%path}" mapconcat identity 
> split-string "
> " beginning-of-line looking-at "[ ]*" "^caption{.*
> " org-add-props org-fill-template "path" file-name-absolute-p 
> expand-file-name "attr" "shortn" format "[%s]" "labelcmd" "\\label{%s}" 
> "caption" "placement" caption label path attr shortn] 11 
> ("/home/horn/repos/el/org-mode/lisp/org-latex.elc" . 59858)] 5)
>   org-export-latex-format-image(#("./abstract-factory.png" 0 22 
> (org-no-description t org-protected t fontified nil org-category 
> "impl-integ-install" org-caption nil org-caption-shortn nil org-attributes 
> #("height=0.85\\textheight" 0 22 ...) org-label nil face org-link org-attr 
> nil)) nil nil #("height=0.85\\textheight" 0 22 (org-category 
> "impl-integ-install" fontified nil)) nil)
>   org-export-latex-links()
>   org-export-latex-content(#("\n\n   
> [[./abstract-factory.png][./abstract-factory.png]]\n\n" 0 2 (fontified nil 
> org-category "impl-integ-install") 2 5 (fontified nil org-category 
> "impl-integ-install" org-caption nil org-caption-shortn nil org-attributes 
> #("height=0.85\\textheight" 0 22 ...) org-label nil) 5 7 (face org-link) 7 29 
> (org-no-description t org-protected t fontified nil org-category 
> "impl-integ-install" org-caption nil org-caption-shortn nil org-attributes 
> #("height=0.85\\textheight" 0 22 ...) org-label nil face org-link) 29 31 
> (face org-link) 31 53 (org-label nil org-attributes 
> #("height=0.85\\textheight" 0 22 ...) org-caption-shortn nil org-caption nil 
> org-category "impl-integ-install" fontified nil face org-link) 53 55 (face 
> org-link) 55 57 (fontified nil org-category "impl-integ-install")))
>   org-export-latex-subcontent(((pos . 1176) (level . 2) (occur . 3) (heading 
> . #(" Abstract Factory (Erzeugungsmuster)" 1 36 ...)) (content . #("\n\n   
> [[./abstract-factory.png][./abstract-factory.

Re: [Orgmode] Bug: logging & PROPERTIES [6.36trans]

2010-07-05 Thread Giovanni Ridolfi
Carsten Dominik  writes:

>> If I change the "todo-keyword" and write "WAIT", 'WAIT' reamins in a
>> plain font 
>
> THis is probably because you have neither configured org-todo-
> keywords, nor have you put a
>
> #+TODO: TODO WAIT | DONE CANCEL
>
> line into the buffer.  You need to tell Org mode what the todo
> keywords are.

I see. I found the documentation not so explicit.

Do you think the following patch will clarify the sentence?

cheers,
Giovanni

P.S. I sent a patch for the documentation, but Stephen Eglen sent a more
 complete patch, including also the typo I found.
Please reject or archive the patch
http://patchwork.newartisans.com/patch/106/

--- org.texi2010-07-05 17:22:17.923843200 +0200
+++ org-gio.texi2010-07-05 17:38:24.764091200 +0200
@@ -3775,5 +3775,6 @@
 
 @cindex property, LOGGING
-In order to define logging settings that are local to a subtree or a
+Once the TODO keywords have been set, in order to define logging 
+settings that are local to a subtree or a
 single item, define a LOGGING property in this entry.  Any non-empty
 LOGGING property resets all logging settings to nil.  You may then turn
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] patch for org mode

2010-07-05 Thread David Maus
Carsten Dominik wrote:
>Applied, thanks!

>On Jul 5, 2010, at 10:41 AM, Stephen Eglen wrote:

>> Here is a patch for the 'capture' section of org.texi .  I've added a
>> few lines of @comments:
>>
>> +...@comment SJE: Should be Org file or Org-mode file (see prev two
>> items)?

>I have no idea.  I like to be able to say Org file, so I just left it.

My authorative resource on this question
(docs/Documentation_Standards.org) says, that "Org file" is prefered, as
well is "Org mode" over "Org-mode".

Best,
  -- David

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


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


Re: [Orgmode] Bulk refile is not working as expected

2010-07-05 Thread David Maus
Noorul Islam K M wrote:
>I have couple of tasks in one of my org files which I want to re-file to
>some other org file.

>Both these files are in my agenda list. This is what I did.

>1. Go to agenda-view
>2. Navigate to both the tasks and use 'm' to mark them.
>3. 'B r' to bulk refile tasks
>4. The marked tasks disappears from Agenda View.

>But actually these tasks are not moved. One thing that I noticed is that
>the following message is getting displayed.

>org-agenda-refile: Marker does not point anywhere

>(org-version)
>release_6.36-109-g4f11
>Org-mode version 6.36trans (release_6.36.109.g4f11)

>Am I doing something different here or is it a bug?

I've reported a similar problem[1]; what did you set the variable
`org-refile-use-outline-path' set to?

[1] 
http://news.gmane.org/find-root.php?message_id=8739vzpqx1.wl%25dmaus%40ictsoc.de

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


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


Re: [Orgmode] Google CL and org-mode

2010-07-05 Thread Daniel Mahler
Hi,

Have you looked at g-client?
It is an elisp wrapper for the gdata APIs.
It comes with emacspeak,
but can be used independently.
I have not used either g-client or GoogleCL,
but wanted to make sure people are aware of all the options.
Having either integrated into org-mode would be nice

cheers
Daniel

On Mon, Jul 5, 2010 at 3:17 PM, Jordi Inglada
 wrote:
> Hi,
>
> Happy to hear that. Since I do not know Elisp, I can not help much,
> but I am willing to test any code available for this.
>
> Best regards,
>
> Jordi
>
>
> Eric S Fraga writes:
>  > Thanks for the heads-up on this.  This could be quite useful.  I've
>  > been playing recently with the org to google calendar interfacing and
>  > this new API could potentially simplify things significantly.
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

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


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

2010-07-05 Thread David Maus
Sebastian Rose wrote:
>>
>> I suppose a source block without languag should be considered an
>> error, shouldn't it?  Maybe Org should fail more gracefully when it
>> encounters such a block during export?


>The current behaviour is new.  The file I tried to export worked for
>quite a while locally and on orgmode.org.  The fallback was to behave
>like `#+begin_example', I believe.


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

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

>But think of batch export.

>But I'd like to see some kind of error message, or better be asked for
>the language (i.e. a major-mode).  The mode could be inserted after the
>`#+begin_src'. 

If I understand the latest changes (i.e. integration of Babel into Org
core) than Babel is responsible for formatting the code blocks.
Merely I couldn't (yet) get the fingers into Babel's magic, but
definitely agree that there should be at least a more useful error
message

 -- David

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


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


Re: [Orgmode] Bug: logging & PROPERTIES [6.36trans]

2010-07-05 Thread Carsten Dominik


On Jul 5, 2010, at 12:52 PM, Giovanni Ridolfi wrote:


Carsten Dominik  writes:
Hi, Carsten,

a file according to the manual
-
  -*- mode: org; -*-
* TODO Log each state with only a time
 :PROPERTIES:
 :LOGGING: TODO(!) WAIT(!) DONE(!) CANCELED(!)
 :END:
--
Then I restarted Emacs and opened such file.


yes is S-right-cursor


If yes, take a look at the variable

org-treat-S-cursor-todo-selection-as-state-change
The default is t, but maybe you have set it to nil?

The value is  "t": in the *Help* buffer I read:

"org-treat-S-cursor-todo-selection-as-state-change is a variable  
defined in `org.el'.

Its value is t"

I downloaded the latest org-version, last commit:
 commit 9e9bc164760f2c4b428ce06c48367ac4fb364204
 Capture: fix the function target

But, also in this version, the value of the TODO sequence
in the :PROPERTY: drawer  (i.e.  TODO(!) WAIT(!) DONE(!)  
CANCELED(!)   )

is *not* considered,  when I change the todo state
and it is used only the default value: TODO, DONE.

If I change the "todo-keyword" and write "WAIT", 'WAIT' reamins in a  
plain

font and does not become red, it is not fontified.



THis is probably because you have neither configured org-todo- 
keywords, nor have you put a


#+TODO: TODO WAIT | DONE CANCEL

line into the buffer.  You need to tell Org mode what the todo  
keywords are.


- 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: capture template: %& and %!

2010-07-05 Thread Carsten Dominik

Yes, this was a bug in the docs, thanks.

- Carsten

On Jul 5, 2010, at 3:18 PM, Memnon Anon wrote:


Carsten Dominik  writes:


Both are no longer supported.  They make no sense with org-capture.
As you have seen, :immediate-finish replaces %!, and every capture
process
makes you go to the target place while editing the entry - just
try `M-x widen' in a CAPTURE... buffer to see what I mean.


Okay, exactly what I thought.
Thanks for confirmation.


If so, this could be made clearer in the docs, I guess?


%!  immediately store note after completing the template
   (skipping the `C-c C-c' that normally triggers storing)
   (org-remember only)
%&  jump to target location immediately after storing note
   (org-remember only)

Or a simple footnote...

Memnon






- 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: Items with repeating timestamps don't appear in the agenda [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Tassilo Horn
Bernt Hansen  writes:

Hi Bernt,

> This works for me in both
>
> GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09 on 
> raven, modified by Debian
> Org-mode version 6.36trans (release_6.36.509.g9e9b)
>
> and 
>
> GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1,
> Org-mode version 6.36trans (release_6.36.509.g9e9b)

I use

GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of
2010-06-29 on thinkpad

and the current org git HEAD.  Unfortunately, I don't have a clue what
might cause this problem.  If you have any idea, I'm happy to edebug
anything you want or provide any additional information.

> Do you have org-agenda-repeating-timestamp-show-all set to t?

Yes, I use the default value which is t.

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: capture template: %& and %!

2010-07-05 Thread Memnon Anon
Carsten Dominik  writes:

> Both are no longer supported.  They make no sense with org-capture.
> As you have seen, :immediate-finish replaces %!, and every capture
> process
> makes you go to the target place while editing the entry - just
> try `M-x widen' in a CAPTURE... buffer to see what I mean.

Okay, exactly what I thought. 
Thanks for confirmation.

> If so, this could be made clearer in the docs, I guess?

%!  immediately store note after completing the template
(skipping the `C-c C-c' that normally triggers storing)
(org-remember only)
%&  jump to target location immediately after storing note
(org-remember only)

Or a simple footnote...

Memnon





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


Re: [Orgmode] Google CL and org-mode

2010-07-05 Thread Jordi Inglada
Hi,

Happy to hear that. Since I do not know Elisp, I can not help much,
but I am willing to test any code available for this.

Best regards,

Jordi


Eric S Fraga writes:
 > Thanks for the heads-up on this.  This could be quite useful.  I've
 > been playing recently with the org to google calendar interfacing and
 > this new API could potentially simplify things significantly.

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


Re: [Orgmode] patch for org mode

2010-07-05 Thread Carsten Dominik

Applied, thanks!

On Jul 5, 2010, at 10:41 AM, Stephen Eglen wrote:


Here is a patch for the 'capture' section of org.texi .  I've added a
few lines of @comments:

+...@comment SJE: Should be Org file or Org-mode file (see prev two  
items)?


I have no idea.  I like to be able to say Org file, so I just left it.



+...@comment SJE: should these sentences terminate in period?
(i.e. the following lines in the table)


I am really uncertain here.  often these table entries are
half sentences.  I guess the "rule" I might be using is to use dots
if after the first half sentence, another sentence with more
explanation is following.

Does this make any sense?


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


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


- 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: capture template: %& and %!

2010-07-05 Thread Carsten Dominik


On Jul 5, 2010, at 1:22 PM, Memnon Anon wrote:


Hi,

I was just experimenting with the new capture interface and I *really*
like it :).

I see some problem with these escape sequences:

,[ (info "(org)Template expansion") ]
|  %!  immediately store note after completing the  
template
|  (skipping the `C-c C-c' that normally triggers  
storing)
|  %&  jump to target location immediately after storing  
note

`

I can't get them to be recognized, they are inserted literally.


Both are no longer supported.  They make no sense with org-capture.
As you have seen, :immediate-finish replaces %!, and every capture  
process

makes you go to the target place while editing the entry - just
try `M-x widen' in a CAPTURE... buffer to see what I mean.

- Carsten



On a second look, I saw that %! is now implemented as a Property:

,[ (info "(org)Template elements") ]
| PROPERTIES
[...]
| `:immediate-finish'
|   When set, do not offer to edit the information, just  
file it
|   away immediately.  This makes sense if the template only  
needs

|   information that can be added automatically.
`

So, my guess is that %! and %& are probably related to org-*remember*,
but not org-capture? If so, this could be made clearer in the docs, I
guess?

If this is not the case, I will go on and try to get it working.

Memnon



- 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] Crash of emacs when using SHIFT-TAB

2010-07-05 Thread Carsten Dominik


On Jul 5, 2010, at 11:23 AM, Rainer M Krug wrote:


Hi

my emacs is crashing quite regularly when I am using org-babel. Is  
there a way to get a traceback or something similar which I could  
submit to get an idea what is causing it?


I think this has probably nothing to do with org-babel.  More likely,  
you are using org-indent-mode, on an Emacs version where it does not  
work.  Check the Org manual for the exact version of Emacs you need.


- Carsten



Thanks,

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


- 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: Items with repeating timestamps don't appear in the agenda [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Bernt Hansen
Tassilo Horn  writes:

> 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 a lot of repeating entries like that:
>
> --8<---cut here---start->8---
>  Treffen GST SS 2010
>  <2010-05-17 Mon 14:30-15:30 +1w>
> --8<---cut here---end--->8---
>
> Unfortunately, with the current git HEAD, those don't show up in the
> agenda.  When I delete the repeater, they are back again, but of course
> only for that date.
>
> I did a git bisection, and this is the commit that broke the agenda.
>
> --8<---cut here---start->8---
> 516640aff96b627d8ad412f6cdb436535600aff0 is the first bad commit
> commit 516640aff96b627d8ad412f6cdb436535600aff0
> Author: Bernt Hansen 
> Date:   Wed Jun 23 02:40:16 2010 +
>
> Fix agenda display for late scheduled and deadline tasks
> 
> * lisp/org.el (org-time-string-to-absolute): Ignore cyclic repeater
> when displaying items on todays agenda date.
> 
> Ignore the cyclic repeater when displaying items on today's agenda
> date.  If you have a weekly task and miss the date the agenda view
> will show more than a week late now instead of resetting on the
> cyclic repeating date.  This makes it much more obvious when you
> missed a repeating task after the repeater.
>
> :04 04 6adc4989048178b44594a7819da10c3294b9dd8a
> 59814d17696a962c77b145005033beee8b1e07f2 M   lisp
> --8<---cut here---end--->8---
>
>
> 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.509.g9e9b)
>
> 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

[Orgmode] LaTeX export error with images (was: Bug: Export error with images with no caption [6.36trans (release_6.36.509.g9e9b)])

2010-07-05 Thread Tassilo Horn
Tassilo Horn  writes:

Hi!

> I did some git bisection, and the last working version is commit
> 3b5351c7da59da3685f8233c252b1506166d35f3, so it seems Eric's commit
> 5edefbba269db8e717bd2b40778786b08af3f7a1 introduced the bug.

In the meantime, I became aware of the fact that this bug has nothing to
do with having a caption for images, so the subject is (was) a bit
misleading.

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: problem exporting an image to latex

2010-07-05 Thread Tassilo Horn
Hi Eric,

I already reported that bug.  See the message
<87tyoee2ev@thinkpad.tsdh.de>.

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] problem exporting an image to latex

2010-07-05 Thread Eric S Fraga
Hello,

with the most up to date org, I am having a problem exporting to
latex, specifically if there is a link to an image.  See the attached
example with emacs and org version information.  The error in
*Messages* I get is:

,
| Exporting to LaTeX...
| org-babel-exp processing...
| insert: Wrong number of arguments: (lambda (path caption label attr) "Format 
the image element, depending on user settings." (let (ind floatp wrapp 
multicolumnp placement figenv) (setq floatp (or caption label)) (setq ind 
(org-get-text-property-any 0 (quote original-indentation) path)) (when (and 
attr (stringp attr)) (if (string-match "[   ]*\\" attr) (setq wrapp t 
floatp nil attr (replace-match "" t t attr))) (if (string-match "[
]*\\" attr) (setq wrapp nil floatp t attr (replace-match "" t t 
attr))) (if (string-match "[   ]*\\" attr) (setq multicolumnp t 
attr (replace-match "" t t attr (setq placement (cond (wrapp 
"{l}{0.5\\textwidth}") (floatp "[htb]") (t ""))) (when (and attr (stringp attr) 
(string-match "[   ]*\\" 
attr) (setq wrapp t floatp nil attr (replace-match "" t t attr))) (if 
(string-match "[]*\\" attr) (setq wrapp nil floatp t attr 
(replace-match "" t t attr))) (if (string-match "[   ]*\\" attr) 
(setq multicolumnp t attr (replace-match "" t t attr (setq placement (cond 
(wrapp "{l}{0.5\\textwidth}") (floatp "[htb]") (t ""))) (when (and attr 
(stringp attr) (string-match "[   ]*\\ level 
depth) (cond ... ... ... ...)))
|   (let* ((heading ...) (level ...) (occur ...) (content ...) (subcontent ...) 
(label ...) (label-list ...) (sectioning org-export-latex-sectioning) (depth 
org-export-latex-sectioning-depth) main-heading sub-heading) (when (symbolp 
...) (setq sectioning ...) (when sectioning ...) (if sectioning ...) (setq 
depth ...)) (if (string-match "[]*[ ]*" heading) (setq 
main-heading ... sub-heading ...)) (setq heading 
(org-export-latex-fontify-headline heading) sub-heading (and sub-heading ...) 
main-heading (and main-heading ...)) (cond (... ...) (... ...)))
|   org-export-latex-subcontent(((pos . 2) (level . 1) (occur . 1) (heading . 
#(" problem with latex export " 1 2 ... 2 26 ...)) (content . #("\n\n  
[[file:mip.png][file:mip.png]]\n  \n\\begin{verbatim}\n  (format \"%s\\n%s\" 
(org-version) (emacs-version))\n\\end{verbatim}\n\n\n" 0 2 ... 2 3 ... 3 4 ... 
4 6 ... 6 11 ... 11 17 ... 17 18 ... 18 19 ... 19 20 ... 20 25 ... 25 31 ... 31 
32 ... 32 33 ... 33 34 ... 34 35 ... 35 37 ... 37 38 ... 38 48 ... 48 120 ... 
120 121 ... 121 122 ...)) (subcontent)) t)
|   (lambda (x) (org-export-latex-subcontent x num))(((pos . 2) (level . 1) 
(occur . 1) (heading . #(" problem with latex export " 1 2 ... 2 26 ...)) 
(content . #("\n\n  [[file:mip.png][file:mip.png]]\n  \n\\begin{verbatim}\n  
(format \"%s\\n%s\" (org-version) (emacs-version))\n\\end{verbatim}\n\n\n" 0 2 
... 2 3 ... 3 4 ... 4 6 ... 6 11 ... 11 17 ... 17 18 ... 18 19 ... 19 20 ... 20 
25 ... 25 31 ... 31 32 ... 32 33 ... 33 34 ... 34 35 ... 35 37 ... 37 38 ... 38 
48 ... 48 120 ... 120 121 ... 121 122 ...)) (subcontent)))
|   mapc((lambda (x) (org-export-latex-subcontent x num)) (((pos . 2) (level . 
1) (occur . 1) (heading . #(" problem with latex export " 1 2 ... 2 26 ...)) 
(content . #("\n\n  [[file:mip.png][file:mip.png]]\n  \n\\begin{verbatim}\n  
(format \"%s\\n%s\" (org-version) (emacs-version))\n\\end{verbatim}\n\n\n" 0 2 
... 2 3 ... 3 4 ... 4 6 ... 6 11 ... 11 17 ... 17 18 ... 18 19 ... 19 20 ... 20 
25 ... 25 31 ... 31 32 ... 32 33 ... 33 34 ... 34 35 ... 35 37 ... 37 38 ... 38 
48 ... 48 120 ... 120 121 ... 121 122 ...)) (subcontent
|   (let ((num ...)) (mapc (lambda ... ...) subcontent))
|   org-export-latex-subpos . 2) (level . 1) (occur . 1) (heading . #(" 
problem with latex export " 1 2 ... 2 26 ...)) (content . #("\n\n  
[[file:mip.png][file:mip.png]]\n  \n\\begin{verbatim}\n  (format \"%s\\n%s\" 
(org-version) (emacs-version))\n\\end{verbatim}\n\n\n" 0 2 ... 2 3 ... 3 4 ... 
4 6 ... 6 11 ... 11 17 ... 17 18 ... 18 19 ... 19 20 ... 20 25 ... 25 31 ... 31 
32 ... 32 33 ... 33 34 ... 34 35 ... 35 37 ... 37 38 ... 38 48 ... 48 120 ... 
120 121 ... 121 122 ...)) (subcontent
|   (if (eq (car content) (quote subcontent)) (mapc (quote 
org-export-latex-sub) (cdr content)) (org-export-latex-sub (car content)))
|   org-export-latex-global... ... ... ... ... ...
|   (let* ((wcf ...) (opt-plist org-export-latex-options-plist) (region-p ...) 
(rbeg ...) (rend ...) (subtree-p ...) (opt-plist ...) 
(org-export-latex-options-plist ...) (org-current-export-dir ...) 
(org-current-export-file buffer-file-name) (title ...) (filename ...) (filename 
...) (buffer ...) (odd org-odd-levels-only) (header ...) (skip ...) (text ...) 
(org-export-preprocess-hook ...) (first-lines ...) (coding-system ...) 
(coding-system-for-write ...) (save-buffer-coding-system ...) (region ...) 
(text ...) (string-for-export ...)) (set-buffer buffer) (erase-buffer) 
(org-install-letbind) (and

[Orgmode] capture template: %& and %!

2010-07-05 Thread Memnon Anon
Hi,

I was just experimenting with the new capture interface and I *really*
like it :). 

I see some problem with these escape sequences:

,[ (info "(org)Template expansion") ]
|  %!  immediately store note after completing the template
|  (skipping the `C-c C-c' that normally triggers storing)
|  %&  jump to target location immediately after storing note
`

I can't get them to be recognized, they are inserted literally.

On a second look, I saw that %! is now implemented as a Property:

,[ (info "(org)Template elements") ]
| PROPERTIES
[...]
| `:immediate-finish'
|   When set, do not offer to edit the information, just file it
|   away immediately.  This makes sense if the template only needs
|   information that can be added automatically.
`

So, my guess is that %! and %& are probably related to org-*remember*,
but not org-capture? If so, this could be made clearer in the docs, I
guess?

If this is not the case, I will go on and try to get it working.

Memnon


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


Re: [Orgmode] Bug: logging & PROPERTIES [6.36trans]

2010-07-05 Thread Giovanni Ridolfi
Carsten Dominik  writes:
Hi, Carsten, 
>> a file according to the manual
>> -
>>-*- mode: org; -*-
>> * TODO Log each state with only a time
>>   :PROPERTIES:
>>   :LOGGING: TODO(!) WAIT(!) DONE(!) CANCELED(!)
>>   :END:
>> --
>> Then I restarted Emacs and opened such file.
>>
yes is S-right-cursor

> If yes, take a look at the variable
>
> org-treat-S-cursor-todo-selection-as-state-change
> The default is t, but maybe you have set it to nil?
The value is  "t": in the *Help* buffer I read:

"org-treat-S-cursor-todo-selection-as-state-change is a variable defined in 
`org.el'.
Its value is t"

I downloaded the latest org-version, last commit:
  commit9e9bc164760f2c4b428ce06c48367ac4fb364204
  Capture: fix the function target

But, also in this version, the value of the TODO sequence 
in the :PROPERTY: drawer  (i.e.  TODO(!) WAIT(!) DONE(!) CANCELED(!)   )
is *not* considered,  when I change the todo state
and it is used only the default value: TODO, DONE.

If I change the "todo-keyword" and write "WAIT", 'WAIT' reamins in a plain
font and does not become red, it is not fontified.

Giovanni

P.S.
>> * TODO No logging at all
>>   :PROPERTIES:
>>   :LOGGING: nil

>> Q: why a timestamp is added ? shulden't the default be overidden by
>> the   value in the :PROPERTY:?
>
> Yes, this was a bug, fixed now.
Thanks, I saw it yesterday: 
"Repair the working of a LOGGING property value `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


[Orgmode] Bug: Items with repeating timestamps don't appear in the agenda [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 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 a lot of repeating entries like that:

--8<---cut here---start->8---
 Treffen GST SS 2010
 <2010-05-17 Mon 14:30-15:30 +1w>
--8<---cut here---end--->8---

Unfortunately, with the current git HEAD, those don't show up in the
agenda.  When I delete the repeater, they are back again, but of course
only for that date.

I did a git bisection, and this is the commit that broke the agenda.

--8<---cut here---start->8---
516640aff96b627d8ad412f6cdb436535600aff0 is the first bad commit
commit 516640aff96b627d8ad412f6cdb436535600aff0
Author: Bernt Hansen 
Date:   Wed Jun 23 02:40:16 2010 +

Fix agenda display for late scheduled and deadline tasks

* lisp/org.el (org-time-string-to-absolute): Ignore cyclic repeater
when displaying items on todays agenda date.

Ignore the cyclic repeater when displaying items on today's agenda
date.  If you have a weekly task and miss the date the agenda view
will show more than a week late now instead of resetting on the
cyclic repeating date.  This makes it much more obvious when you
missed a repeating task after the repeater.

:04 04 6adc4989048178b44594a7819da10c3294b9dd8a
59814d17696a962c77b145005033beee8b1e07f2 M   lisp
--8<---cut here---end--->8---


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.509.g9e9b)

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 

[Orgmode] Crash of emacs when using SHIFT-TAB

2010-07-05 Thread Rainer M Krug
Hi

my emacs is crashing quite regularly when I am using org-babel. Is there a
way to get a traceback or something similar which I could submit to get an
idea what is causing it?

Thanks,

Rainer


-- 
NEW GERMAN FAX NUMBER!!!

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

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

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

Skype:  RMkrug
Google: r.m.k...@gmail.com
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Google CL and org-mode

2010-07-05 Thread Eric S Fraga
On Sat, 3 Jul 2010 18:42:05 +0200, Jordi Inglada  
wrote:
> 
> Hi all,
> 
> This is my first post to the list, so I would like to thank you all
> for this great piece of software that I use all the time since last
> september.
> 
> I have a question regarding the recent announcement of the Google
> Command Line project (http://code.google.com/p/googlecl/).
> 
> I was wondering if there are plans to integrate support for calendar
> synchronization between Google and org-mode using this tool.

Jordi,

Thanks for the heads-up on this.  This could be quite useful.  I've
been playing recently with the org to google calendar interfacing and
this new API could potentially simplify things significantly.
-- 
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: Bug: Export error with images with no caption [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 Thread Tassilo Horn
Hi,

I did some git bisection, and the last working version is commit
3b5351c7da59da3685f8233c252b1506166d35f3, so it seems Eric's commit
5edefbba269db8e717bd2b40778786b08af3f7a1 introduced the bug.

Bye,
Tassilo


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


Re: [Orgmode] tabular logging of values in habits and other repeating tasks

2010-07-05 Thread Darlan Cavalcante Moreira

You can create a table in the task and possibly a template (with org
capture) to easily add a new line to this table. Whenever you complete the
task you add the information to the table and mark the task as DONE. An
advantage of this is that you can use the org-babel powers to make whatever
you want with the information.

--
Darlan

At Mon, 5 Jul 2010 00:46:38 -0700,
Michael Gilbert  wrote:
> 
> performed.
> 
> In general, I am trying to break my ties to a number of simpler
> data-logging tools (web apps, text files) and just centralize this into
> Org-Mode where it belongs.
> 
> Any advice?
> 
> — Michael
> 
> 
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
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: Export error with images with no caption [6.36trans (release_6.36.509.g9e9b)]

2010-07-05 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.


Since I updated my org version to the current git HEAD today, the org
latex export errors on image-links.  Here's a test document:

--8<---cut here---start->8---
#+STARTUP: beamer
#+LaTeX_CLASS: beamer
#+TITLE: Test
#+AUTHOR: Tassilo Horn
#+EMAIL: f...@bar.de
#+LANGUAGE: de
#+BEAMER_FRAME_LEVEL: 2
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_HEADER_EXTRA: \usetheme{Madrid} \institute{IST, University Koblenz}

* Implementieren

** Abstract Factory (Erzeugungsmuster)

   #+ATTR_LaTeX: height=0.85\textheight
   [[./abstract-factory.png]]
--8<---cut here---end--->8---

The error backtrace is this:

--8<---cut here---start->8---
Debugger entered--Lisp error: (wrong-number-of-arguments #[(path caption label 
attr) 
"\306\211\211\211\211\211....2\206..3.\307\310\311.4#.5\203c.5;\203c.\312\313.5\"\203;.\314.\306.\315\316\314\211.5$.5\312\317.5\"\203P.\306.\314.\315\316\314\211.5$.5\312\320.5\"\203c.\314.\315\316\314\211.5$.5\203k.\321\202t.

\203s.\322\202t.\316.5\203\227.5;\203\227.\312\323.5\"\203\227.\324\325.5\".\315\316\314\211.5$.5.5\205\240.\326.5!\211.5\203\256.5G\310U\203\302.
\203\266.\327\202\300.\203\276.\330\202\300.5.5\203\312.\331\202\333.
\203\322.\332\202\333.
\203\332.\333\202\333.\334.\335\336\337\340\"\212\341\325!\210\342\343!\210\340\324\310!P)#.3\204.2\204.\312\344\"\203.\315\316\314\211$.\345\346\347\350.4!\203.\351.4!\202.4B\352.5B\353.6\2032.\354\355.6\"\2023.\316B\356.3\203B.\354\357.3\"\202C.\316B\360.2\206K.\316B\361
\206R.\316B\257.\"\306\311.$..\207" [figenv placement multicolumnp wrapp 
floatp ind nil org-get-text-property-any 0 original-indentation string-match "[ 
   ]*\\" t replace-match "" "[ ]*\\" "[   
]*\\" "{l}{0.5\\textwidth}" "[htb]" "[   
]*\\http://java.sun.com/docs/codeconv/][http://java.sun.com/docs/codeconv/]]\n\n  
 - Beim Implementieren dienen *Design Patterns* zur Anpassung des Entwurfs an\n 
technische Randbedingungen\n - /Design Patterns: Elements of Reusable 
Object-Oriented Software/, Erich\n   Gamma, Richard Helm, Ralph Johnson, 
John M. Vlissides, 1994\n - 23 Patterns (Creational Patterns, Structural 
Patterns, Behavioral\n   patterns)\n\n" 0 387 ... 387 388 ... 388 390 ... 
390 394 ... 394 395 ... 395 424 ... 424 425 ... 425 426 ... 426 430 ... 430 431 
... 431 460 ... 460 461 ... 461 462 ... 462 813 ...)) (subcontent)) ((pos . 
1176) (level . 2) (occur . 3) (heading . #(" Abstract Factory 
(Erzeugungsmuster)" 1 36 ...)) (content . #("\n\n   
[[./abstract-factory.png][./abstract-factory.png]]\n\n" 0 2 ... 2 5 ... 5 7 ... 
7 29 ... 29 31 ... 31 53 ... 53 55 ... 55 57 ...)) (subcontent)) ((pos . 1272) 
(level . 2) (occur . 4) (heading . #(" Composite Pattern (Strukturmuster)" 1 35 
...)) (content . #("\n\n   
[[./composite-pattern.png][./composite-pattern.png]]\n\n   - Beispiele:\n - 
MenuItem (Component), Entry (Leaf), Menu (Composite)\n - FSItem 
(Component), File (Leaf), Directory (Composite)\n\n" 0 2 ... 2 5 ... 5 7 ... 7 
30 ... 30 32 ... 32 55 ... 55 57 ... 57 198 ...)) (subcontent)) ((pos . 1508) 
(level . 2) (occur . 5) (heading . #(" Visitor Pattern (Verhaltensmuster)" 1 35 
...)) (content . #("\n\n   
[[./visitor-pattern.png][./visitor-pattern.png]]\n\n" 0 2 ... 2 5 ... 5 7 ... 7 
28 ... 28 30 ... 30 51 ... 51 53 ... 53 55 ...)) (subcontent)) ((pos . 1601) 
(level . 2) (occur . 6) (heading . #(" Visitor Pattern (Verhaltensmuster)" 1 35 
...)) (content . #("\n\n   - Trennt Datenmodell von darauf arbeitenden 
Algorithmen (Prinzip: /Trennung  der Belange/)\n   - simuliert 
Double-Dispatching\n   - Typische Anwendungen:\n - Export von 
Datenmodellen\n - Pretty Printer\n - Compiler\n\n" 0 232 ...)) 
(subcontent)) ((pos . 1871) (level . 2) (occur . 7) (heading . #(" Visitor 
Pattern (Verhaltensmuster)" 1 35 ...)) (content . #("\n\n   
[[./visitor-pattern-concrete.png][./visitor-pattern-concrete.png]]\n\n" 0 2 ... 
2 5 ... 5 7 ... 7 37 ... 37 39 ... 39 69 ... 69 71 ... 71 72 ... 72 73 ...)) 
(subcontent)) ((pos . 1982) (level . 2) (occur . 8) (heading . #(" Prinzipien 
berücksichtigen!" 1 28 ...)) (content . #("\n\n   - Auch bei kleinen Systemen 
müssen die Prinzipien der Softwaretechnik\n berücksichtigt werden!\n\n   - 
Ständig die \"interne\" Qualität des Codes sicherstellen, ohne die\n 
Schnittstelle zu ändern oder neue Features einzubauen => *Refactoring*\n\n 
- /Refactoring: Improving the Design of Existing Code/, Martin Fowler,\n   
Kent Beck, John Brant, and William Opdyke, 1999\n\n" 0 1 ... 1 236 ... 236 249 

[Orgmode] Bulk refile is not working as expected

2010-07-05 Thread Noorul Islam K M
Hello all,

I have couple of tasks in one of my org files which I want to re-file to
some other org file.

Both these files are in my agenda list. This is what I did.

1. Go to agenda-view
2. Navigate to both the tasks and use 'm' to mark them.
3. 'B r' to bulk refile tasks
4. The marked tasks disappears from Agenda View.

But actually these tasks are not moved. One thing that I noticed is that
the following message is getting displayed. 

org-agenda-refile: Marker does not point anywhere

(org-version)
release_6.36-109-g4f11
Org-mode version 6.36trans (release_6.36.109.g4f11)

Am I doing something different here or is it a bug?

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] Small doc fixes to org-feed.el and org-capture.el

2010-07-05 Thread Stephen Eglen

diff --git a/lisp/org-feed.el b/lisp/org-feed.el
index cda7368..999bfd8 100644
--- a/lisp/org-feed.el
+++ b/lisp/org-feed.el
@@ -45,7 +45,7 @@
 ;;  With this setup, the command `M-x org-feed-update-all' will
 ;;  collect new entries in the feed at the given URL and create
 ;;  entries as subheadings under the "ReQall Entries" heading in the
-;;  file "~/org-feeds.org".  Each feed should normally have its own
+;;  file "~/org/feeds.org".  Each feed should normally have its own
 ;;  heading - however see the `:drawer' parameter.
 ;;
 ;;  Besides these standard elements that need to be specified for each


diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index 8c887ce..fde5093 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -336,7 +336,7 @@ for a Remember buffer.")
 (defun org-capture (&optional goto keys)
   "Capture something.
 
-This will let you select a template from org-capture-templates, and then
+This will let you select a template from `org-capture-templates', and then
 file new captured information.  The text is immediately inserted at the
 target location, and an indirect buffer is shown where you can edit it.
 Pressing `C-c C-c' brings you back to the previous state of Emacs,



___
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 for org mode

2010-07-05 Thread Stephen Eglen
Here is a patch for the 'capture' section of org.texi .  I've added a
few lines of @comments:

+...@comment SJE: Should be Org file or Org-mode file (see prev two items)?

+...@comment SJE: should these sentences terminate in period?
(i.e. the following lines in the table)

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

Stephen

diff --git a/doc/org.texi b/doc/org.texi
index da5cf12..a9daf19 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -260,7 +260,7 @@ Capture - Refile - Archive
 
 Capture
 
-* Setting up a capture location::  Where notes will be stored
+* Setting up capture:: Where notes will be stored
 * Using capture::  Commands to invoke and terminate capture
 * Capture templates::  Define the outline of different note types
 
@@ -5904,11 +5904,10 @@ trees to an archive file keeps the system compact and 
fast.
 @cindex capture
 
 Org's method for capturing new items is heavily inspired by John Wiegley
-excellent remember package.  Up to version 6.36 Org did actually use a
-special setup for @file{remember.el}.  @file{org-remember.el} is still part
-of Org-mode for backward compatibility with existing setups.  You can find
-the documentation for org-remember at
-...@url{http://orgmode.org/org-remember.pdf}.
+excellent remember package.  Up to version 6.36 Org used a special setup
+for @file{remember.el}.  @file{org-remember.el} is still part of Org-mode for
+backward compatibility with existing setups.  You can find the documentation
+for org-remember at @url{http://orgmode.org/org-remember.pdf}.
 
 The new capturing setup described here is preferred and should be used by new
 users.  To convert your @code{org-remember-templates}, run the command
@@ -5917,32 +5916,32 @@ users.  To convert your @code{org-remember-templates}, 
run the command
 @end example
 @noindent and then customize the new variable with @kbd{M-x
 customize-variable org-capture-templates}, check the result, and save the
-customization.  You will then be able to use both remember and capture until
-you have gotten used to the new mechanism.
+customization.  You can then use both remember and capture until
+you are familiar with the new mechanism.
 
-Capture lets you store quick notes with little interruption of your work
+Capture lets you quickly store notes with little interruption of your work
 flow.  The basic process of capturing is very similar to remember, but Org
 does enhance it with templates and more.
 
 @menu
-* Setting up a capture location::  Where notes will be stored
+* Setting up capture:: Where notes will be stored
 * Using capture::  Commands to invoke and terminate capture
 * Capture templates::  Define the outline of different note types
 @end menu
 
-...@node Setting up a capture location, Using capture, Capture, Capture
-...@subsection Setting up a capture location
+...@node Setting up capture, Using capture, Capture, Capture
+...@subsection Setting up capture
 
 The following customization sets a default target file for notes, and defines
 a global k...@footnote{please select your own key, @kbd{C-c c} is only a
-suggestion.}  for capturing new stuff.
+suggestion.}  for capturing new material.
 
 @example
 (setq org-default-notes-file (concat org-directory "/notes.org"))
 (define-key global-map "\C-cc" 'org-capture)
 @end example
 
-...@node Using capture, Capture templates, Setting up a capture location, 
Capture
+...@node Using capture, Capture templates, Setting up capture, Capture
 @subsection Using capture
 
 @table @kbd
@@ -5956,14 +5955,14 @@ node.  You may then insert the information you want.
 
 @kindex C-c C-c
 @item C-c C-c
-Once you are done entering information into the capture buffer, 
+Once you have finished entering information into the capture buffer, 
 @kbd{C-c C-c} will return you to the window configuration before the capture
 process, so that you can resume your work without further distraction.
 
 @kindex C-c C-w
 @item C-c C-w
-When this command is used in the capture buffer, it will finalize the capture
-process by refiling (@pxref{Refiling notes}) the note to a different place.
+Finalize the capture process by refiling (@pxref{Refiling notes}) the note to
+a different place.
 
 @kindex C-c C-k
 @item C-c C-k
@@ -5979,8 +5978,8 @@ rather than to the current date.
 @subsection Capture templates
 @cindex templates, for Capture
 
-You can use templates to arrange for different types of capture items, and
-for different target locations.  The easiest way to set up such templates is
+You can use templates for different types of capture items, and
+for different target locations.  The easiest way to create such templates is
 through the customize interface.
 
 @table @kbd
@@ -5994,7 +5993,7 @@ an example.  Say you would like to use one template to 
create general TODO
 entries, and you want to put these entries under the heading @samp{Tasks} in
 your file @file{~/org/gtd.org}.  Also, a date tree in the file
 @fil

[Orgmode] [PATCH] default base-extension .org for org-publish

2010-07-05 Thread Daniel Clemente

Org-publish: correctly find files in projects which didn't define a 
base-extension.
Previously, (org-publish-get-project-from-filename "~/org/file.org") would 
return nil because the constructed regular expression 
"^/home/dc/org/.+\\.\\(\\)$" required a dot at the end.

#+BEGIN_QUOTE
diff --git a/lisp/org-publish.el b/lisp/org-publish.el
index b387e7b..a50cf56 100644
--- a/lisp/org-publish.el
+++ b/lisp/org-publish.el
@@ -466,7 +466,7 @@ matching filenames."
  ;; [[info:org:Selecting%20files]] shows how this is supposed to work:
  (let* ((r (plist-get (cdr prj) :recursive))
 (b (expand-file-name (plist-get (cdr prj) :base-directory)))
-(x (plist-get (cdr prj) :base-extension))
+(x (or (plist-get (cdr prj) :base-extension) "org"))
 (e (plist-get (cdr prj) :exclude))
 (i (plist-get (cdr prj) :include))
 (xm (concat "^" b (if r ".+" "[^/]+") "\\.\\(" x "\\)$")))

#+END_QUOTE

___
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] tabular logging of values in habits and other repeating tasks

2010-07-05 Thread Michael Gilbert
Hi —

So, I think there must be a way to do this, but I'm stumped. 

Here's what I am trying to set up: I want to be able to log a series of values 
(rather than just DONE or note) for my habits. For example: "Did I run today?" 
can be tracked with regular logging. But "OK, you ran. How many miles?" can't, 
as far as I can tell. I know I can set those tasks to offer up an interface for 
notes, but each of those notes is a distinct item, right? I want to find a way 
to leverage the power of orgmode tables/columns by logging a value (or possibly 
more than one) in a single table with a line for each repetition of the task. 
So, for one habit the value might be "miles run". I'm a tango dancer, so for 
another the value might be "minutes of drills done". I can imagine 
circumstances with more than one column as well. For example, if I were 
tracking exercise in general, I might want one column for the type of exercise 
and another for the number of minutes performed.

In general, I am trying to break my ties to a number of simpler data-logging 
tools (web apps, text files) and just centralize this into Org-Mode where it 
belongs.

Any advice?

— Michael



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


[Orgmode] moving past state changes into logbook drawer?

2010-07-05 Thread Michael Gilbert
Hi —

I am just now transitioning to logging state changes into a logbook drawer. But 
I have legacy agenda files with hundreds of lines that were not put into that 
drawer. Does anyone know of a convenient way to move all the past state changes 
into the suitable drawer? If that in the manual, I'm afraid I missed it.

TIA!

— Michael


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


[Orgmode] Feature-Ideas

2010-07-05 Thread Marc
Hey to all and thanks for the great work!

Org-mode is impressing and of large value to me. 

---

I have severel ideas about new features that I want to share. My knowledge with 
lisp and the coding of the org-structure is bad so far, so I can't try to 
contribute a patch.

* 1. *Alias - Trees*  
When I work on projects, I often want to /reference to a certain other 
heading/. It would be great to do this not just with links, but /with an 
alias/. 

I think of trees, that show up and can be in the current tree as if they were a 
subtree, but really are at another position in the current or a different file.

This concept would also allow seperate versioning and merging of external 
generated content into the current file. ( I e.g. think of summaries of text in 
the scientific context. )   

* 2. More flexible *Colouring for categories*, tags, ... . 
It would be great to have the /opportunity to define individual faces for 
different categories, tags/ , ...  .

* 3. Implementation of *hourly/minutely reference*.
It would be useful to be able to schedule something to repeat every 12 or 6 
hours or in 22 minutes. It would also be useful, to have the opportunity to 
associate asynchronous shell scripts with individual scheduled events. 

* 4. *Exclude certain days from Timeline*
The opportunity to /give/ whole days the status // . That would mean, that when I fire up the /Timeline/ for a current 
file (L), certain days are /show/ with a message "/day is planned for project 
/. in a certain project specific project. 
It would also be useful to have a keycommand in the /Timeline/ to /switch other 
files on showing them in gray/.

* 5. *Manually timeclock certain Headings*
I would love to have a commands that can change the clocktime of not running 
headings or insert new  clocktimes into the current heading.  E.g. like this:

Change the clocktime of :
(s) change last timeclock and keep the Start time. ->How long 
did it last?
(e) change last timeclock and keep the End time->How long 
did it last?
(# C-u offset to change the #n last timeclock)
(a) add new timeclock  ->Ask for 
Start and End. (with opportunity to specify the END relative)

* 6. *Expand timestamps to include locations*
e.g. 
Special timestamp-commands that also ask for places and presents a list of all 
places of all projects to choose from.

* 7. *More complex timeclock-reports*
Is anyone working on a more comprehensive way of giving visual feedback and 
analysing the data of the timeclock-feature. (What have I done the last month? 
How many time has gone to which project / etc.) I am a relatively known 
[[http://cran.r-project.org/][GNU R]] user and could contribute code for 
analysis of time usage / plotting complex more diagrams in R. Allthough I am 
not very used to the export mechanisms in Orgmode. Does anyone like to 
cooperate?

Once again: thanks for doing it!

Marc

___
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