[Orgmode] Re: Patch to fix two bugs in HTML/DocBook exporters

2009-04-09 Thread Leo
On 2009-04-09 06:27 +0100, Baoqiu Cui wrote:
   level are exported as *one* list.  For example, the following two
   lists

   1. Ordered List Item 1
   2. Ordered List Item 2

   - Itemized List Item 1
   - Itemized List Item 2
   - Itemized List Item 3

 This is, actually, not a bug but on purpose.
 List boundaries are set by indentation, and the
 list type is set by the first item.  I prefer to keep it that way.
 In the same way, the actual numbers in an ordered list are ignored
 and the list is renumbered on export.

 Thanks for the explanation, Carsten! This makes perfect sense to me.
 No wonder I found the same problem in function
 `org-beginning-of-item-list'. :-)

 If a lot of people like to mix different list types together in the
 way I showed above, I would prefer that Org mode has finer support for
 this. But for now, I think we should keep the existing way.

mixing lists is easy to do. Just use Alt + left/right to
decrease/increase the item's indentation.

I think a way to terminate list is quite important, particularly when
embedding list inside an article. I always found it difficult to start a
new paragrah after a list because when you type TAB on the first line of
the new paragraph it indents it to the level that shows it is part of
the last list item.

How about making double blank line do that?

Cheers,
-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.


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


[Orgmode] Re: Patch to fix two bugs in HTML/DocBook exporters

2009-04-09 Thread Baoqiu Cui
Hi Leo,

Leo sdl@gmail.com writes:

   1. Ordered List Item 1
   2. Ordered List Item 2

   - Itemized List Item 1
   - Itemized List Item 2
   - Itemized List Item 3

 mixing lists is easy to do. Just use Alt + left/right to
 decrease/increase the item's indentation.

Increasing the indentation of the 2nd list (itemized list) makes it part
of item 2 of the ordered list, doesn't it?  So, instead of having two
lists at the same level, we will end up having only one list -- the
ordered list.

If these two lists are not nested in another outer, higher level list,
decreasing the indentation of 2nd list would work, but it won't look
very good.

 I think a way to terminate list is quite important, particularly when
 embedding list inside an article. I always found it difficult to start a
 new paragrah after a list because when you type TAB on the first line of
 the new paragraph it indents it to the level that shows it is part of
 the last list item.

 How about making double blank line do that?

I don't have the habit of hitting TAB to start a new paragraph, so I
don't have this problem. :-)  Nevertheless, having an option to disable
indentation based on a list two-blank line above seems useful.

Baoqiu



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


Re: [Orgmode] Import outlook appointments meetings into Org Mode ... coming soon, but need help.

2009-04-09 Thread Carsten Dominik


On Apr 8, 2009, at 6:45 PM, Jonathan Arkell wrote:


Hello

I am working on some code to import Outlook appointments into org- 
mode.  It will use the Wsh Repl (http://www.emacswiki.org/emacs-en/WshRepl 
) to talk to the Windows Scripting Host to connect to outlook to  
retrieve the meetings.


So far it is going well, but I have a question:

I plan on storing the outlook meeting entry IDs in the created tasks  
inside of org, this way I can be sure not to re-create any  
previously imported meetings.  Is this best stored as a property? Is  
there already an established ID property I can use?  (FYI, the  
outlook EntryID is a 140 (!) digit hex number.)


Org handles an ID property which can be an arbitrary string, but it  
must be unique.

So you could directly use these.

- Carsten

P.S. Why they felt compelled to make an ID 140 hex digits is beyond me.
16^140 is  
3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976
which is about 4 times 10^168, which is 100 million times the number  
of particles in the universe squared, so 100 million times the number  
of possible particle-particle pairings across the entire universe.   
Only very blown-up egos will think they'll ever get this many emails  
or tasks.  Even though, I know some who might be thinking just  
that :-)




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


Re: [Orgmode] Format for timestamp export

2009-04-09 Thread Carsten Dominik


On Apr 7, 2009, at 1:12 AM, Daniel Clemente wrote:



Hi. Since I edit my files from different computers, each with  
different locales, I end up with dates like:



  CLOCK: [2009-04-01 mié 14:15]--[2009-04-01 mié 14:22] =  0:07
…
SCHEDULED: 2009-03-26 dj 18:00
…
CLOSED: [2007-11-25 So 19:05]

… 2007-08-31 Fri 17:25


Emacs and I can live with these localised week day names, but to  
external (HTML) users I would like to show dates in a custom format  
so that they always look the same.



Can I format timestamps on export?


You can customize them for display, which will also
transfer to exported files.
Check out the variables `org-display-custom-times' and
`org-time-stamp-custom-formats'.

When you turn this on, you lose some of the editing capabilities
for time stamps with S-cursor keys.  So if you really only need it
for export, you can use one of the export preprocessor hooks and
change all the time stamps with a function like (untested):

(add-hook 'org-export-preprocess-final-hook
 (lambda ()
   (let ((org-display-custom-times t)
  (org-time-stamp-custom-formats
   '(%m/%d/%y %a . %m/%d/%y %a %H:%M))) ;; customize!
 (goto-char (point-min))
 (while (re-search-forward org-ts-regexp-both nil t)
(replace-match (save-match-data
 (org-translate-time (match-string 0)))
   t t)

HTH

- Carsten









Thanks,
Daniel


___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Thomas Shannon sent you a Friend Request on Yaari

2009-04-09 Thread Tom Shannon
Please do NOT respond to this!  It is spam and I did NOT send it.

My apologies.
Tom S.

On Wed, Apr 8, 2009 at 7:47 PM, Thomas Shannon tsha...@gmail.com wrote:
 Thomas Shannon wants you to join Yaari!

 Is Thomas your friend?

 Yes, Thomas is my friend! No, Thomas isn't my friend.

 Please respond or Thomas may think you said no :(

 Thanks,
 The Yaari Team
 
 If you prefer not to receive this email tell us here. If you have any
 concerns
 regarding the content of this message, please email ab...@yaari.com.
 Yaari LLC, 358 Angier Ave, Atlanta, GA 30312


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





-- 
The release of the atom power has changed everything except our way of
thinking...  The solution to this problem lies in the heart of
mankind.  If only I had known, I should have become a watchmaker.
-- Albert Einstein

Thomas Shannon
Department of Physiology and Molecular Biophysics
Rush University
Rm. 1213
1750 W. Harrison St.
Chicago, IL 60612


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


[Orgmode] SOLVED: org-set-tags-command error - org-fast-tag-selection: Wrong type argument: char-or-string-p, (100)

2009-04-09 Thread Deric Bytes
When I did C-c C-q I got the following error

org-fast-tag-selection: Wrong type argument: char-or-string-p, (100)

problem was I missed a dot in (design ?d))), it should have been
(design . ?d)))

solution

 (setq org-tag-persistent-alist '((setup . ?s) (problem . ?p)
(howto . ?h)  (using . ?u)
(ref . ?r)  (reng . ?e)
(cmd . ?c) (design . ?d)))


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


[Orgmode] SOLVED: org TODO keywords not showing up

2009-04-09 Thread Deric Bytes
I set a org file to load as my initial page, in my .emacs file

  (find-file ~/note-keeping-log-090331.org)

I also defined my own set of TODO tags.

However they were not showing in my initial page.

Problem was my file was being loaded before the TODO tags were set

The solution was to delay the loading of my file until my .emacs file was loaded

  (eval-after-load .emacs '(find-file ~/note-keeping-log-090331.org))


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


[Orgmode] Setting the location of remember based on properties

2009-04-09 Thread Deric Bytes
Is it possible to set the location remember files based on properties
of the headline added.

:PROPERTIES:
   :SUBJECT: org
:END:

(Todo ?t * TODO %^{Brief Description} %^g\n%?\nAdded: %U
~/notes/%p^{SUBJECT}-todo-090331.org)

where %p^{SUBJECT}  is org


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


Re: [Orgmode] org-choose bugfix - whoops

2009-04-09 Thread Carsten Dominik

Hi Tom,

On Apr 9, 2009, at 2:05 AM, Tom Breton (Tehom) wrote:


My previous fix was mistaken.  Not sure why it passed tests; I
have two theories.  Regardless, it was wrong.  Current
`(org-outline-level)' seems the correct LEVEL= matcher argument to
make `org-map-entries' find only an item's immediate children.   
(Operated

on by `org-reduced-level' of course)  I don't quite understand why.

