Re: [Orgmode] POLL: Change of keys to move agenda through time

2009-08-26 Thread Jean-Marie Gaillourdet
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Carsten Dominik wrote:
 we have the proposal to do the following key changes in the agenda:
 
 1. Make the cursor keys LEFT and RIGHT do normal cursor motion again
 2. Use the keys n and p to switch the agenda to earlier
and later dates.
 
 I would like to call a vote on this issue.  Please weigh in.
 Should we make this change?  yes or no?
Yes, since n and p are nearer to the home row of the keyboard.


- - Jean

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqU0VwACgkQNIUNP/I5YOjPKgCgvIFleREVS1JhxMlX6YcSx0h5
7WwAnjzmsrA5zcPv50Zy8LiVIN5wsPZD
=+hlq
-END PGP SIGNATURE-


___
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 in org-indent-mode

2009-08-26 Thread Carsten Dominik


On Aug 26, 2009, at 8:17 AM, Jean-Marie Gaillourdet wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Carsten and all the others,

at first thanks for your awesome work on org-mode!
Recently, I tested the new org-ident-mode, which is really great.  
But I

use the hl-line-mode, which highlights the current line of the cursor.

(global-hl-line-mode)

Enabling both hl-line-mode and org-indent-mode breaks the highlighting
of the line. The indented area before the logical line starts is not
highlighted. But the same amount of characters is highlighted in the
next line.

Any idea, how to fix this?


Hi Jean-Marie

by reporting this as a bug to Emacs.  Emacs makes this mistake when  
displaying line-prefix properties.


- Carsten



Best regards

- - Jean

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqU03UACgkQNIUNP/I5YOgQeQCfdifcx1gGDZUkLzSVLybiunnW
KAgAmgKOWjmX1VeSsDlYVTPHrrM5NbI4
=a59e
-END PGP SIGNATURE-


___
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: POLL: Change of keys to move agenda through time

2009-08-26 Thread Carsten Dominik

Hi,

thank you everybody for this very interesting discussion.  I have
been trying to think of a way to extract common ground from the
different opinions.

Here is what I have come up with:

1. n/p remain as they where
2. Moving forward/backward though time will be `f' and `b'
3. Follow mode goes to the F key, a capital letter does
   make sense here given that some other modes like [G]rid
   and clock[R]eport and [D]iary are on capitals as well.
4. `org-agenda-tree-to-indirect-buffer' is already on
   `C-c C-x b' which is the same key as in a normal Org
   buffer.  Therefore, I think we do not need to find a
   replacement for the `b' binding.
5. The cursor keys left and right are remapped to a
   function that does nothing, except showing a message
   that you should now use f/b to move through time.

We could have an option to allow users to get the time
motion or cursor motion on left/right, if there was enough
support/need for this.  I do not think that this is strictly
necessary, because every user can of course rebind keys
in any way she likes.  If we decide to use an option for
this purpose, the message shown by default with
the cursor keys could also point to the corresponding
variable.

Comments?

- Carsten

On Aug 25, 2009, at 11:12 AM, Carsten Dominik wrote:


Hi,

we have the proposal to do the following key changes in the agenda:

1. Make the cursor keys LEFT and RIGHT do normal cursor motion again
2. Use the keys n and p to switch the agenda to earlier
  and later dates.

I would like to call a vote on this issue.  Please weigh in.
Should we make this change?  yes or no?

- Carsten


===
PLEASE NOTE NEW ADDRESS
===
prof.dr. Carsten Dominikdomi...@uva.nl
Astronomical Institute 'Anton Pannekoek'
www.astro.uva.nl/~dominik
Faculty of Science, University of Amsterdam phone   
+31-20-5257477/7491
SCIENCE PARK 904, ROOM C4-106   fax +31-20-5257484
1098 XH Amsterdam, The Netherlands
mail: PO BOX 94249, 1090GE, Amsterdam






___
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: Custom agenda question

2009-08-26 Thread Carsten Dominik


On Aug 25, 2009, at 3:57 PM, Bernt Hansen wrote:


Manish mailtomanish.sha...@gmail.com writes:


On Mon, Aug 24, 2009 at 11:33 PM, Carsten Dominik wrote:


On Aug 24, 2009, at 2:21 AM, Manish wrote:


Once you've got your agenda organized right with todo's in order  
etc. then
it's just a little disruptive to go anywhere else for a little  
extra

detail to
get some more context. But I agree agenda should be as compact as
possible.. may be the extra lines could be a toggle switch?


H.

I am not yet convinced, but I have made a little toy implementation
for you and others to try out and commet on.

Please get the latest version and press `E' in the agenda to
toggle the display of a small amount (see variable
`org-agenda-entry-text-maxlines') of text from the entry in
the agenda.


Thanks!  I like it very much so far.  Refreshing the agenda removes  
the
snippets/excerpts though.  Will use it for a few days and report  
back.


Me too!  I just tried it for the first time this morning and I think
this is going to be very useful.

Lots of my tasks have website links which are exposed by this.  It  
would

be even more useful if I can click on the links to go there as in the
regular org file.

Even without that this hack looks like a keeper to me :)


As a first step, `C-c C-o' now opens links from the entire text of an  
entry, not just of the headline visible in the agenda.  So this works  
even without using E to show entry text in the agenda, but of course  
it will also when when the extra text is visible.


- 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] Re: Custom agenda question

