Re: [Orgmode] org-protocol://remember:// question

2009-04-03 Thread Carsten Dominik


On Apr 2, 2009, at 8:00 PM, Sebastian Rose wrote:


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

Hi Sebastian, Tassilo,

this can be easily fixed.

Org-protocol may add arbitrary properties to the link properties.
For example, after a call

 (org-store-link-props :type type
   :link url
   :region region
   :description title
   :hello Hello world)

a template could use %:hello to access and insert this
string.  I have just changed org-remember so that the
property :annotation will be the default for %a.
Sebastian, could you please add

  :annotation (concat [[ url ][ title ]])

or something similar to the call to org-store-link-props?

Also, feel free to add any other properties that might
provide useful information for a template.



Doesn't that apply to certain link types only?

Also, the situation seems to be different for org-protocol-remember. I
think it's the way remember is used inside that function that has to  
be

changed.
Maybe I can figure that out.


Sorry my mistake.  Indeed, the way you call org-remember
overwrites the link property list.  What you need to do is this:

   (let (remember-annotation-functions)
  (org-remember nil (string-to-char template)))

Now, another advantage of doing it like this is that you
do not even have to create a temporary buffer from which you
launch org-remember.  Right now you do this, only for
the effect to get the region inserted for %i.

Much easier will not be to set the :initial property in the
call to org-store-link-props.

Thus, don't even create the *org-protocol* buffer and then do this:

  (org-store-link-props :type type
:link url
:annotation (concat [[ url ][ title ]])
:initial (or region )
:description title)
  (setq org-stored-links
(cons (list url title) org-stored-links))
  (raise-frame)
  (kill-new orglink)
  (let (remember-annotation-functions)
(org-remember nil (string-to-char template)))

I hope that this will take care of 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] Re: Bug if `org-refile-use-outline-path' is set to 'file

2009-04-03 Thread Carsten Dominik


On Apr 2, 2009, at 8:52 PM, Tassilo Horn wrote:


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

Hi Carsten,


That's what I'm doing.  After I've completed to file.org/ an
additional TAB won't add the headings as new completion
possibilities, file.org/ is the only one.  The same with RET.


Very strange.  This does work find for me.  Can you tyr to make a  
test

setup with minimal configuration and just 1 or 2 files?


Done that, and this line of my .emacs broke the completion:

 (setq completion-styles (remove 'basic completion-styles))

After deleting it, I can complete in steps as it should be.


What reason did you have to add this line in the first place?
Just curious.

- 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: Clocking work time with a date not a time only

2009-04-03 Thread Carsten Dominik


On Apr 2, 2009, at 4:49 PM, Sébastien Vauban wrote:


That is simply great!  Waouwww.

But, still, is there any obvious way to get a view similar to that  
one (it may
be completely different -- just speaking of the information that's  
somehow

displayed)?

--8---cut here---start-8---
Wednesday   1 April 2009
Clocked:   (2:55) Client1
Clocked:   (0:30) Client2 - Searched info for mail.
Clocked:   (3:20) Client1
Clocked:   (0:45) Client2 - Sent mail (after long discussion about  
bandwidth).

---
Thursday2 April 2009
Clocked:   (3:35) Client1 - Worked on Web site.
Clocked:   (0:24) Client1 - Testing Org chronological view with logs.
--8---cut here---end---8---


You know, this is actually a very useful idea.  I have added this  
feature, 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


Re: [Orgmode] Re: Release 6.25

2009-04-03 Thread Carsten Dominik


On Apr 3, 2009, at 4:35 AM, Leo wrote:


On 2009-04-01 15:43 +0100, Carsten Dominik wrote:

On Apr 1, 2009, at 4:35 PM, Leo wrote:


On 2009-04-01 15:12 +0100, Carsten Dominik wrote:

I am releasing version 6.25 of Emacs Org-mode. It has been almost a
month, and I feel that this release is really packed with good  
stuff,

so please read the release notes carefully.


Thank you, Carsten, for the excellent work.

Wonder whether it may be possible to push this into Emacs 23.1.


No.  I have asked a few week ago, and the answer was that at this
stage only bug fixes should go in.  I find it hard to separate these
from all the other development, so only severe bugs I fix in the  
Emacs

version.


Because of this, the one in Emacs probably receives less testing.


Yes, if I were allowed to still put the latest version in, I agree it
would receive more testing inside Emacs.  By not doing this, more
people are lured into using the releases on orgmode.org.

But I am sure the Emacs administrators have their good reasons - not all
packages like org are so intensively tested that new bugs due to new
features are generally found within a few days.

- 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: Bug if `org-refile-use-outline-path' is set to 'file

2009-04-03 Thread Tassilo Horn
Carsten Dominik carsten.domi...@gmail.com writes:

Hi Carsten,

 Done that, and this line of my .emacs broke the completion:

  (setq completion-styles (remove 'basic completion-styles))

 After deleting it, I can complete in steps as it should be.

 What reason did you have to add this line in the first place?
 Just curious.

Some time ago completion didn't seem to do partial completion if basic
was in that list.  Now I tried again and it seems to work fine even with
basic in it.

Bye,
Tassilo


___
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] bug: org-cycle-include-plain-lists

2009-04-03 Thread Carsten Dominik


On Apr 2, 2009, at 9:43 PM, Patrick Bahr wrote:


Hi,

I have a problem when org-cycle-include-plain-lists is enabled. When  
doing visibility cycling on a headline that contains a plain list,  
the first hit on tab already reveals all headlines (and only the  
headlines) below it. E.g., in the following file hitting tab on  
Headline 1 shows Headline 1.1, Headline 1.1.1 and Headline  
1.1.2.



* Headline 1
 - one
 - two
** Headline 1.1
  lorem ipsum
*** Headline 1.1.1
   lorem ipsum
*** Headline 1.1.2
   lorem ipsum


I'm using the current release 6.25a.


Yes, this is hard to fix.  Internally, plain lists items are given  
very high
level numbers.  The show-children command on Headline 1 finds the  
first child, and then shows all levels in the subtree with this level  
or higher in the hierarchy.


I think you need to live with this.

- 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] [ANN] org-fstree 0.2

2009-04-03 Thread Carsten Dominik


On Apr 2, 2009, at 1:50 AM, Andreas Burtzlaff wrote:



I'm looking for a better way to display those links and possibly  
also

the content of the headings and am happy to receive new ideas. I
tried the
column view, but properties that contain links are displayed as  
text.


But you can nonetheless open them with C-c C-o when on the right  
field.


Hm, that works for links to files, but strangely it doesn't for  
links to headings in 6.25:


True,

and I have no idea why that is so.  Very strange bug, one
of those only Nick Dokos can find :-)

- Carsten



* Target

* Test
:PROPERTIES:
:COLUMNS:  %40ITEM %Link1 %Link2
:END:


** Test Heading
 :PROPERTIES:
 :Link1: [[* Target]]
 :END:

** Test File
 :PROPERTIES:
 :Link1: [[file:somewhere]]
 :END:

Andreas




___
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] Problem with toggling intermediate state of check boxes

2009-04-03 Thread Cameron Horsburgh
On Fri, Apr 03, 2009 at 03:24:40PM +0530, Manish wrote:
 On Fri, Apr 3, 2009 at 10:07 AM, Nick Dokos wrote:
  Cameron Horsburgh wrote:
 
 
  When I use C-u C-c C-c on a check box it deletes the check box rather
  than toggles the [-] state as adevrtised in the manual. I'm using
  version 6.25a as checked out of git several hours ago.
 
  I've never tried to use this behaviour before, so I can't say when it
  first occurred.
 
  Here's a minimal two lines that exhibit the behaviour:
 
  ,
  | * Headline [0/1]
  |  - [ ] C-u C-c C-c will remove the checkbox
  `
 
  The manual says (I am behind the curve: I still run 6.24, but I doubt
  either the behavior or this portion of the manual changed):
 
  `C-c C-c'
Toggle checkbox status or (with prefix arg) checkbox presence at
point. With double prefix argument, set it to `[-]', which is
 ^
considered to be an intermediate state.
 
 You need to do C-u C-u C-c C-c to get to that intermediate state.


Ah, that's a little bizarre. For some reason my info file was 6.21,
which refers to the single prefix usage. I went to the top level node
than went back into the org-mode info and it was 6.25.

I say this is bizarre because I update org-mode (and docs) most days
and the info has been opened and closed many times since 6.21. The
instructions match what you say.

Cue the theme from 'The Twilight Zone'...

Thanks for your help.

-- 

Cameron Horsburgh

Blog: http://spiritcry.wordpress.com/


___
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: Clocking work time with a date not a time only

2009-04-03 Thread Jan Buchal
 CD == Carsten Dominik carsten.domi...@gmail.com writes:

CD On Apr 2, 2009, at 4:49 PM, Sébastien Vauban wrote:

That is simply great!  Waouwww.
   
CD But, still, is there any obvious way to get a view similar to
CD that one (it may be completely different -- just speaking of the
CD information that's somehow displayed)?
   
CD --8---cut
CD here---start-8--- Wednesday 1 April
CD 2009 Clocked: (2:55) Client1 Clocked: (0:30) Client2 - Searched
CD info for mail. Clocked: (3:20) Client1 Clocked: (0:45) Client2 -
CD Sent mail (after long discussion about bandwidth).
CD 
---
CD Thursday 2 April 2009 Clocked: (3:35) Client1 - Worked on Web
CD site. Clocked: (0:24) Client1 - Testing Org chronological view
CD with logs. --8---cut
CD here---end---8---
Yes, that what I need.

CD You know, this is actually a very useful idea. I have added this
CD feature, thanks.
Where can I it find? In git repository of development snapshot?

Thanks very much


-- 

Jan Buchal
Tel: (00420) 24 24 86 008
Mob: (00420) 608023021



___
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] Problem with toggling intermediate state of check boxes

2009-04-03 Thread Manish
On Fri, Apr 3, 2009 at 10:07 AM, Nick Dokos wrote:
 Cameron Horsburgh wrote:


 When I use C-u C-c C-c on a check box it deletes the check box rather
 than toggles the [-] state as adevrtised in the manual. I'm using
 version 6.25a as checked out of git several hours ago.

 I've never tried to use this behaviour before, so I can't say when it
 first occurred.

 Here's a minimal two lines that exhibit the behaviour:

 ,
 | * Headline [0/1]
 |  - [ ] C-u C-c C-c will remove the checkbox
 `

 The manual says (I am behind the curve: I still run 6.24, but I doubt
 either the behavior or this portion of the manual changed):

 `C-c C-c'
   Toggle checkbox status or (with prefix arg) checkbox presence at
   point. With double prefix argument, set it to `[-]', which is