Second, I may have solved the mystery of how the bug got by me before.
`org-map-entries' used to place point at the beginning of an item, a
fact which I used to recognize visiting the same item.  That seems to
have changed between org versions.

Third, I have fixed the real bug - properly now, I hope! - and
attached a patch.


I have applied the patch.

Indeed, there was a problem with the cursor positioning during mapping,
but I think this should be fixed again.  Really, I want the cursor at
the beginning of the entry when the mapping function is called.

So maybe you'd like to pull from git, check again, and revert the  
change?
I believe that the back-to-heading wrapper will not hurt, but I also  
believe

it is no longer necessary.

My apologies for the mess.

- Carsten

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


Re: [Orgmode] Re: Patch to fix two bugs in HTML/DocBook exporters

2009-04-09 Thread Carsten Dominik


On Apr 9, 2009, at 7:27 AM, Baoqiu Cui wrote:


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


1. Bug One: two consecutive lists with different list types at the
same
 level are exported as *one* list.  For example, the following two
 lists

 1. Ordered List Item 1
 2. Ordered List Item 2

 - Itemized List Item 1
 - Itemized List Item 2
 - Itemized List Item 3


This is, actually, not a bug but on purpose.
List boundaries are set by indentation, and the
list type is set by the first item.  I prefer to keep it that way.
In the same way, the actual numbers in an ordered list are ignored
and the list is renumbered on export.


Thanks for the explanation, Carsten!  This makes perfect sense to me.
No wonder I found the same problem in function
`org-beginning-of-item-list'. :-)

