[O] [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images

2011-04-19 Thread Manuel Giraud
---
 lisp/org-html.el |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/org-html.el b/lisp/org-html.el
index 5d53478..7a4564d 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -888,7 +888,8 @@ OPT-PLIST is the export options list.
  (if (string-match ^file: desc)
  (setq desc (substring desc (match-end 0)
(setq desc (org-add-props
-  (concat img src=\ desc \/)
+  (concat img src=\ desc \ alt=\ 
+  (file-name-nondirectory desc) \/)
   '(org-protected t
   (cond
((equal type internal)
-- 
1.7.3.5




Re: [O] [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images

2011-04-19 Thread Jambunathan K

Without alt validation fails, right?

Jambunathan K.


Manuel Giraud manuel.gir...@univ-nantes.fr writes:

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

 diff --git a/lisp/org-html.el b/lisp/org-html.el
 index 5d53478..7a4564d 100644
 --- a/lisp/org-html.el
 +++ b/lisp/org-html.el
 @@ -888,7 +888,8 @@ OPT-PLIST is the export options list.
 (if (string-match ^file: desc)
 (setq desc (substring desc (match-end 0)
   (setq desc (org-add-props
 -(concat img src=\ desc \/)
 +(concat img src=\ desc \ alt=\ 
 +(file-name-nondirectory desc) \/)
  '(org-protected t
(cond
 ((equal type internal)

-- 



Re: [O] [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images

2011-04-19 Thread Manuel Giraud
Jambunathan K kjambunat...@gmail.com writes:

 Without alt validation fails, right?

Yes it fails. This is the point of this patch (should have said so).

-- 
Manuel Giraud



[O] [Accepted] * org-html.el (org-html-handle-links): add an alternate for inline images

2011-04-19 Thread Bastien Guerry
Patch 752 (http://patchwork.newartisans.com/patch/752/) is now Accepted.

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C1303202089-27231-1-git-send-email-manuel.giraud%40univ-nantes.fr%3E

Here is the original message containing the patch:

 Content-Type: text/plain; charset=utf-8
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
 Subject: [O] * org-html.el (org-html-handle-links): add an alternate for
   inline images
 Date: Tue, 19 Apr 2011 13:34:49 -
 From: Manuel Giraud manuel.gir...@univ-nantes.fr
 X-Patchwork-Id: 752
 Message-Id: 1303202089-27231-1-git-send-email-manuel.gir...@univ-nantes.fr
 To: emacs-orgmode@gnu.org
 Cc: Manuel Giraud manuel.gir...@univ-nantes.fr
 
 ---
  lisp/org-html.el |3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
 
 
 diff --git a/lisp/org-html.el b/lisp/org-html.el
 index 5d53478..7a4564d 100644
 --- a/lisp/org-html.el
 +++ b/lisp/org-html.el
 @@ -888,7 +888,8 @@ OPT-PLIST is the export options list.
 (if (string-match ^file: desc)
 (setq desc (substring desc (match-end 0)
   (setq desc (org-add-props
 -(concat img src=\ desc \/)
 +(concat img src=\ desc \ alt=\ 
 +(file-name-nondirectory desc) \/)
  '(org-protected t
(cond
 ((equal type internal)
 



Re: [O] [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images

2011-04-19 Thread Bastien
Applied, thanks.

Manuel Giraud manuel.gir...@univ-nantes.fr writes:

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

 diff --git a/lisp/org-html.el b/lisp/org-html.el
 index 5d53478..7a4564d 100644
 --- a/lisp/org-html.el
 +++ b/lisp/org-html.el
 @@ -888,7 +888,8 @@ OPT-PLIST is the export options list.
 (if (string-match ^file: desc)
 (setq desc (substring desc (match-end 0)
   (setq desc (org-add-props
 -(concat img src=\ desc \/)
 +(concat img src=\ desc \ alt=\ 
 +(file-name-nondirectory desc) \/)
  '(org-protected t
(cond
 ((equal type internal)

-- 
 Bastien



Re: [O] typo in the info file

2011-04-19 Thread Bastien
Hi Xiao-Yong,

Xiao-Yong Jin xj2...@columbia.edu writes:

 Two lines in the file doc/org.texi

 doc/org.texi:8529:@vindex org-overriding-columns-format
 doc/org.texi:8533:Org first checks if the variable 
 @code{org-overriding-columns-format} is

 mention the variable org-overriding-columns-format.  I
 believe it should be org-agenda-overriding-columns-format,
 instead.

That's right, I just fixed this. 

Thanks,

-- 
 Bastien



Re: [O] [OT] Pomodoro for emacs

2011-04-19 Thread Jonathan BISSON
Marcelo de Moraes Serpa celoserpa at gmail.com writes:

 
 Hi list,
 
 I use Pomodoro to help keeping me focused, and right now I use Focus
 Booster on OSX.
 
 However, I just found http://kanis.fr/hg/lisp/ivan/pomodoro.el, which
 might be a good addition to the emacs PIM arsenal, haven't tried it
 yet, but wanted to spread the word :)
 
 Cheers,
 
 Marcelo.
 
 

Hi,

I use this one
: http://www.couchet.org/blog/index.php?post/2010/08/04/Pomodoro-et-org-mode

Nice and well integrated in orgmode.


Cheers,


Jonathan





Re: [O] Display missing/overlapping clock ranges

2011-04-19 Thread Rainer Stengele
Am 13.04.2011 17:44, schrieb Rainer Stengele:
 Hi all!
 
 I do clock every task I work on during the whole day.
 At the end of the day or week I have to go over all clock entries in my agenda
 and see if there are holes or overlappings in my clock tables.
 If yes I have to adjust the clocks.
 
 I read Bernt Hansen's comments on how he works with clocks
 (http://doc.norang.ca/org-mode.html#Clocking).
 
 What about a function showing the lacking clock ranges over
 the day while being in the agenda with log mode on?
 
 The function could even check for overlapping clock ranges and indicate these
 or jump to these.
 
 Maybe it would even be good to be able to configure daily and weekly
 regular holes in the ranges, for example
 
 - daily lunch time from [12:00]--[13:00]
 - week end days (maybe with diary syntax)
 - working days (Monday to Friday for example)
 
 What do you think?
 
 -- Rainer
 
 
 
Hi again,

I just rediscovered the wonderful C-c C-x C-d (org-clock-display)
command to show subtree times in the whole buffer.
How could I miss that, being an old org user ...

Anyway, I browsed a bit through my headlines and found some huge times.
Digging deeper I found some runaway clocks exceeding several days, one even 
over more than a year.

As I do not review all org files for such errors, I would be interested in

- finding all clock times longer than x hours (for example 12 hours - I never 
clock over night)
- find all clock times clocking in the weekend (Saturday, Sunday)
- finding all clock times lower than y minutes (for example 15 minutes)

Are theree any already included functions in Org helping me do that?

Best,
- Rainer



[O] How can I review a day?

2011-04-19 Thread Robert Inder
I've recently started using Org mode in earnest, and in particular using the
time logging stuff.

It's brilliant.

But I have a problem.  I sometimes (well, OK, fairly often, actually!)
forget to clock in/out of jobs.  That's OK, org is my life in plain text, and
I can simply edit the relevant clock lines to create a correct record
of the day.

BUT

I worry about messing things up --- getting the times wrong, and either
leaving gaps or creating overlapping activities, or both.

So I'd like a way to review the time-line for a day: a way to see all the
clock-in/clock-out pairs in order, so I can see any gaps or overlaps.

Ideally with the relevant task title as well, to speed up fixing the mistake

I can't believe I'm the only person to have wanted this, but I can't see an
obvious way to get it.

Is there a way to get this?

Robert



Re: [O] How can I review a day?

2011-04-19 Thread Puneeth Chaganti
On Tue, Apr 19, 2011 at 7:22 PM, Robert Inder rob...@interactive.co.uk wrote:
 I've recently started using Org mode in earnest, and in particular using the
 time logging stuff.

 It's brilliant.

 But I have a problem.  I sometimes (well, OK, fairly often, actually!)
 forget to clock in/out of jobs.  That's OK, org is my life in plain text, 
 and
 I can simply edit the relevant clock lines to create a correct record
 of the day.

 BUT

 I worry about messing things up --- getting the times wrong, and either
 leaving gaps or creating overlapping activities, or both.

 So I'd like a way to review the time-line for a day: a way to see all the
 clock-in/clock-out pairs in order, so I can see any gaps or overlaps.

Hit l in agenda mode to enable the log mode. Is this what you need?

-- 
Puneeth



Re: [O] How can I review a day?

2011-04-19 Thread Robert Inder
On 19 April 2011 14:59, Puneeth Chaganti puncha...@gmail.com wrote:


 So I'd like a way to review the time-line for a day: a way to see all the
 clock-in/clock-out pairs in order, so I can see any gaps or overlaps.

 Hit l in agenda mode to enable the log mode. Is this what you need?

Whoa!  Close, but not touching.

I nearly mis-read/understood you.  I initially thought you just meant
^C-a-L -- Timeline for current buffer. Which doesn't show any clock-related
information.

But I realise you actually meant that after I've done that, I should type l
to get Log mode, it DOES show clock-related information.

That's a really neat feature, and it's very close to what I want.  But
not quite right.

It shows me the sequence of activities I logged time to, and how much
time I logged.  But it doesn't show me WHAT  time I logged   I want to
check that (after I have manually edited one or more CLOCK lines) I
haven't missed some time or double-logged any.

And I can't see how to get that information.

Robert.


-- 
Robert Inder,                                    0131 229 1052 / 07808 492 213
Interactive Information Ltd,   3, Lauriston Gardens, Edinburgh EH3 9HH
Registered in Scotland, Company no. SC 150689
                                           Interactions speak louder than words



Re: [O] How can I review a day?

2011-04-19 Thread Puneeth Chaganti
On Tue, Apr 19, 2011 at 8:36 PM, Robert Inder rob...@interactive.co.uk wrote:
 On 19 April 2011 14:59, Puneeth Chaganti puncha...@gmail.com wrote:


 So I'd like a way to review the time-line for a day: a way to see all the
 clock-in/clock-out pairs in order, so I can see any gaps or overlaps.

 Hit l in agenda mode to enable the log mode. Is this what you need?

 Whoa!  Close, but not touching.

 I nearly mis-read/understood you.  I initially thought you just meant
 ^C-a-L -- Timeline for current buffer. Which doesn't show any clock-related
 information.

 But I realise you actually meant that after I've done that, I should type l
 to get Log mode, it DOES show clock-related information.

 That's a really neat feature, and it's very close to what I want.  But
 not quite right.

 It shows me the sequence of activities I logged time to, and how much
 time I logged.  But it doesn't show me WHAT  time I logged   I want to
 check that (after I have manually edited one or more CLOCK lines) I
 haven't missed some time or double-logged any.

What version of org-mode are you using? Org-mode does show me WHAT
time I logged. For instance,


  org-scratch: 20:21-20:51 Clocked:   (0:30) World
  org-scratch: 20:49-20:49 Clocked:   (0:00) Hello


Also, I tried this with out my emacs config. So this is the default
behaviour with the latest version of org-mode. (I don't know if this
was added recently)

HTH,
Puneeth



Re: [O] How can I review a day?

2011-04-19 Thread Puneeth Chaganti
On Tue, Apr 19, 2011 at 8:54 PM, Puneeth Chaganti puncha...@gmail.com wrote:
 On Tue, Apr 19, 2011 at 8:36 PM, Robert Inder rob...@interactive.co.uk 
 wrote:
 On 19 April 2011 14:59, Puneeth Chaganti puncha...@gmail.com wrote:


 So I'd like a way to review the time-line for a day: a way to see all the
 clock-in/clock-out pairs in order, so I can see any gaps or overlaps.

 Hit l in agenda mode to enable the log mode. Is this what you need?

 Whoa!  Close, but not touching.

 I nearly mis-read/understood you.  I initially thought you just meant
 ^C-a-L -- Timeline for current buffer. Which doesn't show any clock-related
 information.

 But I realise you actually meant that after I've done that, I should type l
 to get Log mode, it DOES show clock-related information.

 That's a really neat feature, and it's very close to what I want.  But
 not quite right.

 It shows me the sequence of activities I logged time to, and how much
 time I logged.  But it doesn't show me WHAT  time I logged   I want to
 check that (after I have manually edited one or more CLOCK lines) I
 haven't missed some time or double-logged any.

 What version of org-mode are you using? Org-mode does show me WHAT
 time I logged. For instance,

 
  org-scratch: 20:21-20:51 Clocked:   (0:30) World
  org-scratch: 20:49-20:49 Clocked:   (0:00) Hello
 

 Also, I tried this with out my emacs config. So this is the default
 behaviour with the latest version of org-mode. (I don't know if this
 was added recently)

 HTH,
 Puneeth


Sorry, for replying to myself.  I just realized there has been a
similar thread very recently [0]. Discussion is on, to automate the
checks for overlapping/missing times.

[0] - http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00437.html


-- 
Puneeth



Re: [O] How can I review a day?

2011-04-19 Thread MidLifeXis at PerlMonks
#+BEGIN: clocktable :block today :scope agenda :maxlevel 4 :link 2
#+END: clocktable


You can also use agenda-with-archives for the scope if needed.


- Original Message 
From: Robert Inder rob...@interactive.co.uk
To: Puneeth Chaganti puncha...@gmail.com
Cc: emacs-orgmode@gnu.org
Sent: Tue, April 19, 2011 10:06:12 AM
Subject: Re: [O] How can I review a day?

On 19 April 2011 14:59, Puneeth Chaganti puncha...@gmail.com wrote:


 So I'd like a way to review the time-line for a day: a way to see all the
 clock-in/clock-out pairs in order, so I can see any gaps or overlaps.

 Hit l in agenda mode to enable the log mode. Is this what you need?

Whoa!  Close, but not touching.

I nearly mis-read/understood you.  I initially thought you just meant
^C-a-L -- Timeline for current buffer. Which doesn't show any clock-related
information.

But I realise you actually meant that after I've done that, I should type l
to get Log mode, it DOES show clock-related information.

That's a really neat feature, and it's very close to what I want.  But
not quite right.

It shows me the sequence of activities I logged time to, and how much
time I logged.  But it doesn't show me WHAT  time I logged   I want to
check that (after I have manually edited one or more CLOCK lines) I
haven't missed some time or double-logged any.

And I can't see how to get that information.

Robert.


-- 
Robert Inder,0131 229 1052 / 07808 492 213
Interactive Information Ltd,   3, Lauriston Gardens, Edinburgh EH3 9HH
Registered in Scotland, Company no. SC 150689
   Interactions speak louder than words



[O] [PATCH] * org-publish.el (org-publish-find-date): optimization

2011-04-19 Thread Manuel Giraud
Hi,

elp reports important speed gain with this patch to find an org file date.

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

diff --git a/lisp/org-publish.el b/lisp/org-publish.el
index e944eea..7470ee2 100644
--- a/lisp/org-publish.el
+++ b/lisp/org-publish.el
@@ -852,7 +852,7 @@ system's modification time.
 It returns time in `current-time' format.
   (let ((visiting (find-buffer-visiting file)))
 (save-excursion
-  (switch-to-buffer (or visiting (find-file file)))
+  (switch-to-buffer (or visiting (find-file-noselect file nil t)))
   (let* ((plist (org-infile-export-plist))
 (date (plist-get plist :date)))
(unless visiting
-- 
1.7.3.5




Re: [O] org-babel ocaml List append problems

2011-04-19 Thread Eric Schulte
Hi James,

I just pushed up a change which should fix this behavior for both ocaml
lists and arrays.  Please let me know if you continue to experience
problems.

Thanks -- Eric

James Hurford terra...@gmail.com writes:

 I have just discovered org-babel supports ocaml and I've just started to
 learn it.  My problem is when appending two lists together, when run
 through org-babel returns a error message.  I would try and run this
 code

 [3;2;3] @ [3;2;3;4;5];;

 and get a error message saying

 Invalid function: 3

 Is there a solution to this as the code should work?

 James





-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] How can I review a day?

2011-04-19 Thread Bernt Hansen
Robert Inder rob...@interactive.co.uk writes:

 On 19 April 2011 14:59, Puneeth Chaganti puncha...@gmail.com wrote:


 So I'd like a way to review the time-line for a day: a way to see all the
 clock-in/clock-out pairs in order, so I can see any gaps or overlaps.

 Hit l in agenda mode to enable the log mode. Is this what you need?

 Whoa!  Close, but not touching.

 I nearly mis-read/understood you.  I initially thought you just meant
 ^C-a-L -- Timeline for current buffer. Which doesn't show any clock-related
 information.

 But I realise you actually meant that after I've done that, I should type l
 to get Log mode, it DOES show clock-related information.

You want the regular agenda not the timeline view probably.  
Just try this:

 | Key | Details |
 |-+-|
 | C-c a a | Show today's agenda |
 | l   | Enable display of clock details |

This should show all details of when you clocked in, what etc, and you
can visit the clock line directly by hitting TAB on the clock detail
line in the agenda.

Something like this should be the result:

--8---cut here---start-8---
Day-agenda (W16):
Tuesday19 April 2011
  todo:7:31- 8:01 Clocked:   (0:30) Organization
   :PERSONAL::
   8:00.. 
  git: 8:01- 8:03 Clocked:   (0:02) TODO Upgrade git - State DONE 
  from STARTED[2011-04-14 Thu 07:57] :GIT:WORK::@office:
  todo:8:03- 8:06 Clocked:   (0:03) Organization
   :PERSONAL::
...
--8---cut here---end---8---

-Bernt


 That's a really neat feature, and it's very close to what I want.  But
 not quite right.

 It shows me the sequence of activities I logged time to, and how much
 time I logged.  But it doesn't show me WHAT  time I logged   I want to
 check that (after I have manually edited one or more CLOCK lines) I
 haven't missed some time or double-logged any.

 And I can't see how to get that information.

 Robert.



Re: [O] [PATCH] * org-publish.el (org-publish-find-date): optimization

2011-04-19 Thread Bernt Hansen
Manuel Giraud manuel.gir...@univ-nantes.fr writes:

 Hi,

 elp reports important speed gain with this patch to find an org file date.

Hi Manual,

It would be useful to post the elp results too so we can see the
differences before and after your patch.

Regards,
Bernt



Re: [O] [PATCH] * org-publish.el (org-publish-find-date): optimization

2011-04-19 Thread Manuel Giraud
Bernt Hansen be...@norang.ca writes:

 Manuel Giraud manuel.gir...@univ-nantes.fr writes:

 Hi,

 elp reports important speed gain with this patch to find an org file date.

 Hi Manual,

 It would be useful to post the elp results too so we can see the
 differences before and after your patch.

Right. Here there are:

org-publish-find-date-before  100 0.527289  0.0052728900
org-publish-find-date-after   100 0.203770  0.0020377000

Done with:
(dotimes (n 100)
  (org-publish-find-date-before ~/foo.org)
  (org-publish-find-date-after ~/foo.org))

and foo.org is about 300 lines.

-- 
Manuel Giraud



Re: [O] How can I review a day?

2011-04-19 Thread Russell Adams
On Tue, Apr 19, 2011 at 04:06:12PM +0100, Robert Inder wrote:
 On 19 April 2011 14:59, Puneeth Chaganti puncha...@gmail.com wrote:

 
  So I'd like a way to review the time-line for a day: a way to see all the
  clock-in/clock-out pairs in order, so I can see any gaps or overlaps.
 
  Hit l in agenda mode to enable the log mode. Is this what you need?

 Whoa!  Close, but not touching.

 I nearly mis-read/understood you.  I initially thought you just meant
 ^C-a-L -- Timeline for current buffer. Which doesn't show any clock-related
 information.

 But I realise you actually meant that after I've done that, I should type l
 to get Log mode, it DOES show clock-related information.

 That's a really neat feature, and it's very close to what I want.  But
 not quite right.

 It shows me the sequence of activities I logged time to, and how much
 time I logged.  But it doesn't show me WHAT  time I logged   I want to
 check that (after I have manually edited one or more CLOCK lines) I
 haven't missed some time or double-logged any.

 And I can't see how to get that information.

 Robert.


 --
 Robert Inder, ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0131 229 1052 / 07808 492 213
 Interactive Information Ltd, ? 3, Lauriston Gardens, Edinburgh EH3 9HH
 Registered in Scotland, Company no. SC 150689
 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Interactions speak louder than 
 words


I do this with inactive timestamps. I've trained myself to insert an
inactive time stamp (via single keypress) every time I change tasks or
leave my computer and come back. This isn't explicitly for time
tracking, its more for logging what I did when and is freeform as
opposed to clock in/out.

Then when I want to see my timeline, I pull up an agenda with log mode
and then hit '[' to turn on display of inactive timestamps. It's
super!

Good luck.

--
Russell Adamsrlad...@adamsinfoserv.com

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

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



Re: [O] How can I review a day?

2011-04-19 Thread Robert Inder
On 19 April 2011 17:11, Bernt Hansen be...@norang.ca wrote:

 You want the regular agenda not the timeline view probably.
 Just try this:

  | Key     | Details                         |
  |-+-|
  | C-c a a | Show today's agenda             |
  | l       | Enable display of clock details |

Oh!  YES!

That's just what I wanted.  Only better!

It needs to be documented, though...

Robert.



Re: [O] How can I review a day?

2011-04-19 Thread Bernt Hansen
Robert Inder rob...@interactive.co.uk writes:

 On 19 April 2011 17:11, Bernt Hansen be...@norang.ca wrote:

 You want the regular agenda not the timeline view probably.
 Just try this:

  | Key     | Details                         |
  |-+-|
  | C-c a a | Show today's agenda             |
  | l       | Enable display of clock details |

 Oh!  YES!

 That's just what I wanted.  Only better!

 It needs to be documented, though...

Hi Robert,

From section 10.5 of the org-mode manual

--8---cut here---start-8---
`v l  or short  l (`org-agenda-log-mode')'
 Toggle Logbook mode.  In Logbook mode, entries that were marked
 DONE while logging was on (variable `org-log-done') are shown in
 the agenda, as are entries that have been clocked on that day.
 ^
 You can configure the entry types that should be included in log
 mode using the variable `org-agenda-log-mode-items'.  When called
 with a `C-u' prefix, show all possible logbook entries, including
 state changes.  When called with two prefix args `C-u C-u', show
 only logging information, nothing else.  `v L' is equivalent to
 `C-u v l'.  
--8---cut here---end---8---

If you have any suggestions on how to improve this please let us know.

Regards,
Bernt



Re: [O] Cannot use C-c c to capture from within some files

2011-04-19 Thread Bernt Hansen
Stefan Strohmeier stefan.strohme...@gmx.de writes:

 Dear Org-mode users,

 I am a happy user of org-mode. Thanks for this awesome piece of software.

 However, I have some problems in running the org-capture command with
 C-c c in some files. For example, I have a buffer English.org opened
 and when I try to use C-c c to capture I get the following error
 message:

 Error
 zerop: Searching for program: No such file or directory, git
 Error

 From within other files such as the org agenda buffer I can use the
 capture command without any problems. I cannot see why this problem
 should be related to git. I have a working copy of git installed. I
 use the global-set-key as explained in the tutorial.

 I am using GNU Emacs 23.3.1 (NS apple-appkit) on a Mac OS X 10.6.7 machine.

 Can someone please tell me what the problem might be. Any hint is
 greatly appreciated. Using google I could not find a related
 post. Please apologize if this question has been asked before.

Please provide a backtrace

(setq debug-on-error t)

and regenerate the error.  Loading org without compiled elisp (C-u M-x
org-reload) will give better backtrace details.

Regards,
Bernt



Re: [O] Cannot use C-c c to capture from within some files

2011-04-19 Thread Stefan Strohmeier
Dear Bernt and everyone else,

 Please provide a backtrace
 
 (setq debug-on-error t)
 
 and regenerate the error.  Loading org without compiled elisp (C-u M-x
 org-reload) will give better backtrace details.

This is the backtrace I get when I do a org-reload withtout the compiled elisp:

Debug On Error Start
Debugger entered--Lisp error: (file-error Searching for program No such file 
or directory git)
  call-process(git nil t nil --no-pager 
--git-dir=/Users/ianus/MyElisp/Organisation/.git symbolic-ref -q HEAD)
  (zerop (call-process org-git-program nil t nil --no-pager (concat 
--git-dir= gitdir) symbolic-ref -q HEAD))
  (not (zerop (call-process org-git-program nil t nil --no-pager (concat 
--git-dir= gitdir) symbolic-ref -q HEAD)))
  (if (not (zerop (call-process org-git-program nil t nil --no-pager (concat 
--git-dir= gitdir) symbolic-ref -q HEAD))) (error git error: %s  
(buffer-string)) (goto-char (point-min)) (if (looking-at ^refs/heads/) 
(buffer-substring 12 (1- (point-max)
  (progn (if (not (zerop (call-process org-git-program nil t nil --no-pager 
(concat --git-dir= gitdir) symbolic-ref -q HEAD))) (error git error: 
%s  (buffer-string)) (goto-char (point-min)) (if (looking-at ^refs/heads/) 
(buffer-substring 12 (1- (point-max))
  (unwind-protect (progn (if (not (zerop (call-process org-git-program nil t 
nil --no-pager (concat --git-dir= gitdir) symbolic-ref -q HEAD))) 
(error git error: %s  (buffer-string)) (goto-char (point-min)) (if 
(looking-at ^refs/heads/) (buffer-substring 12 (1- (point-max)) (and 
(buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if (not 
(zerop (call-process org-git-program nil t nil --no-pager (concat 
--git-dir= gitdir) symbolic-ref -q HEAD))) (error git error: %s  
(buffer-string)) (goto-char (point-min)) (if (looking-at ^refs/heads/) 
(buffer-substring 12 (1- (point-max)) (and (buffer-name temp-buffer) 
(kill-buffer temp-buffer
  (with-current-buffer temp-buffer (unwind-protect (progn (if (not (zerop 
(call-process org-git-program nil t nil --no-pager (concat --git-dir= 
gitdir) symbolic-ref -q HEAD))) (error git error: %s  (buffer-string)) 
(goto-char (point-min)) (if (looking-at ^refs/heads/) (buffer-substring 12 
(1- (point-max)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer
  (let ((temp-buffer (generate-new-buffer  *temp*))) (with-current-buffer 
temp-buffer (unwind-protect (progn (if (not (zerop (call-process 
org-git-program nil t nil --no-pager ... symbolic-ref -q HEAD))) (error 
git error: %s  (buffer-string)) (goto-char (point-min)) (if (looking-at 
^refs/heads/) (buffer-substring 12 (1- ...) (and (buffer-name 
temp-buffer) (kill-buffer temp-buffer)
  (with-temp-buffer (if (not (zerop (call-process org-git-program nil t nil 
--no-pager (concat --git-dir= gitdir) symbolic-ref -q HEAD))) (error 
git error: %s  (buffer-string)) (goto-char (point-min)) (if (looking-at 
^refs/heads/) (buffer-substring 12 (1- (point-max))
  org-git-get-current-branch(/Users/ianus/MyElisp/Organisation/.git)
  (let* ((gitdir (first (org-git-find-gitdir (file-truename file 
(branchname (org-git-get-current-branch gitdir)) (timestring 
(format-time-string %Y-%m-%d (current-time (org-make-link git: file 
:: (org-git-create-searchstring branchname timestring)))
  org-git-create-git-link(~/MyElisp/Organisation/English.org)
  (org-store-link-props :type git :link (org-git-create-git-link file))
  (progn (org-store-link-props :type git :link (org-git-create-git-link 
file)))
  (if (org-git-gitrepos-p file) (progn (org-store-link-props :type git :link 
(org-git-create-git-link file
  (when (org-git-gitrepos-p file) (org-store-link-props :type git :link 
(org-git-create-git-link file)))
  (let ((file (abbreviate-file-name (buffer-file-name (when 
(org-git-gitrepos-p file) (org-store-link-props :type git :link 
(org-git-create-git-link file
  (progn (let ((file (abbreviate-file-name (buffer-file-name (when 
(org-git-gitrepos-p file) (org-store-link-props :type git :link 
(org-git-create-git-link file)
  (if (buffer-file-name) (progn (let ((file (abbreviate-file-name 
(buffer-file-name (when (org-git-gitrepos-p file) (org-store-link-props 
:type git :link (org-git-create-git-link file))
  (when (buffer-file-name) (let ((file (abbreviate-file-name 
(buffer-file-name (when (org-git-gitrepos-p file) (org-store-link-props 
:type git :link (org-git-create-git-link file)
  org-git-store-link()
  run-hook-with-args-until-success(org-git-store-link)
  (cond ((run-hook-with-args-until-success (quote org-store-link-functions)) 
(setq link (plist-get org-store-link-plist :link) desc (or (plist-get 
org-store-link-plist :description) link))) ((equal (buffer-name) *Org Edit Src 
Example*) (let (label gc) (while (or (not label) (save-excursion 
(save-restriction (widen) (goto-char ...) 

[O] [ANN] neo - No Emacs Org in Python

2011-04-19 Thread Olivier Schwander
Dear Org users,

I am pleased to do the first announce of neo, which stands for No Emacs
Org. The goal of this project is to provide a full implementation of
Org usable in Python.

Current features 
~
  - Org file parser
  - Agenda builder
  - Todo-list builder
  - Custom todo keywords
  - Command line interface for agenda and todo-lists

Limitations 

  - Read-only (no org file modifications support)
  - No drawers parsing
  - No exporters
  - No formaters parsing (like ==, //, ** and so on, it will wait for exporters)
  - No filtering support

Roadmap 

  - Filtering based on tags
  - Write support for changing todo keywords
  - Capture action in the cli
  - Exporter for HTML

Ideas of possible applications 
~~~
  - Command line interface
  - Web applications (for GTD like http://hiveminder.com, or even a wiki)
  - Batch export on a server without emacs
  - Integration with others tools (like vim)
  - Qt/Gtk user interface

This is not a release (I need to do more tests, and add some
documentation), but more a request for comments, ideas or possible
improvement. You can fetch the sources with


  darcs get http://chadok.info/darcs/neo

and have a look at the repository on http://redmine.chadok.info/projects/neo

The package can be installed with the usual Python tools (python
setup.py build/install). Then launch the command 'neo' to see the help (or
simply launch neo in the sources directory).

Cheers,

Olivier




Re: [O] Cannot use C-c c to capture from within some files

2011-04-19 Thread Nick Dokos
Stefan Strohmeier stefan.strohme...@gmx.de wrote:

 Dear Org-mode users,
 
 I am a happy user of org-mode. Thanks for this awesome piece of software.
 
 However, I have some problems in running the org-capture command with C-c c 
 in some files. For example, I have a buffer English.org opened and when I try 
 to use C-c c to capture I get the following error message:
 
 Error
 zerop: Searching for program: No such file or directory, git
 Error
 
It would help if you turn on debug-on-error to get a backtrace:
Do M-x toggle-debug-on-error and then trigger the error again.

 From within other files such as the org agenda buffer I can use the capture 
 command without any problems. I cannot see why this problem should be related 
 to git. I have a working copy of git installed. I use the global-set-key as 
 explained in the tutorial.
 
 I am using GNU Emacs 23.3.1 (NS apple-appkit) on a Mac OS X 10.6.7 machine.
 
 Can someone please tell me what the problem might be. Any hint is greatly 
 appreciated. Using google I could not find a related post. Please apologize 
 if this question has been asked before.
 

Just guessing: There is probably a minor mode that gets enabled because
this file is under git control. That minor mode probably hijacks the C-c
c key-binding.

Nick



Re: [O] Cannot use C-c c to capture from within some files

2011-04-19 Thread Bernt Hansen
Hi Stefan,

It looks like your capture session is trying to create a git link and
can't find the 'git' program.  I assume you are using
contrib/org-git-link.el.  I personally have no experience with this
package.

Can you provide details of the capture template you are using when you
get this error?  Is 'git' in your PATH for emacs (can Emacs find it?)
Does this same template work okay in the agenda?

You may need to customize org-git-program if 'git' isn't available in
your default path for Emacs.

I don't use a Mac so we may need some Mac users to chime in here for
assistance.

Regards,
Bernt


Stefan Strohmeier stefan.strohme...@gmx.de writes:

 Dear Bernt and everyone else,

 Please provide a backtrace
 
 (setq debug-on-error t)
 
 and regenerate the error.  Loading org without compiled elisp (C-u M-x
 org-reload) will give better backtrace details.

 This is the backtrace I get when I do a org-reload withtout the compiled 
 elisp:

 Debug On Error Start
 Debugger entered--Lisp error: (file-error Searching for program No such 
 file or directory git)
   call-process(git nil t nil --no-pager 
 --git-dir=/Users/ianus/MyElisp/Organisation/.git symbolic-ref -q HEAD)
   (zerop (call-process org-git-program nil t nil --no-pager (concat 
 --git-dir= gitdir) symbolic-ref -q HEAD))
   (not (zerop (call-process org-git-program nil t nil --no-pager (concat 
 --git-dir= gitdir) symbolic-ref -q HEAD)))
   (if (not (zerop (call-process org-git-program nil t nil --no-pager
 (concat --git-dir= gitdir) symbolic-ref -q HEAD))) (error git
 error: %s  (buffer-string)) (goto-char (point-min)) (if (looking-at
 ^refs/heads/) (buffer-substring 12 (1- (point-max)
   (progn (if (not (zerop (call-process org-git-program nil t nil
 --no-pager (concat --git-dir= gitdir) symbolic-ref -q
 HEAD))) (error git error: %s  (buffer-string)) (goto-char
 (point-min)) (if (looking-at ^refs/heads/) (buffer-substring 12 (1-
 (point-max))
   (unwind-protect (progn (if (not (zerop (call-process org-git-program
 nil t nil --no-pager (concat --git-dir= gitdir) symbolic-ref
 -q HEAD))) (error git error: %s  (buffer-string)) (goto-char
 (point-min)) (if (looking-at ^refs/heads/) (buffer-substring 12 (1-
 (point-max)) (and (buffer-name temp-buffer) (kill-buffer
 temp-buffer)))
   (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
 (if (not (zerop (call-process org-git-program nil t nil --no-pager
 (concat --git-dir= gitdir) symbolic-ref -q HEAD))) (error git
 error: %s  (buffer-string)) (goto-char (point-min)) (if (looking-at
 ^refs/heads/) (buffer-substring 12 (1- (point-max)) (and
 (buffer-name temp-buffer) (kill-buffer temp-buffer
   (with-current-buffer temp-buffer (unwind-protect (progn (if (not
 (zerop (call-process org-git-program nil t nil --no-pager (concat
 --git-dir= gitdir) symbolic-ref -q HEAD))) (error git error:
 %s  (buffer-string)) (goto-char (point-min)) (if (looking-at
 ^refs/heads/) (buffer-substring 12 (1- (point-max)) (and
 (buffer-name temp-buffer) (kill-buffer temp-buffer
   (let ((temp-buffer (generate-new-buffer  *temp*)))
 (with-current-buffer temp-buffer (unwind-protect (progn (if (not
 (zerop (call-process org-git-program nil t nil --no-pager
 ... symbolic-ref -q HEAD))) (error git error: %s 
 (buffer-string)) (goto-char (point-min)) (if (looking-at
 ^refs/heads/) (buffer-substring 12 (1- ...) (and (buffer-name
 temp-buffer) (kill-buffer temp-buffer)
   (with-temp-buffer (if (not (zerop (call-process org-git-program nil
 t nil --no-pager (concat --git-dir= gitdir) symbolic-ref -q
 HEAD))) (error git error: %s  (buffer-string)) (goto-char
 (point-min)) (if (looking-at ^refs/heads/) (buffer-substring 12 (1-
 (point-max))
   org-git-get-current-branch(/Users/ianus/MyElisp/Organisation/.git)
   (let* ((gitdir (first (org-git-find-gitdir (file-truename file
 (branchname (org-git-get-current-branch gitdir)) (timestring
 (format-time-string %Y-%m-%d (current-time (org-make-link git:
 file :: (org-git-create-searchstring branchname timestring)))
   org-git-create-git-link(~/MyElisp/Organisation/English.org)
   (org-store-link-props :type git :link (org-git-create-git-link file))
   (progn (org-store-link-props :type git :link (org-git-create-git-link 
 file)))
   (if (org-git-gitrepos-p file) (progn (org-store-link-props :type git 
 :link (org-git-create-git-link file
   (when (org-git-gitrepos-p file) (org-store-link-props :type git :link 
 (org-git-create-git-link file)))
   (let ((file (abbreviate-file-name (buffer-file-name (when 
 (org-git-gitrepos-p file) (org-store-link-props :type git :link 
 (org-git-create-git-link file
   (progn (let ((file (abbreviate-file-name (buffer-file-name (when 
 (org-git-gitrepos-p file) (org-store-link-props :type git :link 
 (org-git-create-git-link file)
   (if (buffer-file-name) (progn (let ((file (abbreviate-file-name 
 (buffer-file-name (when 

Re: [O] [ANN] neo - No Emacs Org in Python

2011-04-19 Thread Jeff Horn
I think the biggest benefit of a project like this is the doors it
opens for web development and mobile applications. Good luck!

On Tue, Apr 19, 2011 at 1:59 PM, Olivier Schwander
olivier.schwan...@chadok.info wrote:
 Dear Org users,

 I am pleased to do the first announce of neo, which stands for No Emacs
 Org. The goal of this project is to provide a full implementation of
 Org usable in Python.

 Current features
 ~
  - Org file parser
  - Agenda builder
  - Todo-list builder
  - Custom todo keywords
  - Command line interface for agenda and todo-lists

 Limitations
 
  - Read-only (no org file modifications support)
  - No drawers parsing
  - No exporters
  - No formaters parsing (like ==, //, ** and so on, it will wait for 
 exporters)
  - No filtering support

 Roadmap
 
  - Filtering based on tags
  - Write support for changing todo keywords
  - Capture action in the cli
  - Exporter for HTML

 Ideas of possible applications
 ~~~
  - Command line interface
  - Web applications (for GTD like http://hiveminder.com, or even a wiki)
  - Batch export on a server without emacs
  - Integration with others tools (like vim)
  - Qt/Gtk user interface

 This is not a release (I need to do more tests, and add some
 documentation), but more a request for comments, ideas or possible
 improvement. You can fetch the sources with


  darcs get http://chadok.info/darcs/neo

 and have a look at the repository on http://redmine.chadok.info/projects/neo

 The package can be installed with the usual Python tools (python
 setup.py build/install). Then launch the command 'neo' to see the help (or
 simply launch neo in the sources directory).

 Cheers,

 Olivier






-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/



Re: [O] Cannot use C-c c to capture from within some files

2011-04-19 Thread Stefan Strohmeier
Hi Bernt,


 It looks like your capture session is trying to create a git link and
 can't find the 'git' program.  I assume you are using
 contrib/org-git-link.el.  I personally have no experience with this
 package.
 


You are right. For some unknown reason I enabled org-git-link in the 
org-modules pane. I unchecked it and now it is working fine.

Thanks for your quick help.
Stefan


Re: [O] [ANN] neo - No Emacs Org in Python

2011-04-19 Thread Christopher Allan Webber
Oliver,

Neat!  Only browsed it briefly but looks like it has some cool ideas :)q

bikeshed
One comment: it seems strange that the package name is neo and
yet I'm import org'ing.  Maybe the namespace should be neoorg?
/bikeshed

A nice start!  Look forward to seeing more!


Olivier Schwander olivier.schwan...@chadok.info writes:

 Dear Org users,

 I am pleased to do the first announce of neo, which stands for No Emacs
 Org. The goal of this project is to provide a full implementation of
 Org usable in Python.

 Current features 
 ~
   - Org file parser
   - Agenda builder
   - Todo-list builder
   - Custom todo keywords
   - Command line interface for agenda and todo-lists

 Limitations 
 
   - Read-only (no org file modifications support)
   - No drawers parsing
   - No exporters
   - No formaters parsing (like ==, //, ** and so on, it will wait for 
 exporters)
   - No filtering support

 Roadmap 
 
   - Filtering based on tags
   - Write support for changing todo keywords
   - Capture action in the cli
   - Exporter for HTML

 Ideas of possible applications 
 ~~~
   - Command line interface
   - Web applications (for GTD like http://hiveminder.com, or even a wiki)
   - Batch export on a server without emacs
   - Integration with others tools (like vim)
   - Qt/Gtk user interface

 This is not a release (I need to do more tests, and add some
 documentation), but more a request for comments, ideas or possible
 improvement. You can fetch the sources with


   darcs get http://chadok.info/darcs/neo

 and have a look at the repository on http://redmine.chadok.info/projects/neo

 The package can be installed with the usual Python tools (python
 setup.py build/install). Then launch the command 'neo' to see the help (or
 simply launch neo in the sources directory).

 Cheers,

 Olivier



-- 
퓒퓱퓻퓲퓼퓽퓸퓹퓱퓮퓻 퓐퓵퓵퓪퓷 퓦퓮퓫퓫퓮퓻



Re: [O] [ANN] neo - No Emacs Org in Python

2011-04-19 Thread Olivier Schwander
Le 19 Apr 2011 15:28, Christopher Allan Webber a écrit:
 bikeshed
 One comment: it seems strange that the package name is neo and
 yet I'm import org'ing.  Maybe the namespace should be neoorg?
 /bikeshed

Yes, this disturbs me too. Maybe it should be better to simply do
'import org' on Python side and 'org agenda/todo/capture/etc' on the
shell side.

Olivier



Re: [O] [ANN] neo - No Emacs Org in Python

2011-04-19 Thread Xiao-Yong Jin
Keep up the good work!

PS.  I actually wish there were a html/javascript
implementation that can pull org files directly from some
online storage places (google docs or dropbox...).  It looks
to me, by reading the code, that it might be possible to
directly port the python code to javascript?

On Tue, 19 Apr 2011 19:59:51 +0200, Olivier Schwander wrote:

 Dear Org users,
 I am pleased to do the first announce of neo, which stands for No Emacs
 Org. The goal of this project is to provide a full implementation of
 Org usable in Python.

 Current features 
 ~
   - Org file parser
   - Agenda builder
   - Todo-list builder
   - Custom todo keywords
   - Command line interface for agenda and todo-lists

 Limitations 
 
   - Read-only (no org file modifications support)
   - No drawers parsing
   - No exporters
   - No formaters parsing (like ==, //, ** and so on, it will wait for 
 exporters)
   - No filtering support

 Roadmap 
 
   - Filtering based on tags
   - Write support for changing todo keywords
   - Capture action in the cli
   - Exporter for HTML

 Ideas of possible applications 
 ~~~
   - Command line interface
   - Web applications (for GTD like http://hiveminder.com, or even a wiki)
   - Batch export on a server without emacs
   - Integration with others tools (like vim)
   - Qt/Gtk user interface

 This is not a release (I need to do more tests, and add some
 documentation), but more a request for comments, ideas or possible
 improvement. You can fetch the sources with


   darcs get http://chadok.info/darcs/neo

 and have a look at the repository on http://redmine.chadok.info/projects/neo

 The package can be installed with the usual Python tools (python
 setup.py build/install). Then launch the command 'neo' to see the help (or
 simply launch neo in the sources directory).

 Cheers,

 Olivier






-- 
Jc/*__o/*
X\ * (__
Y*/\  



Re: [O] [ANN] neo - No Emacs Org in Python

2011-04-19 Thread Olivier Schwander
Le 19 Apr 2011 16:36, Xiao-Yong Jin a écrit:
 Keep up the good work!
 
 PS.  I actually wish there were a html/javascript
 implementation that can pull org files directly from some
 online storage places (google docs or dropbox...).  It looks
 to me, by reading the code, that it might be possible to
 directly port the python code to javascript?

Sure, you may rewrite a parser and a library in js. I am not sure
'directly port' is appropriate in this case.

What seems more feasible in the current state is a web application which
use my python library on the server side and some js/web2.0/buzzword in
a fancy web page for the frontend. In this case, you may use any data
source you want (google docs, dropbox, regular webdav or even plain old
filesystem).

Regards,

Olivier




Re: [O] [PATCH] * org-html.el (org-html-handle-links): add an alternate for inline images

2011-04-19 Thread Aankhen
Hi,

On Tue, Apr 19, 2011 at 14:52, Bastien b...@altern.org wrote:
 Applied, thanks.

 Manuel Giraud manuel.gir...@univ-nantes.fr writes:

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

 diff --git a/lisp/org-html.el b/lisp/org-html.el
 index 5d53478..7a4564d 100644
 --- a/lisp/org-html.el
 +++ b/lisp/org-html.el
 @@ -888,7 +888,8 @@ OPT-PLIST is the export options list.
         (if (string-match ^file: desc)
             (setq desc (substring desc (match-end 0)
       (setq desc (org-add-props
 -                    (concat img src=\ desc \/)
 +                    (concat img src=\ desc \ alt=\
 +                            (file-name-nondirectory desc) \/)
                      '(org-protected t
        (cond
         ((equal type internal)

This might not be the best solution.  The purpose of the ‘alt’
attribute is to provide a textual alternative, which the file name
really isn’t.  It would be better to provide an empty value:

,
| img src=foo.png alt=/
`

I took a look at ‘org-html.el’ and changed the relevant line, but it
doesn’t seem to have any effect.  I think it’s being overriden by
‘org-export-html-format-image’, so I changed that as well.  Here’s the
resultant patch:

--8---cut here---start-8---
diff --git a/lisp/org-html.el b/lisp/org-html.el
index 7a4564d..570d7d6 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -888,8 +888,7 @@ OPT-PLIST is the export options list.
  (if (string-match ^file: desc)
  (setq desc (substring desc (match-end 0)
(setq desc (org-add-props
-  (concat img src=\ desc \ alt=\
-  (file-name-nondirectory desc) \/)
+  (concat img src=\ desc \ alt=\\/)
   '(org-protected t
   (cond
((equal type internal)
@@ -1839,8 +1838,8 @@ lang=\%s\ xml:lang=\%s\
   Create image tag with source and attributes.
   (save-match-data
 (if (string-match ^ltxpng/ src)
-   (format img src=\%s\ alt=\%s\/
-src (org-find-text-property-in-string 'org-latex-src src))
+   (format img src=\%s\ alt=\\/
+src)
   (let* ((caption (org-find-text-property-in-string 'org-caption src))
 (attr (org-find-text-property-in-string 'org-attributes src))
 (label (org-find-text-property-in-string 'org-label src)))
@@ -1855,7 +1854,7 @@ lang=\%s\ xml:lang=\%s\
src
(if (string-match \\alt= (or attr ))
(concat   attr )
- (concat   attr  alt=\ src \)))
+ (concat   attr  alt=\\)))
(if caption
(format /p%s
 /div%s
--8---cut here---end---8---

Aankhen



[O] Minor manual addition

2011-04-19 Thread rpgoldman
I have been having trouble remembering the use of easy templates, because
I tende to look it up relative to Literal Examples (which is why I want
to use them), and not using the facility name (which for some reason I find
very difficult to remember).  The patch adds a cross-reference from the
discussion of Literal Examples to the Easy Templates that make Literal 
Examples easy to use in an org file.

I hope this addition is inoffensive and helpful!




[O] [PATCH] Add a cross-reference from Literal Examples to Easy Templates.

2011-04-19 Thread rpgoldman
From: Robert P. Goldman rpgold...@real-time.com

Easy templates are especially useful for entering the begin and end pairs
that arise in supplying literal examples.
---
 doc/org.texi |4 
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 8ca4426..17922d4 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -8916,6 +8916,10 @@ If the syntax for the label format conflicts with the 
language syntax, use a
 HTML export also allows examples to be published as text areas, @xref{Text
 areas in HTML export}.
 
+Because the @code{#+BEGIN_...} and @code{#+END_...} patterns need to be added
+so often, shortcuts are provided using the Easy Templates facility
+(@pxref{Easy Templates}).
+
 @table @kbd
 @kindex C-c '
 @item C-c '
-- 
1.7.3.5




Re: [O] [ANN] neo - No Emacs Org in Python

2011-04-19 Thread Jeff Horn
On Tue, Apr 19, 2011 at 4:52 PM, Olivier Schwander
olivier.schwan...@chadok.info wrote:
 What seems more feasible in the current state is a web application which
 use my python library on the server side and some js/web2.0/buzzword in
 a fancy web page for the frontend. In this case, you may use any data
 source you want (google docs, dropbox, regular webdav or even plain old
 filesystem).

In my completely amateur opinion, it sounds like a job for wsgi.

-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/



[O] NEW auto dimension tables doesn't work in orgtbl Text mode

2011-04-19 Thread Sebastian Szwarc
Hello,
I've noticed on Aquamacs (both current and previous version) that if I enter 
orgtbl mode for Text file or for scratch
width of the columns are not properly set up after hitting Tab key.
In org-mode everything is OK and columns are set properly.
Any suggestions?

regards
Sebastian


[O] agenda bug

2011-04-19 Thread Nicholas Putnam
I get a strange error message when trying to view the agenda for the current
day/week with C-c a a :

org-agenda-highlight-todo: Args out of range: #(  diary:   0 14
(org-category diary tags nil org-highest-priority 65 org-lowest-priority
67 time-of-day nil ...)), 26, 30

I can make it go away by deleting the following from the end of one of my
agenda files, or changing the date + or - one day.

** 2011-04-19 Tue

Why would this break the agenda view?

Nik


Re: [O] NEW auto dimension tables doesn't work in orgtbl Text mode

2011-04-19 Thread Nick Dokos
Sebastian Szwarc seba_szw...@tlen.pl wrote:

 I've noticed on Aquamacs (both current and previous version) that if I
 enter orgtbl mode for Text file or for scratch width of the columns
 are not properly set up after hitting Tab key.  In org-mode everything
 is OK and columns are set properly.  Any suggestions?
 

Must be specific to Aquamacs: I can't reproduce it on 

Ubuntu 10.10
GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 
2011-04-13
Org-mode version 7.5 (release_7.5.181.g66caf)

Nick



Re: [O] agenda bug

2011-04-19 Thread Nick Dokos
Nicholas Putnam nput...@gmail.com wrote:

 I get a strange error message when trying to view the agenda for the
 current day/week with C-c a a :
 
 org-agenda-highlight-todo: Args out of range: #(  diary:   0 14
 (org-category diary tags nil org-highest-priority 65
 org-lowest-priority 67 time-of-day nil ...)), 26, 30
 
 I can make it go away by deleting the following from the end of one of
 my agenda files, or changing the date + or - one day.
 
 ** 2011-04-19 Tue
 
 Why would this break the agenda view? 
 

Who knows? A backtrace would help however: M-x toggle-debug-on-error and
trigger the error again.

Nick

PS. I sound like a broken record :-)



Re: [O] NEW auto dimension tables doesn't work in orgtbl Text mode

2011-04-19 Thread Samuel Wales
What type of font?  What type of characters?



Re: [O] [ANN] neo - No Emacs Org in Python

2011-04-19 Thread Jude DaShiell
There is an orgmode app for the iphone that can do imports.  No idea what 
was used to write it though.On Tue, 19 Apr 2011, Xiao-Yong Jin wrote:

 Keep up the good work!
 
 PS.  I actually wish there were a html/javascript
 implementation that can pull org files directly from some
 online storage places (google docs or dropbox...).  It looks
 to me, by reading the code, that it might be possible to
 directly port the python code to javascript?
 
 On Tue, 19 Apr 2011 19:59:51 +0200, Olivier Schwander wrote:
 
  Dear Org users,
  I am pleased to do the first announce of neo, which stands for No Emacs
  Org. The goal of this project is to provide a full implementation of
  Org usable in Python.
 
  Current features 
  ~
- Org file parser
- Agenda builder
- Todo-list builder
- Custom todo keywords
- Command line interface for agenda and todo-lists
 
  Limitations 
  
- Read-only (no org file modifications support)
- No drawers parsing
- No exporters
- No formaters parsing (like ==, //, ** and so on, it will wait for 
  exporters)
- No filtering support
 
  Roadmap 
  
- Filtering based on tags
- Write support for changing todo keywords
- Capture action in the cli
- Exporter for HTML
 
  Ideas of possible applications 
  ~~~
- Command line interface
- Web applications (for GTD like http://hiveminder.com, or even a wiki)
- Batch export on a server without emacs
- Integration with others tools (like vim)
- Qt/Gtk user interface
 
  This is not a release (I need to do more tests, and add some
  documentation), but more a request for comments, ideas or possible
  improvement. You can fetch the sources with
 
 
darcs get http://chadok.info/darcs/neo
 
  and have a look at the repository on http://redmine.chadok.info/projects/neo
 
  The package can be installed with the usual Python tools (python
  setup.py build/install). Then launch the command 'neo' to see the help (or
  simply launch neo in the sources directory).
 
  Cheers,
 
  Olivier
 
 
 
 
 
 
 





[O] [ANN] org-bibtex.el --- convert between Org headings and bibtex entries

2011-04-19 Thread Eric Schulte
Hi,

In an attempt to organize my reading notes, I've written the following
tool which allows both for exporting Org-mode headlines with bibtex
meta-data to bibtex entries, and for reading existing bibtex entries
into Org-mode headings.

One nice feature of these functions is the ability to check that all
required fields are present in a given headline based on the bibtex type
(e.g., :article, :inproceedings), and prompt for missing fields.

See the top of the elisp file for more usage information.
https://github.com/eschulte/org-bibtex/blob/master/org-bibtex.el

Cheers -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] agenda bug

2011-04-19 Thread Memnon Anon
Hi,

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

 I get a strange error message when trying to view the agenda for the 
 current day/week with C-c a a :

 org-agenda-highlight-todo: Args out of range: #(  diary:   0 14
 (org-category diary tags nil org-highest-priority 65
 org-lowest-priority 67 time-of-day nil ...)), 26, 30

 I can make it go away by deleting the following from the end of one of
 my agenda files, or changing the date + or - one day.

 ** 2011-04-19 Tue

 Why would this break the agenda view? 

It would be nice to have some more informations.

Is this exactly the line you have in your agenda?
Version orgmode, emacs etc.?
Does the same happen when the item is not at the end of that agenda
file, but say somewhere in the middle?

See: http://orgmode.org/manual/Feedback.html or
 (info (org)Feedback) --- `C-x C-e' here




[O] Agenda todo filter order

2011-04-19 Thread Bernt Hansen
Hi Carsten,

I'm trying to tune my shiny new block agenda so it has a section that
displays non-project tasks without a scheduled date or deadline date in
the future.

I have a non-standard skipping function that skips project trees which
I'm using in this agenda so what is left should only be non-project
tasks.  My agenda with only this non-standard skipping function works
perfectly and gives me a list of only non-project tasks.

I don't really want to see non-project tasks with a scheduled or
deadline date in the future.  I added org-agenda-todo-ignore-scheduled
and org-agenda-todo-ignore-deadlines to 'future to this agenda view and
now I get extra project tasks in the list which is incorrect.

It seems the org-agenda-todo-ignore-scheduled (and deadlines) vars are
applied to the list of todo tasks first -- so any projects that have a
scheduled or deadline date are skipped (but not the entire tree - just
the top-level project task) -- this makes all of the project subtasks
appear in my 'non-project' task list which is wrong.

If the non-standard skipping function was applied first and then the
test for scheduled/deadline I think it work work the way I want.  Is
this hard to change?

Example:

* TODO Project task
** TODO Subtask 1
** TODO Subtask 2
* TODO Non project task
* TODO Another non-project-task
* TODO Some future non-project task

[2011-04-19 Tue 20:33]
[2011-04-19 Tue 20:33]
[2011-04-19 Tue 20:33]
[2011-04-19 Tue 20:33]
[2011-04-19 Tue 20:33]



Re: [O] Agenda todo filter order

2011-04-19 Thread Bernt Hansen
Sorry for the double post - hit C-c C-s in Gnus trying to set the
 scheduled date and that sends the message... oops

Hi Carsten,

I'm trying to tune my shiny new block agenda so it has a section that
displays non-project tasks without a scheduled date or deadline date in
the future.

I have a non-standard skipping function that skips project trees which
I'm using in this agenda so what is left should only be non-project
tasks.  My agenda with only this non-standard skipping function works
perfectly and gives me a list of only non-project tasks.

I don't really want to see non-project tasks with a scheduled or
deadline date in the future.  I added org-agenda-todo-ignore-scheduled
and org-agenda-todo-ignore-deadlines to 'future to this agenda view and
now I get extra project tasks in the list which is incorrect.

It seems the org-agenda-todo-ignore-scheduled (and deadlines) vars are
applied to the list of todo tasks first -- so any projects that have a
scheduled or deadline date are skipped (but not the entire tree - just
the top-level project task) -- this makes all of the project subtasks
appear in my 'non-project' task list which is wrong.

If the non-standard skipping function was applied first and then the
test for scheduled/deadline I think it work work the way I want.  Is
this hard to change?

Example:

--8---cut here---start-8---
* TODO Project task
  SCHEDULED: 2011-04-12 Tue
** TODO Subtask 1
** TODO Subtask 2
* TODO Non project task
* TODO Another non-project-task
  DEADLINE: 2011-06-03 Fri
* TODO Some future non-project task
  SCHEDULED: 2011-06-18 Sat
--8---cut here---end---8---

My agenda view for non-project tasks should show only

* TODO Non project task
* TODO Another non-project-task
* TODO Some future non-project task

but with (setq org-agenda-todo-ignore-scheduled 'future) the top level
'Project task' is skipped and 'Subtask 1' show up (and is considered not
a project since it has no subtasks)

If this can't be changed for some technical reason I guess I can make my
skipping function more intelligent and look up the hierarchy as well to
make sure this task is not under some other project task but I didn't
think that would be necessary to accomplish what I want.

Do you have any suggestions for how I get to my desired end result?

Regards,
Bernt



Re: [O] [ANN] org-bibtex.el --- convert between Org headings and bibtex entries

2011-04-19 Thread Jeff Horn
This looks great! I haven't quite read all the code, but I wonder how
this would work on files where bib entries are in their own headline
or mixed into the document ad hoc. Is this designed for a document
with *only* bibtex headlines?

On Tue, Apr 19, 2011 at 7:52 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Hi,

 In an attempt to organize my reading notes, I've written the following
 tool which allows both for exporting Org-mode headlines with bibtex
 meta-data to bibtex entries, and for reading existing bibtex entries
 into Org-mode headings.

 One nice feature of these functions is the ability to check that all
 required fields are present in a given headline based on the bibtex type
 (e.g., :article, :inproceedings), and prompt for missing fields.

 See the top of the elisp file for more usage information.
 https://github.com/eschulte/org-bibtex/blob/master/org-bibtex.el

 Cheers -- Eric

 --
 Eric Schulte
 http://cs.unm.edu/~eschulte/





-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/



Re: [O] [ANN] org-bibtex.el --- convert between Org headings and bibtex entries

2011-04-19 Thread Eric Schulte
Jeff Horn jrhorn...@gmail.com writes:

 This looks great! I haven't quite read all the code, but I wonder how
 this would work on files where bib entries are in their own headline
 or mixed into the document ad hoc. Is this designed for a document
 with *only* bibtex headlines?


If a headline doesn't have a type property, then it will be skipped by
the `org-bibtex' function which writes out the .bib file and the
`org-bibtex-check' functions.  So it should be possible to arbitrarily
include/nest bibliography headlines and non-bib headlines in a document.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/