^
   considered to be an intermediate state.

You need to do C-u C-u C-c C-c to get to that intermediate state.

-- 
Manish

 That's consistent with the behavior you observe: C-u C-c C-c toggles
 presence, i.e. whether the checkbox is there or not. To toggle the
 checkbox, just use C-c C-c.


___
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: Clocking work time with a date not a time only

2009-04-03 Thread Carsten Dominik


On Apr 3, 2009, at 12:20 PM, Jan Buchal wrote:


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


   CD On Apr 2, 2009, at 4:49 PM, Sébastien Vauban wrote:

   That is simply great!  Waouwww.

   CD But, still, is there any obvious way to get a view similar to
   CD that one (it may be completely different -- just speaking of  
the

   CD information that's somehow displayed)?

   CD --8---cut
   CD here---start-8--- Wednesday 1 April
   CD 2009 Clocked: (2:55) Client1 Clocked: (0:30) Client2 - Searched
   CD info for mail. Clocked: (3:20) Client1 Clocked: (0:45)  
Client2 -

   CD Sent mail (after long discussion about bandwidth).
   CD  
---

   CD Thursday 2 April 2009 Clocked: (3:35) Client1 - Worked on Web
   CD site. Clocked: (0:24) Client1 - Testing Org chronological view
   CD with logs. --8---cut
   CD here---end---8---
Yes, that what I need.

   CD You know, this is actually a very useful idea. I have added  
this

   CD feature, thanks.
Where can I it find? In git repository of development snapshot?


Both.

- 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] Problem with toggling intermediate state of check boxes

2009-04-03 Thread Carsten Dominik


On Apr 3, 2009, at 12:21 PM, Cameron Horsburgh wrote:


On Fri, Apr 03, 2009 at 03:24:40PM +0530, Manish wrote:

On Fri, Apr 3, 2009 at 10:07 AM, Nick Dokos wrote:

Cameron Horsburgh wrote:


When I use C-u C-c C-c on a check box it deletes the check box  
rather

than toggles the [-] state as adevrtised in the manual. I'm using
version 6.25a as checked out of git several hours ago.

I've never tried to use this behaviour before, so I can't say  
when it

first occurred.

Here's a minimal two lines that exhibit the behaviour:

,
| * Headline [0/1]
|  - [ ] C-u C-c C-c will remove the checkbox
`


The manual says (I am behind the curve: I still run 6.24, but I  
doubt

either the behavior or this portion of the manual changed):

`C-c C-c'
 Toggle checkbox status or (with prefix arg) checkbox presence at
 point. With double prefix argument, set it to `[-]', which is

   ^

 considered to be an intermediate state.


You need to do C-u C-u C-c C-c to get to that intermediate state.



Ah, that's a little bizarre. For some reason my info file was 6.21,
which refers to the single prefix usage. I went to the top level node
than went back into the org-mode info and it was 6.25.


See this discusion:

http://thread.gmane.org/gmane.emacs.orgmode/11412

- Carsten



I say this is bizarre because I update org-mode (and docs) most days
and the info has been opened and closed many times since 6.21. The
instructions match what you say.

Cue the theme from 'The Twilight Zone'...

Thanks for your help.

--

Cameron Horsburgh

Blog: http://spiritcry.wordpress.com/


___
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] Re: Clocking work time with a date not a time only

2009-04-03 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
 Sébastien Vauban wrote:
 Carsten Dominik wrote:
 Carsten Dominik wrote:
 Carsten Dominik wrote:
 Sébastien Vauban wrote:
 - is there a possibility to get back, out of such a file, a
  chronological view of the whole file (where all projects are mixed)?

 This is what the timeline buffer is for:

 C-c a L

 to get the buffer,

 then press `l' or even `C-u l'

 to get logging information included into this time-sorted display

 Done. But partially works...
 Pressing `l' or `C-u l' gives me the same results.
 I never see the log note that's though stored in my Org file.

 No, the notes are not displayed in the time line, that is correct.

 What is the difference between `l' and `C-u l', then?

 I thought that press[ing] `C-u l' to get logging information included into
 this time-sorted display just meant that...

 C-u l  will also list logged state changes, this is described in the manual.

I had read the info about the command:

,
| l runs the command org-agenda-log-mode, which is an interactive Lisp 
function
| in `org-agenda.el'.
|
| It is bound to l, menu-bar Agenda View Show Logbook entries.
|
| (org-agenda-log-mode optional special)
|
| Toggle log mode in an agenda buffer.
| With argument special, show all possible log items, not only the ones
| configured in `org-agenda-log-mode-items'.
| With a double `C-u' prefix arg, show *only* log items, nothing else.
`

and understood, out of that, that it did what I was expecting (show all
possible log items -- notes?).

Never mind. You've just done it... THANKS A LOT!

 But, still, is there any obvious way to get a view similar to that one (it
 may be completely different -- just speaking of the information that's
 somehow displayed)?

 --8---cut here---start-8---
 Wednesday   1 April 2009
 Clocked:   (2:55) Client1
 Clocked:   (0:30) Client2 - Searched info for mail.
 Clocked:   (3:20) Client1
 Clocked:   (0:45) Client2 - Sent mail (after long discussion about
 bandwidth).
 ---
 Thursday2 April 2009
 Clocked:   (3:35) Client1 - Worked on Web site.
 Clocked:   (0:24) Client1 - Testing Org chronological view with logs.
 --8---cut here---end---8---

 You know, this is actually a very useful idea.  I have added this feature,
 thanks.

It's a dream: I wanna get something, and I get it straight away!  I'll wake up
soon...

Thanks for all,
  Seb

-- 
Sébastien Vauban


___
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://remember:// question

2009-04-03 Thread Sebastian Rose

Ahaaa, thanks Carsten!

That's good. So this here will do:


diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el
index 1593764..b368602 100644
--- a/lisp/org-protocol.el
+++ b/lisp/org-protocol.el
@@ -335,23 +335,18 @@ Now template ?b will be used.
  (match-string 1 url)))
(title (cadr parts))
(region (caddr parts))
-   orglink)
+   orglink
+   remember-annotation-functions)
   (setq orglink (org-make-link-string url title))
-  (org-store-link-props :type type
-:link url
-:region region
-:description title)
   (setq org-stored-links
 (cons (list url title) org-stored-links))
-  ;; FIXME can't access %a in the template -- how to set annotation?
-  (raise-frame)
   (kill-new orglink)
-  (set-buffer b)
-  (insert region)
-  (mark-whole-buffer)
-  (org-remember nil (string-to-char template))
-  (kill-buffer b))
-(message Org-mode not loaded.))
+  (org-store-link-props :type type
+:link url
+:description title
+:initial region)
+  (raise-frame)
+  (org-remember nil (string-to-char template
   nil)


...which is much simpler than before :)


Best,


   Sebastian




Carsten Dominik carsten.domi...@gmail.com writes:
 On Apr 2, 2009, at 8:00 PM, Sebastian Rose wrote:

 Carsten Dominik carsten.domi...@gmail.com writes:
 Hi Sebastian, Tassilo,

 this can be easily fixed.

 Org-protocol may add arbitrary properties to the link properties.
 For example, after a call

  (org-store-link-props :type type
:link url
:region region
:description title
:hello Hello world)

 a template could use %:hello to access and insert this
 string.  I have just changed org-remember so that the
 property :annotation will be the default for %a.
 Sebastian, could you please add

   :annotation (concat [[ url ][ title ]])

 or something similar to the call to org-store-link-props?

 Also, feel free to add any other properties that might
 provide useful information for a template.


 Doesn't that apply to certain link types only?

 Also, the situation seems to be different for org-protocol-remember. I
 think it's the way remember is used inside that function that has to be
 changed.
 Maybe I can figure that out.

 Sorry my mistake.  Indeed, the way you call org-remember
 overwrites the link property list.  What you need to do is this:

(let (remember-annotation-functions)
   (org-remember nil (string-to-char template)))

 Now, another advantage of doing it like this is that you
 do not even have to create a temporary buffer from which you
 launch org-remember.  Right now you do this, only for
 the effect to get the region inserted for %i.

 Much easier will not be to set the :initial property in the
 call to org-store-link-props.

 Thus, don't even create the *org-protocol* buffer and then do this:

   (org-store-link-props :type type
 :link url
   :annotation (concat [[ url ][ title ]])
   :initial (or region )
 :description title)
   (setq org-stored-links
 (cons (list url title) org-stored-links))
   (raise-frame)
   (kill-new orglink)
   (let (remember-annotation-functions)
   (org-remember nil (string-to-char template)))

 I hope that this will take care of it.

 - Carsten


-- 
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: s.r...@emma-stil.de, sebastian_r...@gmx.de
Http:  www.emma-stil.de
___
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: Clocking work time with a date not a time only

2009-04-03 Thread Sébastien Vauban
Hi Carsten,

Just a small bug to report. With such a source file:

--8---cut here---start-8---
* 2009-04

#+BEGIN: clocktable :maxlevel 2 :scope file
Clock summary at [2009-04-03 Fri 14:05]

| L | Headline | Time|   |
|---+--+-+---|
|   | *Total time* | *12:00* |   |
|---+--+-+---|
| 1 | 2009-03  | 12:00   |   |
| 2 | Client2  | | 12:00 |
#+END:

*** Client2
:LOGBOOK:
CLOCK: [2009-04-02 Thu 09:00]--[2009-04-02 Thu 10:55] =  1:55
CLOCK: [2009-04-03 Fri 07:00]--[2009-04-03 Fri 17:05] = 10:05
- Demo the whole day in France
:END:
--8---cut here---end---8---

I get such a summary:

--8---cut here---start-8---
Thursday2 April 2009
  Clocked:   (1:55) Client2
---
Friday  3 April 2009
  Clocked:   (0:05) Client2
--8---cut here---end---8---

The small bug in that, in that agenda view, the time is truncated: `0:05'
instead of `10:05'...

Totals in summary are correct, it's only a presentation issue.

Best regards,
  Seb

-- 
Sébastien Vauban


___
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://remember:// question

2009-04-03 Thread Sebastian Rose


I encountered another problem:

  Using `C-c C-k' in the remember buffer is OK.

  But if the user interupts `org-remember' by `C-g' (e.g. when reading
  some text interactively), emacsclient will be waiting for ever.