If a lot of people like to mix different list types together in the  
way
I showed above, I would prefer that Org mode has finer support for  
this.


Hi Baoqiu,

I really don't see why.  Under what circumstances would you
want to mix list types like this, without at least on little
transition sentence between the lists?  I cannot remember any
occasion when I would have wanted this to be possible.



But for now, I think we should keep the existing way.

2. Bug Two: a paragraph *immediately* after a block like quote,  
verse,

 centered block, example, etc. is not wrapped into paragraph tags
 (p.../p in HTML or para.../para in DocBook).  While it is
not
 a big deal for HTML exporter, this bug makes exported DocBook XML
 document invalid.

 The following lines can reproduce this bug:

 : Code line one
 : Code line two
 This is a paragraph immediately after the above code block without
an
 empty line before it, and it is NOT wrapped in a paragraph (p in
 HTML or para in DocBook) in exported format.

Please let me know if you see any problems in the fix.


I would like to fix this bug, and if you send me a patch just
for this, I'd be happy to apply it.


OK.  I am attaching the new patch at the end.


Thanks, in particular also for preparing the patch
against the new file org-html.el.  I have applied
it.

- Carsten



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


Re: [Orgmode] Setting the location of remember based on properties

2009-04-09 Thread Carsten Dominik

No, this is not implemented.

- Carsten
On Apr 9, 2009, at 12:50 PM, Deric Bytes wrote:


Is it possible to set the location remember files based on properties
of the headline added.

:PROPERTIES:
  :SUBJECT: org
:END:

(Todo ?t * TODO %^{Brief Description} %^g\n%?\nAdded: %U
~/notes/%p^{SUBJECT}-todo-090331.org)

where %p^{SUBJECT}  is org


___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] SyncML

2009-04-09 Thread Nick Dokos
I thought the following article might be of interest to a lot of people here:

  http://lwn.net/Articles/326820/

It's a discussion of SyncML, a standard[1] promulgated by the Open
Mobile Alliance. The spec is available at

  http://www.openmobilealliance.org/Technical/release_program/ds_v2_0.aspx

The article is probably only available to LWN subscribers for now, but it
will be publicly available a week from now.

Nick

[1] The nice thing about standards is that there are so many of them to choose 
from.
Andrew Tanenbaum


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


Re: [Orgmode] org-protocol and encoding

2009-04-09 Thread Carsten Dominik


On Apr 6, 2009, at 1:53 PM, Sebastian Rose wrote:


Ulf Stegemann ulf-n...@zeitform.de writes:

org-protocol is really a great extension for org-mode! However, I
experience an annoyance regarding non-ascii character encoding.

When using org-protocol with remember and firefox, all non-ascii
characters get b0rked in the remember buffer (on linux, with emacs 23
and org-mode as of today and latest ff 3.0). It doesn't matter if the
source page uses html entities or literal non-ascii-characters. Does
anyone share this experience and has a suggestion on where to look  
for

the cause?



Yes. Same here.

This seems to be a emacs/remember problem though.