2009-08-26 Thread Bernt Hansen
Carsten Dominik carsten.domi...@gmail.com writes:

 On Aug 25, 2009, at 3:57 PM, Bernt Hansen wrote:

 Manish mailtomanish.sha...@gmail.com writes:

 Thanks!  I like it very much so far.  Refreshing the agenda removes
 the
 snippets/excerpts though.  Will use it for a few days and report
 back.

 Me too!  I just tried it for the first time this morning and I think
 this is going to be very useful.

 Lots of my tasks have website links which are exposed by this.  It
 would
 be even more useful if I can click on the links to go there as in the
 regular org file.

 Even without that this hack looks like a keeper to me :)

 As a first step, `C-c C-o' now opens links from the entire text of an
 entry, not just of the headline visible in the agenda.  So this works
 even without using E to show entry text in the agenda, but of course
 it will also when when the extra text is visible.

Thanks!

-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


Re: [Orgmode] Faces bug in org-indent-mode

2009-08-26 Thread Daniel Clemente
El dt, ago 25 2009 a les 09:56, Carsten Dominik va escriure:

 thing will break.  The real solution for this would be to
 switch to a programmed solution instead of a regular
 expression search.

  Or many regular expressions, one for each context: table, heading, comment, 
text, …
  Based on the context, you choose one or another. To know the context, there 
may be some text property set at each point.
  If Emacs had a way to check for a text property (or even a face) inside a 
regexp, this could be easier. You could still use a single expression which 
would direct to the context-specific part, like in:  
\p{heading}REGEXP_ONLY_FOR_HEADINGS\|\p{table}REGEXP_FOR_TABLES\|…   where 
\p{property} is the proposed addition to Emacs regexps.


  This was a minor issue, but making Emacs regexps more powerful would be nice.

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


Re: [Orgmode] Faces bug in org-indent-mode

2009-08-26 Thread Carsten Dominik


On Aug 26, 2009, at 1:42 PM, Daniel Clemente wrote:


El dt, ago 25 2009 a les 09:56, Carsten Dominik va escriure:


thing will break.  The real solution for this would be to
switch to a programmed solution instead of a regular
expression search.

 Or many regular expressions, one for each context: table, heading,  
comment, text, …
 Based on the context, you choose one or another. To know the  
context, there may be some text property set at each point.
 If Emacs had a way to check for a text property (or even a face)  
inside a regexp, this could be easier. You could still use a single  
expression which would direct to the context-specific part, like  
in:  \p{heading}REGEXP_ONLY_FOR_HEADINGS\|\p{table}REGEXP_FOR_TABLES 
\|…   where \p{property} is the proposed addition to Emacs regexps.


All we would really need are positive and negative look-ahead
and look-behind assertions as the Perl regular expression allows them.

- 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] Custom agenda question

2009-08-26 Thread Carsten Dominik


On Aug 26, 2009, at 2:04 PM, Daniel Clemente wrote:


El dl, ago 24 2009 a les 20:03, Carsten Dominik va escriure:


Please get the latest version and press `E' in the agenda to
toggle the display of a small amount (see variable
`org-agenda-entry-text-maxlines') of text from the entry in
the agenda.



I value this because I have some trees like:

 a big bug: The file id None is not present in the tree  
Inventory object…

* TODO try to reproduce
* fix it

 And the TODO would show in the agenda as just „try to reproduce“,  
which isn't enough context as to remember what is it about.

 Now with 1 key I can get rid of the confusion; thanks.


 I saw something strange: Emacs seems to beep with each C-n on that  
view. Not with C-p.


 The following (ding) is being run on next-line due to the condition  
end-of-buffer, I don't know why:


   (if (interactive-p)
(condition-case nil
(line-move arg nil nil try-vscroll)
  ((beginning-of-buffer end-of-buffer) (ding)))
 (line-move arg nil nil try-vscroll)))
 nil)

The call was:
(line-move 1 nil nil 1)


Interesting.  But I cannot reproduce 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


[Orgmode] Re: Subversion for backups?

2009-08-26 Thread Rainer Stengele

Kyle Sexton schrieb:

I've seen talk of people using subversion to keep track of and back up
their org files.  Can someone give me an example of how they have this
configured and how files are checked in/out from the repository?  Do
you use a 'local' repository on the same machine and back that up
remotely or check your files out to a remote subversion server?

I was going to do something simple like setting up rsnapshot to create
backups of my org directory every X minutes, but subversion has me
intrigued.



I use subversion to backup and track my org files.
I have a server in my office running the subversion server.

Access is by port forwarding the subversion port via ssh - no matter 
being under windows (putty) or under Linux (ssh).
In this way I have my subversion server and repository virtually 
local, that is acces is always via


svn://localhost/repository


I also track all my .emacs.d specific files, especially the org-mode 
files themselves as well as icicles and all kinds of libraries etc.
This makes it easy to update my whole emacs installation on any of my 3 
desktops and 3 notebooks.


rainer


___
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: Subversion for backups?

2009-08-26 Thread Kyle Sexton
At Wed, 26 Aug 2009 14:49:41 +0200,
Rainer Stengele rainer.steng...@online.de wrote:
 
 I use subversion to backup and track my org files.
 I have a server in my office running the subversion server.
 
 Access is by port forwarding the subversion port via ssh - no matter 
 being under windows (putty) or under Linux (ssh).
 In this way I have my subversion server and repository virtually 
 local, that is acces is always via
 
 svn://localhost/repository
 
 
 I also track all my .emacs.d specific files, especially the org-mode 
 files themselves as well as icicles and all kinds of libraries etc.
 This makes it easy to update my whole emacs installation on any of my 3 
 desktops and 3 notebooks.
 

Interesting, can you describe your workflow a bit?  

  1. Do you commit a change to subversion every time you update an org
  file, or are commits scheduled through a cronjob?

  2. When you open new files, do you always check them out of the
  repository / work / check them back in?  Or do you work on a local
  directory structure and sync outside of emacs?

  3. Can you post some of the relevant config lines you have, and the
  key sequences you use for commits?  (This may be asking too much. :))

Thanks in advance, I've seen several ways to do this and I'm trying to
weigh the merits of each approach.

-- 
Kyle Sexton


___
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: Subversion for backups?

2009-08-26 Thread Kyle Sexton
At Wed, 26 Aug 2009 14:49:41 +0200,
Rainer Stengele rainer.steng...@online.de wrote:
 
 I use subversion to backup and track my org files.
 I have a server in my office running the subversion server.
 
 Access is by port forwarding the subversion port via ssh - no matter 
 being under windows (putty) or under Linux (ssh).
 In this way I have my subversion server and repository virtually 
 local, that is acces is always via
 
 svn://localhost/repository
 
 
 I also track all my .emacs.d specific files, especially the org-mode 
 files themselves as well as icicles and all kinds of libraries etc.
 This makes it easy to update my whole emacs installation on any of my 3 
 desktops and 3 notebooks.
 

Interesting, can you describe your workflow a bit?  

  1. Do you commit a change to subversion every time you update an org
  file, or are commits scheduled through a cronjob?

  2. When you open new files, do you always check them out of the
  repository / work / check them back in?  Or do you work on a local
  directory structure and sync outside of emacs?

  3. Can you post some of the relevant config lines you have, and the
  key sequences you use for commits?  (This may be asking too much. :))

Thanks in advance, I've seen several ways to do this and I'm trying to
weigh the merits of each approach.

-- 
Kyle Sexton


___
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] Fix jumping to last refile location in agenda

2009-08-26 Thread Bernt Hansen
Argh.  I think this commit breaks bulk refiling from the agenda.

If I mark two entries (with m) and then B r and enter a location I get a
Refile: prompt in the mini buffer.

Sorry about that.

-Bernt


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

 Applied, thanks.

 - Carsten

 On Aug 25, 2009, at 6:17 PM, Bernt Hansen wrote:

 C-u C-u C-c C-w now goes to the last refile location in the agenda.
 This is the same behaviour as org-refile (when used in an org file)
 ---
 Carsten,

 This patch allows C-u C-u C-c C-w on any line in the agenda.  The goto
 function (C-u C-c C-w) could possibly work the same way - now you need
 to put the point on a task first - it won't work on the date or the
 Day-agenda line.

 This patch is available at git://git.norang.ca/org-mode for-carsten.

 lisp/org-agenda.el |   22 +++---
 1 files changed, 11 insertions(+), 11 deletions(-)

 diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
 index 073e668..83e8dd6 100644
 --- a/lisp/org-agenda.el
 +++ b/lisp/org-agenda.el
 @@ -5475,14 +5475,17 @@ If this information is not given, the
 function uses the tree at point.
 (defun org-agenda-refile (optional goto rfloc)
   Refile the item at point.
   (interactive P)
 -  (let* ((marker (or (get-text-property (point) 'org-hd-marker)
 - (org-agenda-error)))
 - (buffer (marker-buffer marker))
 - (pos (marker-position marker))
 - (rfloc (or rfloc
 -(org-refile-get-location
 - (if goto Goto:  Refile to: ) buffer
 - org-refile-allow-creating-parent-nodes
 +  (if (equal goto '(16))
 +  (org-refile-goto-last-stored)
 +(let* ((marker (or (get-text-property (point) 'org-hd-marker)
 +   (org-agenda-error)))
 +   (buffer (marker-buffer marker))
 +   (pos (marker-position marker))
 +   (rfloc))
 +  (setq rfloc (or rfloc
 +  (org-refile-get-location
 +   (if goto Goto:  Refile to: ) buffer
 +   org-refile-allow-creating-parent-nodes
 (with-current-buffer buffer
   (save-excursion
  (save-restriction
 @@ -5491,9 +5494,6 @@ If this information is not given, the function
 uses the tree at point.
(org-remove-subtree-entries-from-agenda)
(org-refile goto buffer rfloc))

 -
 -
 -
 (defun org-agenda-open-link ()
   Follow the link in the current line, if any.
   (interactive)
 -- 
 1.6.4



 ___
 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


___
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] Fix jumping to last refile location in agenda

2009-08-26 Thread Bernt Hansen
Reverting this commit locally doesn't fix it for me so something else
must be going on.

I'm trying to refile two consecutive notes in my refile.org to Notes
(git.org).

/me continues debugging...

-Bernt

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

 Argh.  I think this commit breaks bulk refiling from the agenda.

 If I mark two entries (with m) and then B r and enter a location I get a
 Refile: prompt in the mini buffer.

 Sorry about that.

 -Bernt


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

 Applied, thanks.

 - Carsten

 On Aug 25, 2009, at 6:17 PM, Bernt Hansen wrote:

 C-u C-u C-c C-w now goes to the last refile location in the agenda.
 This is the same behaviour as org-refile (when used in an org file)
 ---
 Carsten,

 This patch allows C-u C-u C-c C-w on any line in the agenda.  The goto
 function (C-u C-c C-w) could possibly work the same way - now you need
 to put the point on a task first - it won't work on the date or the
 Day-agenda line.

 This patch is available at git://git.norang.ca/org-mode for-carsten.

 lisp/org-agenda.el |   22 +++---
 1 files changed, 11 insertions(+), 11 deletions(-)

 diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
 index 073e668..83e8dd6 100644
 --- a/lisp/org-agenda.el
 +++ b/lisp/org-agenda.el
 @@ -5475,14 +5475,17 @@ If this information is not given, the
 function uses the tree at point.
 (defun org-agenda-refile (optional goto rfloc)
   Refile the item at point.
   (interactive P)
 -  (let* ((marker (or (get-text-property (point) 'org-hd-marker)
 -(org-agenda-error)))
 -(buffer (marker-buffer marker))
 -(pos (marker-position marker))
 -(rfloc (or rfloc
 -   (org-refile-get-location
 -(if goto Goto:  Refile to: ) buffer
 -org-refile-allow-creating-parent-nodes
 +  (if (equal goto '(16))
 +  (org-refile-goto-last-stored)
 +(let* ((marker (or (get-text-property (point) 'org-hd-marker)
 +  (org-agenda-error)))
 +  (buffer (marker-buffer marker))
 +  (pos (marker-position marker))
 +  (rfloc))
 +  (setq rfloc (or rfloc
 + (org-refile-get-location
 +  (if goto Goto:  Refile to: ) buffer
 +  org-refile-allow-creating-parent-nodes
 (with-current-buffer buffer
   (save-excursion
 (save-restriction
 @@ -5491,9 +5494,6 @@ If this information is not given, the function
 uses the tree at point.
   (org-remove-subtree-entries-from-agenda)
   (org-refile goto buffer rfloc))

 -
 -
 -
 (defun org-agenda-open-link ()
   Follow the link in the current line, if any.
   (interactive)
 -- 
 1.6.4



 ___
 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


___
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] Fix jumping to last refile location in agenda

2009-08-26 Thread Carsten Dominik

So should I revert, or do you have  a fix?

- Carsten

On Aug 26, 2009, at 3:53 PM, Bernt Hansen wrote:


Argh.  I think this commit breaks bulk refiling from the agenda.

If I mark two entries (with m) and then B r and enter a location I  
get a

Refile: prompt in the mini buffer.

Sorry about that.

-Bernt


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


Applied, thanks.

- Carsten

On Aug 25, 2009, at 6:17 PM, Bernt Hansen wrote:


C-u C-u C-c C-w now goes to the last refile location in the agenda.
This is the same behaviour as org-refile (when used in an org file)
---
Carsten,

This patch allows C-u C-u C-c C-w on any line in the agenda.  The  
goto
function (C-u C-c C-w) could possibly work the same way - now you  
need

to put the point on a task first - it won't work on the date or the
Day-agenda line.

This patch is available at git://git.norang.ca/org-mode for-carsten.

lisp/org-agenda.el |   22 +++---
1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 073e668..83e8dd6 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5475,14 +5475,17 @@ If this information is not given, the
function uses the tree at point.
(defun org-agenda-refile (optional goto rfloc)
 Refile the item at point.
 (interactive P)
-  (let* ((marker (or (get-text-property (point) 'org-hd-marker)
-(org-agenda-error)))
-(buffer (marker-buffer marker))
-(pos (marker-position marker))
-(rfloc (or rfloc
-   (org-refile-get-location
-(if goto Goto:  Refile to: ) buffer
-org-refile-allow-creating-parent-nodes
+  (if (equal goto '(16))
+  (org-refile-goto-last-stored)
+(let* ((marker (or (get-text-property (point) 'org-hd-marker)
+  (org-agenda-error)))
+  (buffer (marker-buffer marker))
+  (pos (marker-position marker))
+  (rfloc))
+  (setq rfloc (or rfloc
+ (org-refile-get-location
+  (if goto Goto:  Refile to: ) buffer
+  org-refile-allow-creating-parent-nodes
   (with-current-buffer buffer
 (save-excursion
(save-restriction
@@ -5491,9 +5494,6 @@ If this information is not given, the function
uses the tree at point.
  (org-remove-subtree-entries-from-agenda)
  (org-refile goto buffer rfloc))

-
-
-
(defun org-agenda-open-link ()
 Follow the link in the current line, if any.
 (interactive)
--
1.6.4



___
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




___
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] Fix jumping to last refile location in agenda

2009-08-26 Thread Bernt Hansen
Working on a fix - don't revert it since reverting it doesn't seem to
fix it.

-Bernt


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

 So should I revert, or do you have  a fix?

 - Carsten

 On Aug 26, 2009, at 3:53 PM, Bernt Hansen wrote:

 Argh.  I think this commit breaks bulk refiling from the agenda.

 If I mark two entries (with m) and then B r and enter a location I
 get a
 Refile: prompt in the mini buffer.

 Sorry about that.

 -Bernt


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

 Applied, thanks.

 - Carsten

 On Aug 25, 2009, at 6:17 PM, Bernt Hansen wrote:

 C-u C-u C-c C-w now goes to the last refile location in the agenda.
 This is the same behaviour as org-refile (when used in an org file)
 ---
 Carsten,

 This patch allows C-u C-u C-c C-w on any line in the agenda.  The
 goto
 function (C-u C-c C-w) could possibly work the same way - now you
 need
 to put the point on a task first - it won't work on the date or the
 Day-agenda line.

 This patch is available at git://git.norang.ca/org-mode for-carsten.

 lisp/org-agenda.el |   22 +++---
 1 files changed, 11 insertions(+), 11 deletions(-)

 diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
 index 073e668..83e8dd6 100644
 --- a/lisp/org-agenda.el
 +++ b/lisp/org-agenda.el
 @@ -5475,14 +5475,17 @@ If this information is not given, the
 function uses the tree at point.
 (defun org-agenda-refile (optional goto rfloc)
  Refile the item at point.
  (interactive P)
 -  (let* ((marker (or (get-text-property (point) 'org-hd-marker)
 -   (org-agenda-error)))
 -   (buffer (marker-buffer marker))
 -   (pos (marker-position marker))
 -   (rfloc (or rfloc
 -  (org-refile-get-location
 -   (if goto Goto:  Refile to: ) buffer
 -   org-refile-allow-creating-parent-nodes
 +  (if (equal goto '(16))
 +  (org-refile-goto-last-stored)
 +(let* ((marker (or (get-text-property (point) 'org-hd-marker)
 + (org-agenda-error)))
 + (buffer (marker-buffer marker))
 + (pos (marker-position marker))
 + (rfloc))
 +  (setq rfloc (or rfloc
 +(org-refile-get-location
 + (if goto Goto:  Refile to: ) buffer
 + org-refile-allow-creating-parent-nodes
(with-current-buffer buffer
  (save-excursion
(save-restriction
 @@ -5491,9 +5494,6 @@ If this information is not given, the function
 uses the tree at point.
  (org-remove-subtree-entries-from-agenda)
  (org-refile goto buffer rfloc))

 -
 -
 -
 (defun org-agenda-open-link ()
  Follow the link in the current line, if any.
  (interactive)
 -- 
 1.6.4



 ___
 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


___
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: Subversion for backups?

2009-08-26 Thread Manish
On Wed, Aug 26, 2009 at 7:08 PM, Kyle Sexton wrote:
 At Wed, 26 Aug 2009 14:49:41 +0200,
 Rainer Stengele wrote:

 I use subversion to backup and track my org files.
 I have a server in my office running the subversion server.

 Access is by port forwarding the subversion port via ssh - no matter
 being under windows (putty) or under Linux (ssh).
 In this way I have my subversion server and repository virtually
 local, that is acces is always via

 svn://localhost/repository


 I also track all my .emacs.d specific files, especially the org-mode
 files themselves as well as icicles and all kinds of libraries etc.
 This makes it easy to update my whole emacs installation on any of my 3
 desktops and 3 notebooks.


 Interesting, can you describe your workflow a bit?

  1. Do you commit a change to subversion every time you update an org
  file, or are commits scheduled through a cronjob?

  2. When you open new files, do you always check them out of the
  repository / work / check them back in?  Or do you work on a local
  directory structure and sync outside of emacs?

  3. Can you post some of the relevant config lines you have, and the
  key sequences you use for commits?  (This may be asking too much. :))

 Thanks in advance, I've seen several ways to do this and I'm trying to
 weigh the merits of each approach.


FWIW, another informative place for such discussion is vcs-home
mailing list which is dedicated for this kind of discussion.

http://vcs-home.madduck.net/
http://lists.madduck.net/listinfo/vcs-home

HTH
-- 
Manish


___
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] Fix agenda bulk refile bug

2009-08-26 Thread Bernt Hansen
Fix bulk refiling in the agenda due to commit
9ec5529 (Fix jumping to last refile location in agenda, 2009-08-20)

This restores the original behaviour.
---
This patch is available in git://git.norang.ca/org-mode for-carsten

As it turns out the revert of the previous patch generated conflicts
and I reverted it incorrectly :-P.  The following patch applied on top
of master seems to fix the problem.

Bernt

 lisp/org-agenda.el |   17 -
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 84d6566..d915e46 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5481,18 +5481,17 @@ If this information is not given, the function uses the 
tree at point.
   (org-agenda-error)))
   (buffer (marker-buffer marker))
   (pos (marker-position marker))
-  (rfloc))
-  (setq rfloc (or rfloc
+  (rfloc (or rfloc
  (org-refile-get-location
   (if goto Goto:  Refile to: ) buffer
   org-refile-allow-creating-parent-nodes
-(with-current-buffer buffer
-  (save-excursion
-   (save-restriction
- (widen)
- (goto-char marker)
- (org-remove-subtree-entries-from-agenda)
- (org-refile goto buffer rfloc))
+  (with-current-buffer buffer
+   (save-excursion
+ (save-restriction
+   (widen)
+   (goto-char marker)
+   (org-remove-subtree-entries-from-agenda)
+   (org-refile goto buffer rfloc)))
 
 (defun org-agenda-open-link (optional arg)
   Follow the link in the current line, if any.
-- 
1.6.4.1.331.gda1d56



___
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] [PATCH] Fix agenda bulk refile bug

2009-08-26 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Aug 26, 2009, at 4:35 PM, Bernt Hansen wrote:


Fix bulk refiling in the agenda due to commit
9ec5529 (Fix jumping to last refile location in agenda, 2009-08-20)

This restores the original behaviour.
---
This patch is available in git://git.norang.ca/org-mode for-carsten

As it turns out the revert of the previous patch generated conflicts
and I reverted it incorrectly :-P.  The following patch applied on top
of master seems to fix the problem.

Bernt

lisp/org-agenda.el |   17 -
1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 84d6566..d915e46 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5481,18 +5481,17 @@ If this information is not given, the  
function uses the tree at point.

   (org-agenda-error)))
   (buffer (marker-buffer marker))
   (pos (marker-position marker))
-  (rfloc))
-  (setq rfloc (or rfloc
+  (rfloc (or rfloc
  (org-refile-get-location
   (if goto Goto:  Refile to: ) buffer
   org-refile-allow-creating-parent-nodes
-(with-current-buffer buffer
-  (save-excursion
-   (save-restriction
- (widen)
- (goto-char marker)
- (org-remove-subtree-entries-from-agenda)
- (org-refile goto buffer rfloc))
+  (with-current-buffer buffer
+   (save-excursion
+ (save-restriction
+   (widen)
+   (goto-char marker)
+   (org-remove-subtree-entries-from-agenda)
+   (org-refile goto buffer rfloc)))

(defun org-agenda-open-link (optional arg)
  Follow the link in the current line, if any.
--
1.6.4.1.331.gda1d56



___
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] org-toggle-link-style

2009-08-26 Thread Chris Leyon
I wanted this operation on a key (rather than a menu option), so I am
sharing my function in case anyone else finds it useful:

(defun org-toggle-link-style ()
  Toggle between descriptive and literal link styles.
  (interactive)
  (if (member '(org-link) buffer-invisibility-spec)
  ;; descriptive - literal
  (progn
(org-remove-from-invisibility-spec '(org-link))
(message Showing literal links))
;; literal - descriptive
(org-add-to-invisibility-spec '(org-link))
(message Showing descriptive links))
  (org-restart-font-lock))


___
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] Custom agenda question

2009-08-26 Thread Daniel Clemente
El dc, ago 26 2009 a les 14:28, Carsten Dominik va escriure:

  The following (ding) is being run on next-line due to the condition
 end-of-buffer, I don't know why:


 Interesting.  But I cannot reproduce it.


  Strange. It happens even with emacs -Q in Ubuntu's emacs-snapshot package:
GNU Emacs 23.0.91.1 (i486-pc-linux-gnu, GTK+ Version 2.16.0) of 2009-04-05 on 
palmer, modified by Debian

  Maybe in Emacs' CVS it is fixed…

  The end-of-buffer is signaled by (line-move-visual 1 nil):

(signal (if ( arg 0)
'beginning-of-buffer
  'end-of-buffer)
nil



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


[Orgmode] Re: Orgmodehow do you compose mails in Gnus with org-mode

2009-08-26 Thread Wes Hardaker
 On Tue, 25 Aug 2009 18:51:50 -0400, Matt Lundin m...@imapmail.org said:

ML Org-mode is not a mail mode. It certainly would not be suitable as a
ML major mode for composing mail.

I do frequently, however, write notes and things in org and then mail
them out later.  I either export them using org-export of type ascii,
for example.
-- 
\ Wes Hardaker   http://pontifications.hardakers.net /
 \_ In the bathtub of history the truth is harder to hold than /
   \___ the soap, and much more difficult to find. ___/
   \_ -- Terry Pratchett __/
 \__/


___
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] Custom agenda question

2009-08-26 Thread Phil Rooke
Carsten Dominik carsten.domi...@gmail.com writes:

 On Aug 26, 2009, at 2:04 PM, Daniel Clemente wrote:

  I saw something strange: Emacs seems to beep with each C-n on that
 view. Not with C-p.

  The following (ding) is being run on next-line due to the condition
 end-of-buffer, I don't know why:

(if (interactive-p)
  (condition-case nil
  (line-move arg nil nil try-vscroll)
((beginning-of-buffer end-of-buffer) (ding)))
  (line-move arg nil nil try-vscroll)))
  nil)

 The call was:
 (line-move 1 nil nil 1)

 Interesting.  But I cannot reproduce it.

I too am having the exact same (minor) problem as Daniel. Additionally,
in the 'E' expanded view the 'p' command will move to the end of the
line containing the previous agenda entry as opposed to hugging the
leftmost column as it does in the non-expanded view.

Phil


___
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: Orgmodehow do you compose mails in Gnus with org-mode

2009-08-26 Thread Matthew Lundin
Wes Hardaker wjhns...@hardakers.net writes:

 On Tue, 25 Aug 2009 18:51:50 -0400, Matt Lundin m...@imapmail.org said:

 ML Org-mode is not a mail mode. It certainly would not be suitable as a
 ML major mode for composing mail.

 I do frequently, however, write notes and things in org and then mail
 them out later.  I either export them using org-export of type ascii,
 for example.

Yes, you are right. Forgive me if I somehow implied that org mode could
not slice and dice any type of plain text. Anything and everything goes
into my org files. :)

I got the impression, however, that the OP was typing M-x org-mode while
composing a mail in mail-mode or message-mode. I think the correct
approach would be to activate the minor modes (orgstruct-mode,
orgtbl-mode).

Best,
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


[Orgmode] Mode line colour under a clocked item

2009-08-26 Thread Phil Rooke

I have customised the background colour of my mode line face.  However,
when I clock into a task the background colour under the clocked task
button on the mode line reverts to the default grey.  That grey
background also extends one character to the left of the clocked item
button (that is one of the mode line '-' characters in my case).

I think it has been like this for quite a while.  Sorry for being slow
in reporting it.

Phil

I am currently running org-mode as of:

commit c2265b414571ceec4bffd43edefe6afc81ff25e0
Author: Carsten Dominik carsten.domi...@gmail.com
Date:   Wed Aug 26 13:08:22 2009 +0200


___
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: Subversion for backups?

2009-08-26 Thread Matt Lundin
Kyle Sexton k...@mocker.org writes:

 At Wed, 26 Aug 2009 14:49:41 +0200,
 Rainer Stengele rainer.steng...@online.de wrote:
 
 I use subversion to backup and track my org files.
 I have a server in my office running the subversion server.
 
 Access is by port forwarding the subversion port via ssh - no matter 
 being under windows (putty) or under Linux (ssh).
 In this way I have my subversion server and repository virtually 
 local, that is acces is always via
 
 svn://localhost/repository
 
 
 I also track all my .emacs.d specific files, especially the org-mode 
 files themselves as well as icicles and all kinds of libraries etc.
 This makes it easy to update my whole emacs installation on any of my 3 
 desktops and 3 notebooks.
 

 Interesting, can you describe your workflow a bit?  

   1. Do you commit a change to subversion every time you update an org
   file, or are commits scheduled through a cronjob?

   2. When you open new files, do you always check them out of the
   repository / work / check them back in?  Or do you work on a local
   directory structure and sync outside of emacs?

   3. Can you post some of the relevant config lines you have, and the
   key sequences you use for commits?  (This may be asking too much. :))

 Thanks in advance, I've seen several ways to do this and I'm trying to
 weigh the merits of each approach.

A while ago, I used to keep everything in subversion. If I remember
correctly, I made heavy use of the svn commands (svn mv, svn cp,
svn add, etc.) and used psvn.el to manage my repository within emacs.

I wasn't really worried about keeping detailed log messages so I used a
basic alias:

--8---cut here---start-8---
alias commit='svn commit ~/mystuff -m Sync'
--8---cut here---end---8---

I just made sure to invoke this regularly.

This is a bit off-topic, but I found the separation of repository and
working files in SVN a bit cumbersome after a while. You can't view your
history when you aren't connected to the remote repository, your history
is in only one place, you have duplicate files in the .svn directories,
etc.

For this reason I highly recommend a distributed version control system
such as git, bzr, etc.. You can start locally quite easily (git init,
git add ., git commit -a) and then decide to create a remote
repository whenever you'd like.

In fact, there's a nice tutorial on this:

http://orgmode.org/worg/org-tutorials/org-vcs.php

Best,
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


[Orgmode] question and use example

2009-08-26 Thread Paul Menair
Folks,

I've been struggling with something and thought I'd ask you folks.

I'm an attorney.  I use org-mode for various things, because it's convenient, 
simple and flexible.  And most case management software for lawyers is awful.  
Anyway, one of the things I do in org is keep my time.  

The ordinary timekeeping function in org is interesting and neat in some ways, 
but not useful for my purposes.  I need to provide my employer with a set of 
timeslips, where each record consists of a date, client name, description, and 
time interval in decimal form.  Everything that I've tried that attempts to 
help me do this fails in one way or another.  The solution I have is a table 
in org that is set up like this:

| date | client | desc | [time]--[time] | H:M | x.x |

Org is perfect for this because it does what no other time and billing solution 
I've seen does -- it lets me just record two timestamps in plain text and get 
an interval.  The only other piece of software I've ever seen that does this 
was a calendar program that let you do this in its notes field.

My problem is this.  I populate the fifth field with c-- c-u c-y.  I would be 
nice if it happened automatically, but that's no big deal.  However, I've been 
going through and manually entering the sixth field, and that does end up being 
a hassle.

Calc seems to only work on timestamps and not have any straight way to convert 
H:M to decimal.  I suppose I could keep my in and out timestamps in separate 
fields and figure out a way to have calc work on them, but it seems like there 
should be an easier solution.

Any thoughts?  In any event, I thought it might be of interest for folks to see 
a use case from a non-engineering professional.

Paul


___
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] Strange tag search behavior

2009-08-26 Thread Scott Randby

The test file shown below produces strange behavior when doing a tag search. 
This behavior is described after the file. The Org-Mode version is 6.29trans on 
GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-08-01 on 
leucaena, modified by Debian.

--
* Grades
** Student 1 :student1:
*** Homework :homework:
|--+---+---+---+---+---|
| Homework | 1 | 2 | 3 | 4 | 5 |
|--+---+---+---+---+---|
|  |   |   |   |   |   |
|--+---+---+---+---+---|
*** 
*** Attendance:attendance:

x = did not attend
|+---+---+---+---+---|
| Attendance |   |   |   |   |   |
|+---+---+---+---+---|
| Day| 1 | 2 | 3 | 4 | 5 |
||   |   |   |   |   |
|+---+---+---+---+---|
*** 
** Student 2 :student2:

*** Homework :homework:
|--+---+---+---+---+---|
| Homework | 1 | 2 | 3 | 4 | 5 |
|--+---+---+---+---+---|
|  |   |   |   |   |   |
|--+---+---+---+---+---|
*** 
*** Attendance:attendance:

x = did not attend
|+---+---+---+---+---|
| Attendance |   |   |   |   |   |
|+---+---+---+---+---|
| Day| 1 | 2 | 3 | 4 | 5 |
||   |   |   |   |   |
|+---+---+---+---+---|
*** 
** Student 3 :student3:

*** Homework :homework:
|--+---+---+---+---+---|
| Homework | 1 | 2 | 3 | 4 | 5 |
|--+---+---+---+---+---|
|  |   |   |   |   |   |
|--+---+---+---+---+---|
*** 
*** Attendance:attendance:

x = did not attend
|+---+---+---+---+---|
| Attendance |   |   |   |   |   |
|+---+---+---+---+---|
| Day| 1 | 2 | 3 | 4 | 5 |
||   |   |   |   |   |
|+---+---+---+---+---|
*** 
** Student 4 :student4:

*** Homework :homework:
|--+---+---+---+---+---|
| Homework | 1 | 2 | 3 | 4 | 5 |
|--+---+---+---+---+---|
|  |   |   |   |   |   |
|--+---+---+---+---+---|
*** 
*** Attendance:attendance:

x = did not attend
|+---+---+---+---+---|
| Attendance |   |   |   |   |   |
|+---+---+---+---+---|
| Day| 1 | 2 | 3 | 4 | 5 |
||   |   |   |   |   |
|+---+---+---+---+---|
*** 
--


To see the strange behavior, do the following.
M-S- (to place the cursor at the beginning of the file)
C-c \ student1+attendance|student2+attendance
C-u 2 C-n
TAB
C-u 6 C-n
TAB

Instead of the cursor going to the first column of the table (which is what should 
occur), the following USUALLY occurs (sometimes something else wrong happens): the table 
is folded and the cursor appears at the end of the line x= did not attend...

Now hit TAB and the *** Attendance subtree is folded (usually).

TAB
C-u 6 C-n
TAB
and the correct behavior occurs.

This behavior doesn't happen if the tag search doesn't include an or.

I rely on these type of searches. I haven't encountered this problem in 
previous versions of Org-Mode. How is this issue fixed?

Scott Randby
(1) 



___
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-notify - treat notification as a variable not a function

2009-08-26 Thread Bernt Hansen
notification is passed to org-show-notification and should not be
invoked as a function.
---
This patch is available at git://git.norang.ca/org-mode for-carsten

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

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 90f780a..2cc9376 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -446,7 +446,7 @@ Notification is shown only once.
 
 (defun org-notify (notification optional play-sound)
   Send a NOTIFICATION and maybe PLAY-SOUND.
-  (org-show-notification (notification))
+  (org-show-notification notification)
   (if play-sound (org-clock-play-sound)))
 
 (defun org-show-notification (notification)
-- 
1.6.4.1.331.gda1d56



___
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: question and use example

2009-08-26 Thread Benjamin Andresen
Hey Paul,

Paul Menair pmen...@gmail.com writes:

 My problem is this.  I populate the fifth field with c-- c-u c-y.  I
 would be nice if it happened automatically, but that's no big deal.
 However, I've been going through and manually entering the sixth
 field, and that does end up being a hassle.

I whipped something up that should work for you.

You need to evaluate the code below and then the below table will work
for you.

(defun ba/org-timerange (s optional in-min)
  (let* ((re ^\\(.*?\\)--\\(.*?\\)$)
 (start (replace-regexp-in-string re \\1 s))
 (end (replace-regexp-in-string re \\2 s))
 (start-in-min (org-hh:mm-string-to-minutes start))
 (end-in-min (org-hh:mm-string-to-minutes end))
 (diff-in-min (- end-in-min start-in-min)))
(if in-min
diff-in-min
(format %.2f (/ diff-in-min (float 60))

| date | client | desc  | timerange 
 |  H:M | in dec |
|--++---++--+|
| 2009-08-26 Wed | benny  | foo'd | 2009-08-26 Wed 21:55--2009-08-26 Wed 
21:58 | 0:03 |   0.05 |
#+TBLFM: $5='(org-minutes-to-hh:mm-string (ba/org-timerange $4 
t))::$6='(ba/org-timerange $4)

If you're on the table and you press C-u C-c C-c and it should put the
correct info at the respective places.

Now what I recommend is using autocalc instead so you don't have to
worry about doing this. This would require you to change your table to
the following format:

|   | date | client | desc   | timerange
  |  H:M | in dec |
|---+--++++--+|
| # | 2009-08-25 Tue | benny  | foo'd  | 2009-08-25 Tue 20:55--2009-08-25 
Tue 23:58 | 3:03 |   3.05 |
| # | 2009-08-26 Wed | bar| quux'd | 2009-08-26 Wed 22:10--2009-08-26 
Wed 22:14 | 0:04 |   0.07 |
#+TBLFM: $6='(org-minutes-to-hh:mm-string (ba/org-timerange $5 
t))::$7='(ba/org-timerange $5)

The # in the first column achieves this. See (info (org)Advanced features)
for more information.

 Paul

HTH,
benny


___
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: question and use example

2009-08-26 Thread Paul Menair
Benjamin,

Many thanks -- works like a charm.  I only needed one decimal place,
but I figured out how to do that all by myself.

Paul


___
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] can't see emphasized text in org

2009-08-26 Thread Daniel Goldin

Finally got a chance to try this. Works like a charm! Thanks.

d.

On Sun, 23 Aug 2009, Nick Dokos wrote:


Daniel Goldin danielgol...@gmail.com wrote:


On Sun, 23 Aug 2009, Nick Bell wrote:

 Daniel Goldin wrote:
 Non-programmer-type can't see markup like /this/ as emphasized. I
 looked through manual and searched web but found no answer.  Any
 thoughts?
 Are you using a font which has a separate italic form? Try switching
 to  a font which you know does, such as Courier New.

 Now wait for an expert to come along.

Doesn't help, I'm afraid.



I've seen this problem before and I never chased it down but when I saw
Nick Bell's idea, I figured that's got to be it. It *almost* works
but not quite (as Daniel found out).

If you enter /italic/ in an org buffer, place your cursor in there and
say M-x describe-text-properties, you get:

,
| Text content at position 48:
| 
| 
| There are text properties here:

|   face (italic)
|   font-lock-multiline  t
|   fontifiedt
`

You can then M-x describe-face italic RET. For me, that had
the :underline attribute set, and the :slant attribute unset.
If you customize the face, set the :slant attribute (e.g. to italic)
and unset the :underline attribute and *then* change to a font that
provides an italic form, then /italic/ is indeed italicized.

The problem seems to be in faces.el:

,
| (defface italic
|   'supports :slant italic))
|  :slant italic)
| (((supports :underline t))
|  :underline t)
| (t
|  ;; default to italic, even it doesn't appear to be supported,
|  ;; because in some cases the display engine will do it's own
|  ;; workaround (to `dim' on ttys)
|  :slant italic))
|   Basic italic face.
|   :group 'basic-faces)
`

which apparently looked at my default font[1], found that it does not
support italics but does support underlines and set the attributes
accordingly. *Why* it falls back to underlining is probably a question
that should be addressed to the emacs developers, but it looks like
a bug to me (hence copied to the emacs bugs list - version info appended[2])

HTH,
Nick

[1] I have

(set-default-font -misc-fixed-medium-r-normal--15-120-100-100-c-90-iso8859-1)

in my .emacs. I think this is what used to be called 9x15 at some point in
the past, but I'm really not sure.


[2] Version info:

GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-08-09 on 
gamaville.dokosmarshall.org
Org-mode version 6.29trans (release_6.29c.55.ga48f)


--
Daniel Goldin 
213.926.1960



___
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] [PATCH] org-notify - treat notification as a variable not a function

2009-08-26 Thread Bastien
Bernt Hansen be...@norang.ca writes:

 notification is passed to org-show-notification and should not be
 invoked as a function.

Applied, thanks!  (and sorry for the silly mistake.)

-- 
 Bastien


___
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: question and use example

2009-08-26 Thread Nick Dokos
Benjamin Andresen bandre...@gmail.com wrote:

 Hey Paul,
 
 Paul Menair pmen...@gmail.com writes:
 
  My problem is this.  I populate the fifth field with c-- c-u c-y.  I
  would be nice if it happened automatically, but that's no big deal.
  However, I've been going through and manually entering the sixth
  field, and that does end up being a hassle.
 
 I whipped something up that should work for you.
 

Very nice!

There is a simpler approach, but with the disadvantage that
it requires modifications to the structure of the table (iow, I don't
know how to do it with a time range :-) The main simplification is that
it uses built-in functions.

The table looks like this:

|   | date | client | desc  | start time | end time 
  | duration in dec |  H:M |
|---+--++---+++-+--|
| # | 2009-08-26 Wed | benny  | foo'd | 2009-08-26 Wed 14:45 | 2009-08-26 
Wed 18:05 |3.33 | 3:20 |

#+TBLFM: $7=(date($6) - date($5))*24;%.2f :: 
$8='(org-minutes-to-hh:mm-string (round (* $7 60)));N

Note that the primary result is the time interval in decimal hours - the
hh:mm result is derived from that. Note also that the rounding is necessary
because org-minutes-to-hh:mm-string assumes that its argument is an integer
and misbehaves if it is not:

(org-minutes-to-hh:mm-string 73.2) -- 1:00
(org-minutes-to-hh:mm-string 73) -- 1:13

I'm sure there are other approaches as well - investigating the built-in
clocking and attendant reports is probably a good idea as well. Bernt
Hansen has some information in his org-mode page[1], and there is a
tutorial about it on worg[2].

HTH,
Nick

[1] http://doc.norang.ca/org-mode.html
[2] http://orgmode.org/worg/org-tutorials/index.php - the tutorial itself
is at http://sachachua.com/wp/2007/12/30/clocking-time-with-emacs-org/,
but note that it's 1.5 years old and I don't know whether it's still
useful or whether it's completely out of date by this time.



___
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] Hooks and publishing

2009-08-26 Thread Sebastian Rose
Hi,


I have this in one of my setup files:

   (add-hook 'text-mode-hook 'turn-on-flyspell)
   ;; (add-hook 'org-mode-hook 'turn-on-flyspell)
   (add-hook 'message-mode-hook 'turn-on-flyspell)

As you can see, the second line is already commented. But it seems,
org-mode runs text-mode-hook, too. This slows down export (especially,
if ispell is not yet installed on a new system...).


Is it possible (and does it make sense) to load all Org-files without
running any of the hooks?



   Sebastian

...who finally has a new machine (T500 + Ubuntu is great) and is now
online on a more regular base again :)