Unfortunately, there seems no easy way to fix this in a way, that we
could mix org-protocol arguments and filenames for emacsclient.

A solution for this problem is, to introduce a new property:


(defconst org-protocol-protocol-alist-default
  '((org-remember:protocol remember:function org-protocol-remember 
:kill-client t)
...

and unconditionally kill the client, once a sub-protocol with a non-nil
`:kill-client'  property is detected.



The appended patch does all the changes we need:

- call org-remember the right way
- kill emacsclient for org-protocol-remember and all those handlers,
  which have the `:kill-client' property set to a non-nil value.



Regards,

   Sebastian




patch-org-protocol.el
Description: application/emacs-lisp





Carsten Dominik carsten.domi...@gmail.com writes:
 On Apr 2, 2009, at 8:00 PM, Sebastian Rose wrote:

 Carsten Dominik carsten.domi...@gmail.com writes:
 Hi Sebastian, Tassilo,

 this can be easily fixed.

 Org-protocol may add arbitrary properties to the link properties.
 For example, after a call

  (org-store-link-props :type type
:link url
:region region
:description title
:hello Hello world)

 a template could use %:hello to access and insert this
 string.  I have just changed org-remember so that the
 property :annotation will be the default for %a.
 Sebastian, could you please add

   :annotation (concat [[ url ][ title ]])

 or something similar to the call to org-store-link-props?

 Also, feel free to add any other properties that might
 provide useful information for a template.


 Doesn't that apply to certain link types only?

 Also, the situation seems to be different for org-protocol-remember. I
 think it's the way remember is used inside that function that has to be
 changed.
 Maybe I can figure that out.

 Sorry my mistake.  Indeed, the way you call org-remember
 overwrites the link property list.  What you need to do is this:

(let (remember-annotation-functions)
   (org-remember nil (string-to-char template)))

 Now, another advantage of doing it like this is that you
 do not even have to create a temporary buffer from which you
 launch org-remember.  Right now you do this, only for
 the effect to get the region inserted for %i.

 Much easier will not be to set the :initial property in the
 call to org-store-link-props.

 Thus, don't even create the *org-protocol* buffer and then do this:

   (org-store-link-props :type type
 :link url
   :annotation (concat [[ url ][ title ]])
   :initial (or region )
 :description title)
   (setq org-stored-links
 (cons (list url title) org-stored-links))
   (raise-frame)
   (kill-new orglink)
   (let (remember-annotation-functions)
   (org-remember nil (string-to-char template)))

 I hope that this will take care of it.

 - Carsten