If I open a file `xy.txt' and select this text:

 lkäüüäüpüpjüpjsf

and then 'C-x r' to remember it, I get this in my remember buffer:

 [[file:~/xy.txt::lk%20p%20pj%20pjsf][file:~/xy.txt::lk p pj pjsf]]




This problem might be partially resolved by pulling from git and then
seting

(setq org-url-encoding-use-url-hexify t)

This is for testing only right now.

- Carsten



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


Re: [Orgmode] SyncML

2009-04-09 Thread Carsten Dominik

Hi Nick,  when it becomes available, can you end us a reminder here?

Thanks.

- Carsten

On Apr 9, 2009, at 3:10 PM, Nick Dokos wrote:

I thought the following article might be of interest to a lot of  
people here:


 http://lwn.net/Articles/326820/

It's a discussion of SyncML, a standard[1] promulgated by the Open
Mobile Alliance. The spec is available at

 http://www.openmobilealliance.org/Technical/release_program/ds_v2_0.aspx

The article is probably only available to LWN subscribers for now,  
but it

will be publicly available a week from now.

Nick

[1] The nice thing about standards is that there are so many of  
them to choose from.

   Andrew Tanenbaum


___
Emacs-orgmode mailing list
Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Error message when running remember - byte-code: Before first headline at position 363 in buffer *Remember*

2009-04-09 Thread Deric Bytes
I was hoping to add a top-level heading to my file. I changed


  (setq org-remember-templates
  '((* Task ?t %^{Task status|TODO|STARTED|SUBTASK} %^{Brief
Description} %^G\n %^{subject}p  %^{other-subjects}p
%^{sub-subjects}p  %^{keywords}p %?\nCalled from: %a\nAdded: %U
~/notes/notes-log-090410.org))

 to this  ( subsituted '* Task'  for 'Task' )

  (setq org-remember-templates
  '((Task ?t %^{Task status|TODO|STARTED|SUBTASK} %^{Brief
Description} %^G\n %^{subject}p  %^{other-subjects}p
%^{sub-subjects}p  %^{keywords}p %?\nCalled from: %a\nAdded: %U
~/notes/notes-log-090410.org))

 i did this because it was adding double stars.

I got the following error message when adding properties to my template

byte-code: Before first headline at position 363 in buffer *Remember*


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


Re: [Orgmode] Thomas Shannon sent you a Friend Request on Yaari

2009-04-09 Thread Tom Shannon
Carsten,

I did NOT send this.  I am apparently the victim of a spam website
that got access to my address book.  I am, needless to say, quite
unhappy about it and I deeply apologize.

Tom S.

On Thu, Apr 9, 2009 at 2:13 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:
 Hi Tom,

 sending this message to the mailing list is spam, in my eyes.
 I guess it was a mistake?

 - Carsten

 On Apr 9, 2009, at 2:47 AM, Thomas Shannon wrote:

 Thomas Shannon wants you to join Yaari!

 Is Thomas your friend?

 Yes, Thomas is my friend! No, Thomas isn't my friend.

 Please respond or Thomas may think you said no :(

 Thanks,
 The Yaari Team
 
 If you prefer not to receive this email tell us here. If you have any
 concerns
 regarding the content of this message, please email ab...@yaari.com.
 Yaari LLC, 358 Angier Ave, Atlanta, GA 30312


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





-- 
The release of the atom power has changed everything except our way of
thinking...  The solution to this problem lies in the heart of
mankind.  If only I had known, I should have become a watchmaker.
-- Albert Einstein

Thomas Shannon
Department of Physiology and Molecular Biophysics
Rush University
Rm. 1213
1750 W. Harrison St.
Chicago, IL 60612


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


[Orgmode] org-export-latex.el renamed

2009-04-09 Thread Carsten Dominik

Hi,

the file org-export-latex.el has been renamed to org-latex.el.

I think some of you might have

  (require 'org-export-latex)

in your setup, this needs to be changed.

Also, after pulling from the git repo,
running

   make clean
   make

to produce the correct autoloads will be important.

Thanks.

- Carsten


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


[Orgmode] SOLVED: clock in after org-remember based on TODO

2009-04-09 Thread Deric Bytes
I couldn't find any documentation on how to do it. Here's the code I
modified from an answer to a slightly different question.


;; start the clock if there is a STARTED todo tag is in your remember template
(add-hook 'org-remember-before-finalize-hook 'my-start-clock-if-needed)
(defun my-start-clock-if-needed ()
 (save-excursion
 (goto-char (point-min))
(when (re-search-forward * STARTED nil t)
 (org-clock-in


;; an example remember template
  (setq org-remember-templates
  '((Task ?t * %^{Task status|TODO|STARTED|SUBTASK} %^{Brief
Description} %^G\n %^{subject}p  %^{other-subjects}p
%^{sub-subjects}p  %^{keywords}p %?\nCalled from: %a\nAdded: %U 
~/notes/notes-log-090410.org))


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


Re: [Orgmode] org-export-latex.el renamed

2009-04-09 Thread Christopher Suckling

On 9 Apr 2009, at 17:33, Carsten Dominik wrote:


the file org-export-latex.el has been renamed to org-latex.el.

I think some of you might have

 (require 'org-export-latex)

in your setup, this needs to be changed.

Also, after pulling from the git repo,
running

  make clean
  make

to produce the correct autoloads will be important.


Hi Carsten,

I did as above and additionally removed any latex stuff from my .emacs  
(org-export-latex-classes and org-export-latex-default-class).


On trying to export to latex, I get the following error:

org-export-latex-set-initial-vars: Symbol's value as variable is void:  
org-export-html-style-include-default


Best,

Christopher


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


[Orgmode] Re: Patch to fix two bugs in HTML/DocBook exporters

2009-04-09 Thread Baoqiu Cui
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Baoqiu,

 I really don't see why.  Under what circumstances would you
 want to mix list types like this, without at least on little
 transition sentence between the lists?  I cannot remember any
 occasion when I would have wanted this to be possible.

This may be something that occasionally happens to me: I sometimes mix
list types (at the same indentation level) when I take *very* quick
notes during brainstorming discussions or when watching Google Tech
Talks.  There is no time to add a little transition sentence between the
lists.

I was surprised once or twice when two different lists were merged into
one after I hit M-RET at the end of one item in the second list.

Don't know if other people feel this little inconvenience too.  If there
is no much demand, there is no point to support this feature.

 Thanks, in particular also for preparing the patch
 against the new file org-html.el.  I have applied
 it.

Thanks for applying the patch, and for restructuring the exporter code!

Baoqiu



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


[Orgmode] [PATCH] Auto resume clock-in fails

2009-04-09 Thread Adam Elliott

Using org 6.25e:

Automatically resuming the clock after an Emacs restart fails under the 
following cases:


1. If org-log-states-order-reversed set to t (default), and a state 
change line precedes the clock line to resume.  Error message is Cannot 
restart clock because task does not contain unfinished clock.


Example:

*** STARTED test
:LOGBOOK:
- State STARTEDfrom TODO   [2009-04-09 Thu 13:50]
CLOCK: [2009-04-09 Thu 13:50]
:END:

Reason: point is placed at start of state change line and so fails 
looking-at test (org-clock.el:345).


Possible solution appears to be to use the existing function 
org-skip-over-state-notes when looking for the clock line to resume at 
org-clock.el:343.


2. If org-log-states-order-reversed set to nil.  Error message is the 
same.  Reason: point is placed *after* last clock line and so fails 
looking-at test.


Possible solution: test order-reversed and back up one clock entry 
before looking-at test.


I have combined these two ideas into a new function (patch attached).  I 
don't imagine I've handled all of the possible configurations of state 
change entries, log entries, and clock lines, in and out of drawers, so 
this will probably serve more as a basis for a solution than a solution 
itself.


(If nothing else, on org-clock.el:346 there's \\t where it should be 
\t.)


Adam
--- /usr/local/src/org-6.25e/lisp/org-clock.el  2009-04-09 10:27:00.0 
-0400
+++ org-clock.el2009-04-09 15:52:12.43750 -0400
@@ -280,7 +280,7 @@
   (interactive P)
   (catch 'abort
 (let ((interrupting (marker-buffer org-clock-marker))
- ts selected-task target-pos)
+ ts selected-task target-pos resume-clock)
   (when (equal select '(4))
(setq selected-task (org-clock-select-task Clock-in on task: ))
(if selected-task
@@ -342,16 +342,14 @@
(org-clock-find-position)
(cond
 ((and org-clock-in-resume
-  (looking-at
-   (concat ^[ \\t]*  org-clock-string
-\\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}
-+\\sw+ +[012][0-9]:[0-5][0-9]\\)\\][ \t]*$)))
- (message Matched %s (match-string 1))
- (setq ts (concat [ (match-string 1) ]))
- (goto-char (match-end 1))
+  (setq resume-clock
+(org-clock-find-last-clock-from-new-clock-position)))
+ (message Matched %s (car resume-clock))
+ (setq ts (concat [ (car resume-clock) ]))
+ (goto-char (+ (length (car resume-clock)) (cdr resume-clock)))
  (setq org-clock-start-time
(apply 'encode-time
-  (org-parse-time-string (match-string 1)
+  (org-parse-time-string (car resume-clock)
 ((eq org-clock-in-resume 'auto-restart)
  ;; called from org-clock-load during startup,
  ;; do not interrupt, but warn!
@@ -455,6 +453,29 @@
(and (re-search-forward org-property-end-re nil t)
 (goto-char (match-beginning 0
 
+(defun org-clock-find-last-clock-from-new-clock-position ()
+  Attempts to locate last clock line, assuming point is at new
+clock line position (see `org-clock-find-position').  If found,
+moves point to beginning of last clock line and returns a cons
+pair of the starting timestamp of the clock and the position of
+the match; and otherwise restores point and returns nil.
+  (let ((saved-point (point)) heading-bound)
+(save-match-data
+  (if org-log-states-order-reversed
+ (org-skip-over-state-notes)
+   (save-excursion
+ (org-back-to-heading t)
+ (beginning-of-line 2)
+ (setq heading-bound (point)))
+   (re-search-backward (concat ^[ \t]* org-clock-string) heading-bound 
t))
+  (if (looking-at
+  (concat ^[ \t]*  org-clock-string
+   \\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}
+   +\\sw+ +[012][0-9]:[0-5][0-9]\\)\\][ \t]*$))
+ (cons (match-string 1) (match-beginning 1))
+   (goto-char saved-point)
+   nil
+
 (defun org-clock-out (optional fail-quietly)
   Stop the currently running clock.
 If there is no running clock, throw an error, unless FAIL-QUIETLY is set.
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] using org-mode for keeping working hours reports?