___
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] can't see emphasized text in org

2009-08-26 Thread Nick Dokos
I have the feeling that I am personally responsible for spamming the
emacs bug list. I made the mistake of cc'ing my original reply to that
list, so I suspect that everybody who replied to my original email
(including Daniel below) ended up creating another bogus bug report on
that list (maybe the list manager is smart enough to recognize that they
are all follow-ups to the original bug report and has tacked them on to
that - that's my hope but I haven't had the courage to check yet.)

I apologize for the stupidity and promise never to do it again, but I beg
you: if you feel like replying to anything on this thread, *please* edit
the CC list and delete bug-gnu-emacs from it.

Having had my fill of crow, I remain

Humble-pied-ly yours,
Nick

Daniel Goldin danielgol...@gmail.com wrote:

 Finally got a chance to try this. Works like a charm! Thanks.
 
 d.
 
 On Sun, 23 Aug 2009, Nick Dokos wrote:
 
 Daniel Goldin danielgol...@gmail.com wrote:
 
  On Sun, 23 Aug 2009, Nick Bell wrote:
 
   Daniel Goldin wrote:
   Non-programmer-type can't see markup like /this/ as emphasized. I
   looked through manual and searched web but found no answer.  Any
   thoughts?
   Are you using a font which has a separate italic form? Try switching
   to  a font which you know does, such as Courier New.
  
   Now wait for an expert to come along.
  
  Doesn't help, I'm afraid.
 
 
 I've seen this problem before and I never chased it down but when I saw
 Nick Bell's idea, I figured that's got to be it. It *almost* works
 but not quite (as Daniel found out).
 
 If you enter /italic/ in an org buffer, place your cursor in there and
 say M-x describe-text-properties, you get:
 
 ,
 | Text content at position 48:
  | | | There are text properties here:
 |   face (italic)
 |   font-lock-multiline  t
 |   fontifiedt
 `
 
 You can then M-x describe-face italic RET. For me, that had
 the :underline attribute set, and the :slant attribute unset.
 If you customize the face, set the :slant attribute (e.g. to italic)
 and unset the :underline attribute and *then* change to a font that
 provides an italic form, then /italic/ is indeed italicized.
 
 The problem seems to be in faces.el:
 
 ,
 | (defface italic
 |   'supports :slant italic))
 |  :slant italic)
 | (((supports :underline t))
 |  :underline t)
 | (t
 |  ;; default to italic, even it doesn't appear to be supported,
 |  ;; because in some cases the display engine will do it's own
 |  ;; workaround (to `dim' on ttys)
 |  :slant italic))
 |   Basic italic face.
 |   :group 'basic-faces)
 `
 
 which apparently looked at my default font[1], found that it does not
 support italics but does support underlines and set the attributes
 accordingly. *Why* it falls back to underlining is probably a question
 that should be addressed to the emacs developers, but it looks like
 a bug to me (hence copied to the emacs bugs list - version info appended[2])
 
 HTH,
 Nick
 
 [1] I have
 
 (set-default-font 
 -misc-fixed-medium-r-normal--15-120-100-100-c-90-iso8859-1)
 
 in my .emacs. I think this is what used to be called 9x15 at some point in
 the past, but I'm really not sure.
 
 
 [2] Version info:
 
 GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-08-09 
 on gamaville.dokosmarshall.org
 Org-mode version 6.29trans (release_6.29c.55.ga48f)
 
 -- 
 Daniel Goldin 213.926.1960
 


___
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: POLL: Change of keys to move agenda through time

2009-08-26 Thread Bastien
Carsten Dominik domi...@uva.nl writes:

 1. n/p remain as they where
 2. Moving forward/backward though time will be `f' and `b'
 3. Follow mode goes to the F key, a capital letter does