--
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: s.r...@emma-stil.de, sebastian_r...@gmx.de
Http:  www.emma-stil.de
___
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] Problem with org-mac-message.el

2009-04-03 Thread Christopher Suckling


On 1 Apr 2009, at 21:21, Ed Hirgelt wrote:

I've found that org-mac-message-get-link has a problem inserting  
[[]] as the first item.


I can't replicate this. Could you provide an example?


The following change makes it better...


Unfortunately, this change breaks the code for all other  
possibilities, and, if I understand the problem correctly, simply  
omits a link that begins [[


My beginner's elisp is rather clumsy; I'm going to attempt to tidy up  
the code anyway, so I'll be on the lookout for your difficulty whilst  
I do so.


Best,

Christopher



diff --git a/lisp/org-mac-message.el b/lisp/org-mac-message.el
index 4e10062..e8697c4 100644
--- a/lisp/org-mac-message.el
+++ b/lisp/org-mac-message.el
@@ -119,7 +119,7 @@ active mail in AppleMail and make a link out of  
it.

(setq split-link (split-string (pop link-list) ::split::))
(setq URL (car split-link))
(setq description (cadr split-link))
-   (if (not (string= URL ))
+   (if (not (string= URL \))
(progn
  (setq orglink (org-make-link-string URL description))
  (push orglink orglink-list)





___
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: BUG: Infinite loop finding stuck projects

2009-04-03 Thread Bernt Hansen
More info:

This also hangs for any tag searches

   C-c / / enter regexp RET
   C-c / m enter tag RET

-Bernt

Peter Jones mli...@pmade.com writes:

 Bernt Hansen be...@norang.ca writes:
 The following commit breaks finding stuck projects for me.  It looks
 like an infinite loop.

 I can confirm the infinite loop.  I have a meeting this morning,
 otherwise I'd submit a patch.  If this is still open this afternoon I'll
 try to track it down.

 -- 
 Peter Jones, http://pmade.com
 pmade inc.  Louisville, CO US



 ___
 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] How do i change status from todo to done etc without press key letter

2009-04-03 Thread goodh...@gmail.com

I just update org-mode to 6.25a in winxp.

I set each file like #+SEQ_TODO: TODO(t) | DONE(d!) CANCELED(c@).
Before updating C-c C-t will cycle in the seq above. Now it want me to 
press d to get done.
I really like the way before. How can i get it back without delete key 
letter(since i use them sometime.)?


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: BUG: Infinite loop finding stuck projects

2009-04-03 Thread Matthew Lundin

Bernt Hansen be...@norang.ca writes:

 This also hangs for any tag searches

C-c / / enter regexp RET
C-c / m enter tag RET

Tag searches via the agenda are also hanging:

C-c a m
C-c a M

- Matt


___
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] Problem with org-mac-message.el

2009-04-03 Thread Carsten Dominik


On Apr 3, 2009, at 4:49 PM, Christopher Suckling wrote:



On 1 Apr 2009, at 21:21, Ed Hirgelt wrote:

I've found that org-mac-message-get-link has a problem inserting  
[[]] as the first item.


I can't replicate this. Could you provide an example?


The following change makes it better...


Unfortunately, this change breaks the code for all other  
possibilities, and, if I understand the problem correctly, simply  
omits a link that begins [[


My beginner's elisp is rather clumsy; I'm going to attempt to tidy  
up the code anyway, so I'll be on the lookout for your difficulty  
whilst I do so.


I think I already fixed it.

- Carsten



Best,

Christopher



diff --git a/lisp/org-mac-message.el b/lisp/org-mac-message.el
index 4e10062..e8697c4 100644
--- a/lisp/org-mac-message.el
+++ b/lisp/org-mac-message.el
@@ -119,7 +119,7 @@ active mail in AppleMail and make a link out of  
it.

(setq split-link (split-string (pop link-list) ::split::))
(setq URL (car split-link))
(setq description (cadr split-link))
-   (if (not (string= URL ))
+   (if (not (string= URL \))
(progn
  (setq orglink (org-make-link-string URL description))
  (push orglink orglink-list)





___
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] Re: Clocking work time with a date not a time only

2009-04-03 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Apr 3, 2009, at 2:10 PM, Sébastien Vauban wrote:


Hi Carsten,

Just a small bug to report. With such a source file:

--8---cut here---start-8---
* 2009-04

#+BEGIN: clocktable :maxlevel 2 :scope file
Clock summary at [2009-04-03 Fri 14:05]

| L | Headline | Time|   |
|---+--+-+---|
|   | *Total time* | *12:00* |   |
|---+--+-+---|
| 1 | 2009-03  | 12:00   |   |
| 2 | Client2  | | 12:00 |
#+END:

*** Client2
   :LOGBOOK:
   CLOCK: [2009-04-02 Thu 09:00]--[2009-04-02 Thu 10:55] =  1:55
   CLOCK: [2009-04-03 Fri 07:00]--[2009-04-03 Fri 17:05] = 10:05
   - Demo the whole day in France
   :END:
--8---cut here---end---8---

I get such a summary:

--8---cut here---start-8---
Thursday2 April 2009
 Clocked:   (1:55) Client2
---
Friday  3 April 2009
 Clocked:   (0:05) Client2
--8---cut here---end---8---

The small bug in that, in that agenda view, the time is truncated:  
`0:05'

instead of `10:05'...

Totals in summary are correct, it's only a presentation issue.

Best regards,
 Seb

--
Sébastien Vauban


___
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] How do i change status from todo to done etc without press key letter

2009-04-03 Thread Sebastian Rose
goodh...@gmail.com goodh...@gmail.com writes:
 I just update org-mode to 6.25a in winxp.

 I set each file like #+SEQ_TODO: TODO(t) | DONE(d!) CANCELED(c@).
 Before updating C-c C-t will cycle in the seq above. Now it want me to press d
 to get done.
 I really like the way before. How can i get it back without delete key
 letter(since i use them sometime.)?


Does M-RIGHT not work for you?


___
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] BUG: Infinite loop finding stuck projects

2009-04-03 Thread Bernt Hansen
Carsten Dominik domi...@science.uva.nl writes:

 I have reverted this commit, thanks.

Thanks!  It works again for me :)

-Bernt


___
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] Selective Export of subheadings and plain text

2009-04-03 Thread Martin Stemplinger
I use org-mode as a GTD implementation with level-1 headings as area
of focus, level-3 headings for projects and level-5 headings as next
actions. For each project I also note a successful outcome in plain
text. 

So it looks like this

* Self development :TOPIC:
*** Learn org-mode :PROJECT:
I improve my GTD implementation.
* ONLINE post question to org-mode mailing list
*** Learn Esperanto:PROJECT:
I speak Esperanto fluently.

What I would like to do is to export a project list together with the
successful outcome but without the next actions below it looking like
this

1 Self development
==

1.1 Learn org-mode
---
I improve my GTD implementation.

1.2 Learn Esperanto
---
I speak Esperanto fluently.

Currently I use a script to produce this kind of output. Is there a
way to achieve this in org-mode alone?

Thanks in advance
Martin


___
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] XEmacs complains about a few define-key sequences in org-mouse.el

2009-04-03 Thread Andreas Röhler
Tony E. Bennett wrote:
 XEmacs complains about a few define-key sequences in org-mouse.el.
 For example:

   (define-key org-agenda-keymap [C-mouse-4] 'org-agenda-earlier)

   

Try it this way for XEmacs:
 [(control mouse-4)]

Regards

Andreas Roehler

 These sequences are using a GNU emacs form that XEmacs does not support.
 I've patched it like this, which stopped the errors at least:

   (define-key org-agenda-keymap (if (featurep 'xemacs) [(control mouse-4)] 
 [C-mouse-4]) 'org-agenda-earlier)

 Here is full set:


   
 



 thanks

 --tony
   
 

 ___
 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] How do i change status from todo to done etc without press key letter

2009-04-03 Thread goodh...@gmail.com

Shift-right works great for me.
Sorry for my dummy Q. I just so get used to C-c + somekey.

Thanks.

Sebastian Rose wrote:

goodh...@gmail.com goodh...@gmail.com writes:
  

I just update org-mode to 6.25a in winxp.

I set each file like #+SEQ_TODO: TODO(t) | DONE(d!) CANCELED(c@).
Before updating C-c C-t will cycle in the seq above. Now it want me to press d
to get done.
I really like the way before. How can i get it back without delete key
letter(since i use them sometime.)?




Does M-RIGHT not work for you?

  



___
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: Bug if `org-refile-use-outline-path' is set to 'file

2009-04-03 Thread Eraldo Helal

 How do you set it?  With M-x set-variable RET ..., or with M-: (setq
 ...)?  In each case you have to quote file, e.g. say 'file.

Thank you, works like a charm now.
___
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] How do i change status from todo to done etc without press key letter

2009-04-03 Thread goodh...@gmail.com
It works for a (repeat) task in a file. But if it  is a repeat task  
(like every week) and in agenda  view, it works different  Change 
the time stamp associated with the current line by one day into the

future.:(


Sebastian Rose wrote:

goodh...@gmail.com goodh...@gmail.com writes:
  

I just update org-mode to 6.25a in winxp.

I set each file like #+SEQ_TODO: TODO(t) | DONE(d!) CANCELED(c@).
Before updating C-c C-t will cycle in the seq above. Now it want me to press d
to get done.
I really like the way before. How can i get it back without delete key
letter(since i use them sometime.)?




Does M-RIGHT not work for you?

  



___
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] [ANN] org-fstree 0.2

2009-04-03 Thread Andreas Burtzlaff
Carsten,

On Fri, 3 Apr 2009 11:45:44 +0200
Carsten Dominik carsten.domi...@gmail.com wrote:

  Hm, that works for links to files, but strangely it doesn't for  
  links to headings in 6.25:
 
 True,
 
 and I have no idea why that is so.  Very strange bug, one
 of those only Nick Dokos can find :-)

you didn't count me in :-).
Attached is the patch against org.el (from 6.25b)

Andreas
7445,7450c7445,7451
   (with-temp-buffer
 (let ((org-inhibit-startup t))
   (org-mode)
   (insert s)
   (goto-char (point-min))
   (org-open-at-point arg
---
   (let ((reference-buffer (current-buffer)))
 (with-temp-buffer
   (let ((org-inhibit-startup t))
 	(org-mode)
 	(insert s)
 	(goto-char (point-min))
 	(org-open-at-point arg reference-buffer)
7452c7453
 (defun org-open-at-point (optional in-emacs)
---
 (defun org-open-at-point (optional in-emacs reference-buffer)
7515a7517,7518
   ;; if called in a temporary buffer (from org-open-link-from-string), switch back to original buffer
   (cond (reference-buffer (switch-to-buffer reference-buffer)))
___
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] Refile as top-level headlines?

2009-04-03 Thread Carsten Dominik


On Jan 18, 2009, at 5:31 PM, Matthew Lundin wrote:


Carsten Dominik domi...@science.uva.nl writes:


On Jan 14, 2009, at 4:49 PM, Matthew Lundin wrote:



Hi everyone,

I have a lot of org-files and use org-refile all the time as part of
my normal workflow. My basic approach is to remember things to an
inbox.org file and then to process the inbox GTD-style.

One thing I'm having a hard time figuring out is how to refile  
headers

as top level headlines in a target file. I've customized org-refile
with the following settings:

,
| (setq org-refile-use-outline-path 'file)
| (setq org-refile-targets '((org-agenda-files :maxlevel . 1)
|(nil :maxlevel . 3)))
`

(Note: the second setting in org-refile-targets gives me additional,
deeper targets in whatever file I'm visiting.)

What I'd like to see is for maxlevel to include the possibility of
filing an item as a top-level headline (at the bottom of the file).


Hmmm, how would you like the interface to work?  Just have an entry
in the list that is only the file name?  And if it is only a single
file,
just replying with the empty string?


1. First idea:

Perhaps this option could be activated only when:

(setq org-refile-use-outline-path 'file)

Currently with the above setting and refile targets with a maxlevel of


This should now work exactly as you describe above.

- Carsten



2, completion with refile offers the following targets:

computer.org/headline/ (computer.org)

vs.

computer.org/headline/subheading/ (computer.org)

To file under the first target, one can hit space after completing
headline. Perhaps there could also be an option for hitting space  
after

the first completion, i.e., after computer.org.

computer.org/ (computer.org)

2. Second idea:

Another possibility would be as you suggest: to offer the file name
independently as one of the targets. And if it's only one file,  
perhaps

the file name could still be offered as a target the sake of clarity.
This would then work regardless of the setting of
org-refile-use-outline-path.

I realize not everyone would want this behavior. Maybe one would  
need to

set it explicitly either by (1) setting level to 0 for
org-refile-targets or (2) making maxlevel a negative number (i.e., if
positive then don't offer level 0 targets; if negative offer level 0
targets).

Just an idea I'm sure your ideas about this will be much  
better! :-)


Thanks for considering this.
Matt




___
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] [ANN] org-fstree 0.2

2009-04-03 Thread Carsten Dominik


On Apr 4, 2009, at 5:01 AM, Andreas Burtzlaff wrote:


Carsten,

On Fri, 3 Apr 2009 11:45:44 +0200
Carsten Dominik carsten.domi...@gmail.com wrote:


Hm, that works for links to files, but strangely it doesn't for
links to headings in 6.25:


True,

and I have no idea why that is so.  Very strange bug, one
of those only Nick Dokos can find :-)


you didn't count me in :-).


Well, I will from now on!  Fantastic, thanks.

- Carsten

P.S. Please, could you send a diff -u next time?


Attached is the patch against org.el (from 6.25b)

Andreas
org.el.diff




___
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] Line breaks in headings possible?

2009-04-03 Thread Carsten Dominik


On Apr 3, 2009, at 9:41 PM, Martin Stemplinger wrote:


I use quite long headings in my org files. Exporting it to PDF leads
to line breaks which are neither aesthetically pleasing nor easily
readable. Is there a way to indicate line breaks in a heading?


Both \newline and \\  will work if you target only LaTeX/PDF

- Carsten




Martin


___
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