2009-04-09 Thread Crni Gorac
As in subject: am trying to use org-mode for generating monthly
working hours reports.  Basically, I'd put in short descriptions of
tasks, and then would use clocking capabilities of org-mode to
remember time spent on each task.  Then, I'd like to create a table
with date, task description, and time spent columns, and have this
table, together with some simple text before (company, contractor,
hourly rate, etc.) and after (total working hours, total amount)
the table exported to LaTeX (so that I could generate HTML).  So I
tried going with some clocked TODO tasks, and then using clocktable,
but there are many things to tweak in order to have generated LaTeX to
my needs (first of all, I need the table only in the exported file,
etc. - and I'm not yet that good in org-mode to be able to adjust all
of this).  Thus I'm wondering is anyone else using org-mode for
something alike, and eventually willing to share own setup?  Or maybe
I just should use org-mode table functionality for something that
simple?

Also, related question: is it possible to somehow specify (on per-file
basis, eventually) that, when clocking in org-mode, the time written
get rounded to nearest 15 min. interval?

Thanks.


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


Re: [Orgmode] Re: Patch to fix two bugs in HTML/DocBook exporters

2009-04-09 Thread Mike Newman


On Thu, 9 Apr 2009 12:33:55 +0200
Carsten Dominik carsten.domi...@gmail.com wrote:

 I really don't see why.  Under what circumstances would you
 want to mix list types like this, without at least on little
 transition sentence between the lists?  I cannot remember any
 occasion when I would have wanted this to be possible.
 