make sense here given that some other modes like [G]rid
and clock[R]eport and [D]iary are on capitals as well.
 4. `org-agenda-tree-to-indirect-buffer' is already on
`C-c C-x b' which is the same key as in a normal Org
buffer.  Therefore, I think we do not need to find a
replacement for the `b' binding.

Fine!

 5. The cursor keys left and right are remapped to a
function that does nothing, except showing a message
that you should now use f/b to move through time.

Why not letting the left and right keys doing their usual
job of C-b and C-f?  We can still display the message...

 We could have an option to allow users to get the time
 motion or cursor motion on left/right, if there was enough
 support/need for this.  I do not think that this is strictly
 necessary, because every user can of course rebind keys
 in any way she likes.  

Yes.  I would spare the option.

-- 
 Bastien


___
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: POLL: Change of keys to move agenda through time

2009-08-26 Thread Samuel Wales
Looks good.  However, you might want to have cursor movement work, if
the keys will not be functional, so that people can mark text (nobody
mentioned that yet).  Did you get a chance to look at my proposal for
right and left arrow keys?

-- 
Myalgic encephalomyelitis causes death (Jason et al. 2006)
and severe suffering.  Conflicts of interest are destroying
research.  What people know is wrong.  Silence = death.
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


[Orgmode] Re: POLL: Change of keys to move agenda through time

2009-08-26 Thread Gregory J. Grubbs
Carsten Dominik domi...@uva.nl writes:

 Hi,

 thank you everybody for this very interesting discussion.  I have
 been trying to think of a way to extract common ground from the
 different opinions.

 Here is what I have come up with:

 1. n/p remain as they where
 2. Moving forward/backward though time will be `f' and `b'
 3. Follow mode goes to the F key, a capital letter does