I can't resist a challenge like that!

I often write quick lists summarising the advantages and disadvantages
of a proposed solution to a problem, eg:

 + It is faster
 - It is more expensive
 + It uses less memory
 - It is a horrible colour

But I don't think it is worth trying to support something like this.


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


[Orgmode] [PATCH] Report org-version after reloading

2009-04-09 Thread Bernt Hansen
---
I'm always typing 'M-x org-version' after reloading the compiled or uncompiled
org files using 'M-x org-reload'.  This just saves me typing that extra
command each time.  Yes I'm lazy ;)

This and the following patches are available on my for-carsten branch.

-Bernt


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

diff --git a/lisp/org.el b/lisp/org.el
index c17a694..249f843 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -14774,7 +14774,8 @@ With prefix arg UNCOMPILED, load the uncompiled 
versions.
  (file-exists-p (concat f .elc)))
 (load (concat f .elc) nil nil t)
   (load (concat f .el) nil nil t
- files)))
+ files))
+  (org-version))
 
 ;;;###autoload
 (defun org-customize ()
-- 
1.6.2.2.485.ge37347



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


[Orgmode] [PATCH] Document more org-refile related variables in the docstring

2009-04-09 Thread Bernt Hansen
Make it easier to find variables related to refiling by just reading
the docstring.
---
I found it took a few minutes to look up these variables that change how
org-refile works.  I just added them to the docstring so next time I can
find them faster :)

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