make sense here given that some other modes like [G]rid
and clock[R]eport and [D]iary are on capitals as well.
 4. `org-agenda-tree-to-indirect-buffer' is already on
`C-c C-x b' which is the same key as in a normal Org
buffer.  Therefore, I think we do not need to find a
replacement for the `b' binding.

Great!


 5. The cursor keys left and right are remapped to a
function that does nothing, except showing a message
that you should now use f/b to move through time.


Please allow left and right to move the cursor.  I will often move
the cursor even in read-only buffers, just to focus on a section I want
to contemplate.  Dired allows me to do that -- even to move left of the
file name to the date or other information on a line. 



___
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: POLL: Change of keys to move agenda through time

2009-08-26 Thread Charles Philip Chan
Carsten Dominik domi...@uva.nl writes:

 1. n/p remain as they where
 2. Moving forward/backward though time will be `f' and `b'
 3. Follow mode goes to the F key, a capital letter does
make sense here given that some other modes like [G]rid
and clock[R]eport and [D]iary are on capitals as well.
 4. `org-agenda-tree-to-indirect-buffer' is already on
`C-c C-x b' which is the same key as in a normal Org
buffer.  Therefore, I think we do not need to find a
replacement for the `b' binding.
 5. The cursor keys left and right are remapped to a
function that does nothing, except showing a message
that you should now use f/b to move through time.

Looks good, but like others have said, I prefer the left and right
keys to move the cursor.

Charles

-- 
People get annoyed when you try to debug them.

  -- Larry Wall (Open Sources, 1999 O'Reilly and Associates)


pgpSB59hndZ2w.pgp
Description: PGP signature
___
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