diff --git a/lisp/org.el b/lisp/org.el
index 249f843..1e8c706 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -8241,7 +8241,9 @@ below it are allowed.
 With prefix arg GOTO, the command will only visit the target location,
 not actually move anything.
 With a double prefix `C-u C-u', go to the location where the last refiling
-operation has put the subtree.
+operation has put the subtree.
+
+See also `org-refile-use-outline-path' and `org-completion-use-ido'
   (interactive P)
   (let* ((cbuf (current-buffer))
 (regionp (org-region-active-p))
-- 
1.6.2.2.485.ge37347



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


[Orgmode] [PATCH] org-remember: Skip creation of the default '* Notes' task

2009-04-09 Thread Bernt Hansen
Remember and refile processing does not require a task.  This change
removes the unneeded default task.

This supports a workflow where new remember tasks and notes go into a
mostly empty file which just has #+FILETAGS: at the top and nothing
else.

This workflow has a minimal number of remember templates
  - one for new tasks and (filed in tasks.org)
  - one for new notes (filed in notes.org)
  - one for phone calls (filed in phone.org)

New tasks are added as top-level tasks to the end of these files and
the #+FILETAGS: REFILE header causes each task to be easy to find.
All tasks in these files are refiled to a more appropriate org file at
a later time.
---
Carsten, (and list)

I've started using this new workflow just this week and org remember insisted
on creating an annoying '* Notes' task before my #+FILETAGS: line since there
were no tasks in the file yet.  I'm refiling as top-level tasks at the end
of the file and the '* Notes' task was just in the way.  I couldn't find any 
good reason to keep this so this patch removes the requirement.  I find tasks
to refile with a custom agenda tag search looking for the tag REFILE and this
change gets rid of the bogus 'Notes' task that kept showing up.

Let me know if I missed some reason you really need this '* Notes' default
task.

-Bernt



 lisp/org-remember.el |4 
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/lisp/org-remember.el b/lisp/org-remember.el
index 6895340..926da74 100644
--- a/lisp/org-remember.el
+++ b/lisp/org-remember.el
@@ -860,10 +860,6 @@ See also the variable `org-reverse-note-order'.
(save-excursion
  (save-restriction
(widen)
-   (and (goto-char (point-min))
-(not (re-search-forward ^\\*  nil t))
-(insert \n*  (or (and (stringp heading) heading)
-   Notes) \n))
(setq reversed (org-notes-order-reversed-p))
 
;; Find the default location
-- 
1.6.2.2.485.ge37347



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


[Orgmode] Changing multiple dates en masse

2009-04-09 Thread Mark Elston

I teach a weekly class and have a number of tasks that
go into preparing for the class.  I have an org file set
up with these tasks.

Occasionally I have to put off a class for a week.  That
means all the following classes and their sub-tasks must
also be moved by a week.  So far, I have had to expand the
entire tree and visit each task in turn and use the S-right
on each date to get the rescheduled time correct.

Is there a way to select a region and have org-mode add an
offset to each task (specifically the deadlines) in the
region?

Alternatively, is there a way of specifying my tasks such that
I can say that Task A is to take place 1w after Task B, or Task
C must take place 4d before Task D?

Mark



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


[Orgmode] OT: latest edits on worg

2009-04-09 Thread Samuel Wales
I noticed a new link on worg, latest edits.  This looks interesting.
Does it provide links to the formatted pages?

I don't know how to take advantage of it in emacs-w3m.  gnus is beyond
my ability ATM, and newsticker made emacs hang.

Is it possible to set up emacs-w3m so that you can click on the RSS
link and get a list of page titles?

-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering
worse than MS.  Greed is corrupting science into foul nonsense.  Anybody can
get the disease at any time permanently.  Do science and justice matter to
you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


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