[Orgmode] undo grouping

2009-02-25 Thread Martin Pohlack
Hi All,

I hacked together a small workaround for the ungrouped undo-list entries
(undo works only characterwise in org-mode, but usually chunks together
several key strokes in, e.g., text-mode).

I have this piece of code in my emacs startup script.

-–-8---
;; implement undo grouping for org-mode
(setq org-self-insert-command-undo-counter 0)
(defadvice org-self-insert-command (after compact-undo-list () activate)
  Compact the undo list by removing some boundaries.
  (if (not (eq last-command 'org-self-insert-command))
  (setq org-self-insert-command-undo-counter 1)
(if (= org-self-insert-command-undo-counter 20)
(setq org-self-insert-command-undo-counter 1)
  (when ( org-self-insert-command-undo-counter 0)
(when buffer-undo-list
  (when (not (cadr buffer-undo-list)) ; remove nil entry
(setcdr buffer-undo-list (cddr buffer-undo-list)
  (incf org-self-insert-command-undo-counter
-–-8---

The advice post-processes the local buffer-undo-list and removes some
undo-boundaries.  The behavior is modeled after emacs' command_loop.

Feedback welcome.

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


[Orgmode] undo grouping

2009-02-25 Thread Martin Pohlack
[resent, as the previous attempts didn't make it to the list ...]

Hi All,

I hacked together a small workaround for the ungrouped undo-list entries
(undo works only characterwise in org-mode, but usually chunks together
several key strokes in, e.g., text-mode).

I have this piece of code in my emacs startup script.

-–-8---
;; implement undo grouping for org-mode
(setq org-self-insert-command-undo-counter 0)
(defadvice org-self-insert-command (after compact-undo-list () activate)
  Compact the undo list by removing some boundaries.
  (if (not (eq last-command 'org-self-insert-command))
  (setq org-self-insert-command-undo-counter 1)
(if (= org-self-insert-command-undo-counter 20)
(setq org-self-insert-command-undo-counter 1)
  (when ( org-self-insert-command-undo-counter 0)
(when buffer-undo-list
  (when (not (cadr buffer-undo-list)) ; remove nil entry
(setcdr buffer-undo-list (cddr buffer-undo-list)
  (incf org-self-insert-command-undo-counter
-–-8---

The advice post-processes the local buffer-undo-list and removes some
undo-boundaries.  The behavior is modeled after emacs' command_loop.

Feedback welcome.

Cheers,
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] undo grouping

2009-02-25 Thread Martin Pohlack
[...]

 (undo works only characterwise in org-mode, but usually chunks together
  ^ emacs

 several key strokes in, e.g., text-mode).



___
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: Wrong type argument: sequencep, quote

2009-02-25 Thread Carsten Dominik


On Feb 24, 2009, at 4:05 PM, Ross A. Laird wrote:


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


What is the value or org-drawers?

What is your #+OPTIONS line?


This is likely the source of my problem. I had trouble finding the
proper way to configure the drawer. The documentation says that  
Drawers

need to be configured with the variable org-drawers, then gives the
example  of You can define drawers on a per-file basis with a line  
like

#+DRAWERS: HIDDEN PROPERTIES STATE. So, without further indication of
what these settings do, or how to actually use the variable org- 
drawers, I

just used the sample code in my file with the name of my drawer
added on to the end:

#+DRAWERS: HIDDEN PROPERTIES STATE PRIVATE


This line is correct, and when activated by loading such a buffer,
or by pressing C-c C-c in the line, it will actually change org-drawers.

The drawer, by the way, has encrypted text in it. I have also  
confirmed

that html export works fine in general.

Perhaps there is an argument to be made for clarifying the drawers
documentation (or perhaps I'm just too clueless!).


Let me repeat:  Do you have an #+OPTIONS line?  what does it say?

Please verify the value of org-drawers in the buffer where
you use this.

Don't try to minimize the information you give us, maximize it.

- Carsten




Cheers.

Ross



- Carsten

On Feb 24, 2009, at 7:40 AM, Ross A. Laird wrote:



This is the error I get when I try any form of html export:

org-export-remove-or-extract-drawers: Wrong type argument:  
sequencep,

quote

It even happens when I select a region without a drawer and then try
exporting.

Suggestions?

--
Ross A. Laird, PhD
www.rosslaird.info



___
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



--
Ross A. Laird, PhD
www.rosslaird.info



___
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] undo grouping

2009-02-25 Thread Carsten Dominik


Excellent, thank you very much.

I have installed this code (not using advice, but directly).

- Carsten

On Feb 24, 2009, at 9:22 PM, Martin Pohlack wrote:


Hi All,

I hacked together a small workaround for the ungrouped undo-list  
entries
(undo works only characterwise in org-mode, but usually chunks  
together

several key strokes in, e.g., text-mode).

I have this piece of code in my emacs startup script.

-–- 
8---

;; implement undo grouping for org-mode
(setq org-self-insert-command-undo-counter 0)
(defadvice org-self-insert-command (after compact-undo-list ()  
activate)

 Compact the undo list by removing some boundaries.
 (if (not (eq last-command 'org-self-insert-command))
 (setq org-self-insert-command-undo-counter 1)
   (if (= org-self-insert-command-undo-counter 20)
   (setq org-self-insert-command-undo-counter 1)
 (when ( org-self-insert-command-undo-counter 0)
   (when buffer-undo-list
 (when (not (cadr buffer-undo-list)) ; remove nil entry
   (setcdr buffer-undo-list (cddr buffer-undo-list)
 (incf org-self-insert-command-undo-counter
-–- 
8---


The advice post-processes the local buffer-undo-list and removes some
undo-boundaries.  The behavior is modeled after emacs' command_loop.

Feedback welcome.

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


Re: [Orgmode] ascii export of url part of links possible?

2009-02-25 Thread Carsten Dominik


On Feb 24, 2009, at 9:18 PM, Samuel Wales wrote:


I didn't find a way to have export as ASCII export the URL
of links.

With a link whose URL is google's and whose label is
google main page, org exports:

 try [google main page].

I prefer this:

 try http://google.com (google main page).


I agree, and this would be easy to to.  However, a problem is that
it would make lines potentially very long, as ASCII export does not
fill paragraphs.

I have been thinking that it might be better to force links into
footnotes for ascii export.

What do you think?

- 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] scheduled item taking time from inactive time stamp

2009-02-25 Thread Carsten Dominik


On Feb 24, 2009, at 7:00 PM, Samuel Wales wrote:


Would it make sense at all to provide a user variable to turn off  the
agenda's scanning of headlines for times?  I wonder if that would
(slightly) speed it up also?


We have now such a variable, `org-agenda-search-headline-for time',
but no, it will not noticeably speed up the agenda creation.

- 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] org-annotation mode version 0.4

2009-02-25 Thread Carsten Dominik

Hi Daniel, thanks.

I installed the new version in the contrib directory.

An org version of the docs can go up in Worg in the directory
org-contrib, with a link to it in org-contrib/index.el

Maybe the faq can go up on Worg as well, same directory?

- Carsten

On Feb 24, 2009, at 10:05 PM, Daniel M German wrote:



I want to apologize to all org-annotation-helper users out there
(including Carsten) for dropping the ball for the last few months.


Here is the latest version of it, with improved documentation and
a small bug fix b David Moffat.

http://turingmachine.org/~dmg/temp/org-annot-0.4.tar.gz

--
* Welcome to org-annotation-helper

This package will allow you to invoke remember from your Web browser
and end within emacs with an org link to the current URL, including
its title, and the currently highlighted text.

--

enjoy.




--
--
Daniel M. German
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .




___
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] [tiny patch] calling org-agenda from eshell command line

2009-02-25 Thread Carsten Dominik

Applied, thanks.

- Carsten
On Feb 24, 2009, at 4:11 PM, Eric Schulte wrote:


Hi,

The attached patch makes the prefix argument ARG to `org-agenda'
optional so that it is easier to call from the eshell command line.
There may be some reason not to make this change, but so far I am
enjoying it.

Thanks -- Eric

From 1fd28b94613846616ae1dc8829c16fc70ee54454 Mon Sep 17 00:00:00 2001
From: Eric Schulte schulte.e...@gmail.com
Date: Tue, 24 Feb 2009 07:07:38 -0800
Subject: [PATCH] Make the ARG argument to `org-agenda' optional.   
This makes it easy to

call org-agenda from the eshell command line.

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

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 435a967..74bd614 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1444,7 +1444,7 @@ that have been changed along.
(defvar org-agenda-overriding-restriction nil)

;;;###autoload
-(defun org-agenda (arg optional keys restriction)
+(defun org-agenda (optional arg  keys restriction)
  Dispatch agenda commands to collect entries to the agenda buffer.
Prompts for a command to execute.  Any prefix arg will be passed
on to the selected command.  The default selections are:
--
1.5.4.3

___
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] Suppressing some header numbers during export

2009-02-25 Thread Carsten Dominik


On Feb 24, 2009, at 8:32 PM, Jeff Putsch wrote:


I have an org-mode file that has several headers:

 * Revision History
 * Approvals
 * Introduction ...
 * Overall Description ...
 * System Features ...

That when exporting numbers all headers. This behavior is expected.

I'd like to prevent the first to headers from getting numbered  
during export to html and/or latex,  and starting the numbering, at  
number 1, with the Introduction.


Is this possible, or must I post-process the HTML and .tex files?


This is not possible currently with Org.
You can turn of numbering entirely with

#+OPTIONS: num:nil

but not partially for individual headlines.

- 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] org-agenda-filter-by-tag doesn't work with custom effort property

2009-02-25 Thread Carsten Dominik


On Feb 24, 2009, at 3:52 PM, Daniel Clemente wrote:



 Hi, I would like to contribute 1 byte to org-mode; it's an a:


--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4407,7 +4407,7 @@ to switch to narrowing.
(lambda (x) (if (cdr x) (char-to-string (cdr x)) ))
alist ))
(efforts (org-split-string
- (or (cdr (assoc (concat org-effort-property _ALL)
+ (or (cadr (assoc (concat org-effort-property _ALL)


I don't think this is correct.

What are the symptoms of the problem you encounter?

- Carsten



  org-global-properties))
		  0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00		   
)))

(effort-op org-agenda-filter-effort-default-operator)


 This solves the following stack trace:


Debugger entered--Lisp error: (wrong-type-argument stringp (0 0:10  
0:30 1:00 2:00 3:00 4:00 5:00 6:00 12:00 18:00 24:00 30:00))
 string-match([ \f	\n…]+ (0 0:10 0:30 1:00 2:00 3:00 4:00 5:00  
6:00 12:00 18:00 24:00 30:00) 0)
 org-split-string((0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 12:00  
18:00 24:00 30:00))

 org-agenda-filter-by-tag(nil)
 call-interactively(org-agenda-filter-by-tag nil nil)


 Thanks,
Daniel


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




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


Re: [Orgmode] scheduled item taking time from inactive time stamp

2009-02-25 Thread Eric S Fraga
Carsten Dominik writes:
 On Feb 24, 2009, at 7:00 PM, Samuel Wales wrote:
 
  Would it make sense at all to provide a user variable to turn off  the
  agenda's scanning of headlines for times?  I wonder if that would
  (slightly) speed it up also?
 
 We have now such a variable, `org-agenda-search-headline-for time',
 but no, it will not noticeably speed up the agenda creation.

Excellent.  Thanks Carsten!
-- 
MC .  -.. --- -  ..-. .-. .- --. .-  .- -  ..- -.-. .-..  .- -.-.  ..- -.-
NL Professor Eric S Fraga, Chemical Engineering, University College London
BF ++[+[]-]++..-.++.--.


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


[Orgmode] Using Git to update more than one machine (one without network access)

2009-02-25 Thread Paul Mead
I recognize this is more a git question that org-mode, but...

I'm trying to use git to keep my org-mode version up to date on my personal and
work laptops.

The only problem is that my work laptop has a firewall on it which does not
allow git traffic to pass.

I use a repo on a usb drive to keep my emacs init files in sync, but have
absolutely no idea how to do this for my org-mode files. In essence, I'm trying
to first pull changes from //repo.or.cz to my laptop, and then either have a
second repo on the usb drive which I can pull changes onto, or pull from the
laptop to the usb.

Then I have to somehow get the work laptop to pull changes from the usb.

Am I asking for too much here? I want to avoid all the downloading and unzipping
where possible.

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] Using Git to update more than one machine (one without network access)

2009-02-25 Thread David Thole

Paul,

The way I've accomplished the task you're talking about is instead of 
trying to push and pull *to* the work machine, I use another machine with 
less restrictive firewalls to push and pull from.  This is how I do it...


Work - Web Server - Home

The web server acts as my USB Key, and I have cron jobs to pull and push 
updates to and from the servers.  So at 7:30, I can have a git pull on 
my work machine - so it would go to the web server, pull in and merge my 
changes before I got to work.  Then when I go home, say at 5:10, do a git 
push back to the web server.  At 5:30 or so my home machine can do a git 
pull and at 7:00 AM do a git push.


This works pretty well so far.  Another solution is to set up your home 
machine to have dyndns and enable SSH.  You can then just ssh into your 
home machine, and use org-mode that way too.  I've tried this quite a bit 
as well, and am kinda at a crossroads on which I like the most yet...


I hope this helps.

-David

On Wed, 25 Feb 2009, Paul Mead wrote:


I recognize this is more a git question that org-mode, but...

I'm trying to use git to keep my org-mode version up to date on my personal and
work laptops.

The only problem is that my work laptop has a firewall on it which does not
allow git traffic to pass.

I use a repo on a usb drive to keep my emacs init files in sync, but have
absolutely no idea how to do this for my org-mode files. In essence, I'm trying
to first pull changes from //repo.or.cz to my laptop, and then either have a
second repo on the usb drive which I can pull changes onto, or pull from the
laptop to the usb.

Then I have to somehow get the work laptop to pull changes from the usb.

Am I asking for too much here? I want to avoid all the downloading and unzipping
where possible.

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




___
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] Using Git to update more than one machine (one without network access)

2009-02-25 Thread Nick Dokos
Paul Mead paul.d.m...@gmail.com wrote:


 I'm trying to use git to keep my org-mode version up to date on my personal 
 and
 work laptops.
 
 The only problem is that my work laptop has a firewall on it which does not
 allow git traffic to pass.
 
 snip

There is another possibility that you might want to investigate: if
there is a SOCKS proxy server available at work, you can arrange to pass
git traffic through that.  You'll need a SOCKS client (e.g. dante or
tsocks works fine on Linux - I'm completely ignorant about Windows), and
a tiny amount of configuration to make your client point to the SOCKS
server. Then instead of

git clone git://...
git pull

you say

socksify git clone git://...
socksify git pull

(that's with dante) or

tsocks git clone git://...
tsocks git pull

(with tsocks) and you are done.

Also, it might be possible to use HTTP (presumably, you have an http
proxy at work to get through the firewall) instead of the GIT protocol
to do the pull, but I believe that depends on whether the repository has
been set up properly to allow that - I have not tried it in the org
case, but I was using it for the mainline Linux kernel before I had set
up the SOCKS proxy service: it was slower but it worked.

HTH,
Nick


___
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: Using Git to update more than one machine (one without network access)

2009-02-25 Thread Paul Mead
David Thole dthole at gmail.com writes:

 
 Paul,
 
 The way I've accomplished the task you're talking about is instead of 
 trying to push and pull *to* the work machine, I use another machine with 
 less restrictive firewalls to push and pull from.  This is how I do it...
 
 Work - Web Server - Home
 
 The web server acts as my USB Key, and I have cron jobs to pull and push 
 updates to and from the servers.  So at 7:30, I can have a git pull on 
 my work machine - so it would go to the web server, pull in and merge my 
 changes before I got to work.  Then when I go home, say at 5:10, do a git 
 push back to the web server.  At 5:30 or so my home machine can do a git 
 pull and at 7:00 AM do a git push.
 
 This works pretty well so far.  Another solution is to set up your home 
 machine to have dyndns and enable SSH.  You can then just ssh into your 
 home machine, and use org-mode that way too.  I've tried this quite a bit 
 as well, and am kinda at a crossroads on which I like the most yet...
 
 I hope this helps.
 
Thanks David

your method looks similar to how I'm managing my init files - a single repo on
my usb key (in your case a web server) which I push to and pull from.

My current problem is more complicated (to me!) than that. I'm having difficulty
explaining it though.

On 'home' I pull changes from 'remote' at //repo.or.cz.

What I would like to do then is either:

1. change 'remote' to be my usb key and push changes to that, or
2. use 'home' as 'remote' from my usb key and pull changes.

Then I'd probably use the same strategy when I got to my 'work' laptop - either
the usb key is 'remote', or 'work' becomes 'remote' from POV of the usb.

More like this:

 repo.or.cz - Home - USB - Work

If it made it easier, I *could* do:

 repo.or.cz - USB - Home
   \ - Work

But that may be even more complicated!

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] Re: Using Git to update more than one machine (one without network access)

2009-02-25 Thread Paul Mead
Nick Dokos nicholas.dokos at hp.com writes:


 There is another possibility that you might want to investigate: if
 there is a SOCKS proxy server available at work, you can arrange to pass
 git traffic through that.  

Nice idea, sadly even the identity of the proxy server is hidden, so I guess
that may not be an option either.

 Also, it might be possible to use HTTP (presumably, you have an http
 proxy at work to get through the firewall) instead of the GIT protocol
 to do the pull, but I believe that depends on whether the repository has
 been set up properly to allow that - I have not tried it in the org
 case, but I was using it for the mainline Linux kernel before I had set
 up the SOCKS proxy service: it was slower but it worked.

That would be a nice solution, but I just tried using git clone
http://repo.or.cz/org-mode and it caused an error, so that doesn't seem to be a
working route, sadly.

Thanks
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] org-agenda-filter-by-tag doesn't work with custom effort property

2009-02-25 Thread Daniel Clemente
El dc, feb 25 2009, Carsten Dominik va escriure:
 On Feb 24, 2009, at 3:52 PM, Daniel Clemente wrote:


  Hi, I would like to contribute 1 byte to org-mode; it's an a:


 --- a/lisp/org-agenda.el
 +++ b/lisp/org-agenda.el
 @@ -4407,7 +4407,7 @@ to switch to narrowing.
  (lambda (x) (if (cdr x) (char-to-string (cdr x)) ))
  alist ))
  (efforts (org-split-string
 -  (or (cdr (assoc (concat org-effort-property _ALL)
 +  (or (cadr (assoc (concat org-effort-property _ALL)
org-global-properties))
0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00

 I don't think this is correct.

 What are the symptoms of the problem you encounter?

  Before describing the problem: the (or ) was taking either the (cdr ) or 0 
0:10…. But cdr always return a list (not a string), so if the cdr is used, the 
result will be a list, and this is wrong because it org-split-string expects a 
string, not a list.

  The problem can be reproduced with:
1. C-c a
2. a
3. /

  I get:
Debugger entered--Lisp error: (wrong-type-argument stringp (0 0:10 0:30 1:00 
2:00 3:00 4:00 5:00 6:00 12:00 18:00 24:00 30:00))
  string-match([ \f\n…]+ (0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 
12:00 18:00 24:00 30:00) 0)
  org-split-string((0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 12:00 18:00 
24:00 30:00))
  org-agenda-filter-by-tag(nil)
  call-interactively(org-agenda-filter-by-tag nil nil)



  I'm using:
(add-to-list 'org-global-properties '(Effort_ALL 0 0:10 0:30 1:00 2:00 3:00 
4:00 5:00 6:00 12:00 18:00 24:00 30:00))

  org-mode 6.21b (from Emacs from Bazaar of 24-2-2009)


-- 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] Using Git to update more than one machine (one without network access)

2009-02-25 Thread Ian Barton



I use a repo on a usb drive to keep my emacs init files in sync, but have
absolutely no idea how to do this for my org-mode files. In essence, I'm trying
to first pull changes from //repo.or.cz to my laptop, and then either have a
second repo on the usb drive which I can pull changes onto, or pull from the
laptop to the usb.

Then I have to somehow get the work laptop to pull changes from the usb.

Am I asking for too much here? I want to avoid all the downloading and unzipping
where possible.

One way to accomplish this would be to create a branch on your usb 
stick. Not sure if the terminology is correct here, as I use bzr rather 
than git.


You can then create branches on your home computer and your work 
computer using the usb stick as a repo. So your workflow would be


Use git clone to create a repo on your usb stick.

Pull changes from Carsten' git repo to your usb stick.

Pull changes from your usb stick to both your work and home computers. 
In other words your usb stick is your own master repo.


I am not a VCS guru, so there is probably a simpler way:)

Ian.


___
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: Using Git to update more than one machine (one without network access)

2009-02-25 Thread Paul Mead
Ian Barton lists at manor-farm.org writes:

 
 Use git clone to create a repo on your usb stick.
 
 Pull changes from Carsten' git repo to your usb stick.
 
 Pull changes from your usb stick to both your work and home computers. 
 In other words your usb stick is your own master repo.
 

It works! Well, in the ansence of any changes to pull it seems to work anyway.

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] org-agenda-filter-by-tag doesn't work with custom effort property

2009-02-25 Thread Carsten Dominik


On Feb 25, 2009, at 6:32 PM, Daniel Clemente wrote:


El dc, feb 25 2009, Carsten Dominik va escriure:

On Feb 24, 2009, at 3:52 PM, Daniel Clemente wrote:



Hi, I would like to contribute 1 byte to org-mode; it's an a:


--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4407,7 +4407,7 @@ to switch to narrowing.
(lambda (x) (if (cdr x) (char-to-string (cdr x)) ))
alist ))
(efforts (org-split-string
- (or (cdr (assoc (concat org-effort-property _ALL)
+ (or (cadr (assoc (concat org-effort-property _ALL)
  org-global-properties))
  0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00


I don't think this is correct.

What are the symptoms of the problem you encounter?


 Before describing the problem: the (or ) was taking either the  
(cdr ) or 0 0:10…. But cdr always return a list (not a string), so  
if the cdr is used, the result will be a list, and this is wrong  
because it org-split-string expects a string, not a list.


Hi Daniel,

the cdr returns the cdr of a list.  That is ofte a list, but it cal  
also be an atom.


For example:

(cdr '(a . b))

   = a

(cdr '(a b c d))
   = (b c d)

The global property list is constructed like this


   '((key1 . value1)
 (key2 . value2))

so

(cdr (assoc key1 list))

   returns value1, a string.


Maybe you have an incorrect definition of `org-global-properties'.
I suspect that you did not make the value with customize, but by hand
and that you wrote

(setq org-global-properties
'((EFFORT_ALL 0 1:00)))

It should be

(setq org-global-properties
'((EFFORT_ALL . 0 1:00)))

HTH

- Carsten





 The problem can be reproduced with:
1. C-c a
2. a
3. /

 I get:
Debugger entered--Lisp error: (wrong-type-argument stringp (0 0:10  
0:30 1:00 2:00 3:00 4:00 5:00 6:00 12:00 18:00 24:00 30:00))
 string-match([ \f	\n…]+ (0 0:10 0:30 1:00 2:00 3:00 4:00 5:00  
6:00 12:00 18:00 24:00 30:00) 0)
 org-split-string((0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 12:00  
18:00 24:00 30:00))

 org-agenda-filter-by-tag(nil)
 call-interactively(org-agenda-filter-by-tag nil nil)



 I'm using:
(add-to-list 'org-global-properties '(Effort_ALL 0 0:10 0:30 1:00  
2:00 3:00 4:00 5:00 6:00 12:00 18:00 24:00 30:00))


 org-mode 6.21b (from Emacs from Bazaar of 24-2-2009)


-- 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: Using Git to update more than one machine (one without network access)

2009-02-25 Thread Bernt Hansen
Paul Mead paul.d.m...@gmail.com writes:

 Ian Barton lists at manor-farm.org writes:

 
 Use git clone to create a repo on your usb stick.
 
 Pull changes from Carsten' git repo to your usb stick.
 
 Pull changes from your usb stick to both your work and home computers. 
 In other words your usb stick is your own master repo.
 

 It works! Well, in the ansence of any changes to pull it seems to work anyway.

Hi Paul,

I suggest you put bare repositories on the USB stick.

On your home machine that has internet access

  $ git pull # to update from git.or.cz

Create a bare clone (once) of your repo on the usb stick

  $ git clone --bare . /path/to/usb/org-mode.git

Define a remote repo on the USB stick

  $ git remote add usb /path/to/usb/org-mode.git
  $ git push usb [master and any other branches you want]

After that you can 

  $ git fetch usb on your workstation to update any new commits on the
usb stick

  $ git push # update any existing branches on the usb stick

On your work machine just clone the USB repo

  $ git clone /path/to/usb/org-mode.git

and you should be all set.

I have all my active repos as bare clones on my 4GB USB stick including
git.git, org-mode.git, my org files, and a bunch of other projects - so
when I'm leaving I grab my laptop, load the USB stick from my
workstation with a script (usb-git-push) and then walk out the door with
my laptop and my USB stick.

I can pull from the USB stick into my laptop after I'm gone.

Synching the other way is similar.  On the laptop push to the USB stick,
take the stick to my workstation and git fetch from it.  Then I merge
the usb/master and master (and other topic branches) appropriately.

HTH,
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] Re: Using Git to update more than one machine (one without network access)

2009-02-25 Thread Bernt Hansen
Paul Mead paul.d.m...@gmail.com writes:

 Bernt Hansen bernt at norang.ca writes:

 I suggest you put bare repositories on the USB stick.
 ...



   $ git push # update any existing branches on the usb stick
 
 On your work machine just clone the USB repo
 
   $ git clone /path/to/usb/org-mode.git
 
 and you should be all set.

 Bernt, your version seems more complicated to me, but I'm keen to understand
 more so I'll try to work through the manual to get a better understanding of
 your method, thanks. At the moment I'm not at all clear what the benefits of
 using a bare repo rather than just cloning the original for instance.

The bare repo has no working directory - it's just the repository (the
.git dir basically) and you use it for moving commits and history
between your two working copies of the repository.

In effect the usb version is no different than the version you pull from
at git.org.cz - it's just another copy of the repository.


Your home machine  USB bare repo  Your work machine
-  -  -
   orgorg.git   org

   [H] -push [U] fetch--- [W]
   [O][S]   [O]
   [M] fetch [B] ---push- [R]
   [E]  [K]

you work here  and you work here

do stuff, commit ---\
push to usb  |
 v
   fetch usb, merge
   do more stuff
   commit
   push to usb
 |
fetch new stuff from usb ---/

If you push to a NON-BARE repository you'll update the repository but
not the working directory - it's not very nice to work with.  You need
to git reset --hard between push operations and if you have changes in
both places at the same time it's a mess.  It also takes more space for
the working directories which you probably never use on a USB stick.

With a bare repository you don't work on the USB stick - it's just a
medium for moving your data (commits) from your home machine to your
work machine and vice versa.  It also happens to be a great backup for
your work... if you have a fire and your work machine melts... you have
a copy on your USB stick, and on your home machine etc.

I used to sync files directly over the network between my workstation
and my laptop essentially pushing to a non-bare repository on the laptop
(and vice versa).  The setup with a non-bare repository in between works
_much_ better and is way less confusing.

For synching org-mode.git it's easy.  You home machine will have two
remote repositories defined (origin = git.or.cz) and usb (your stick).
On your master branch you

  $ git pull [origin]

to get new commits from origin and then

  $ git push usb

to update the stick with those commits.  At work you clone the stick
(once) and origin at work is the usb stick.  Then you git fetch or git
pull at work to get commits from the usb stick as needed.

HTH,
-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] Re: Using Git to update more than one machine (one without network access)

2009-02-25 Thread Paul Mead
Bernt Hansen bernt at norang.ca writes:
snip 
 to update the stick with those commits.  At work you clone the stick
 (once) and origin at work is the usb stick.  Then you git fetch or git
 pull at work to get commits from the usb stick as needed.
 
 HTH,
 -Bernt

Bernt, many thanks. I'll need to give some time to study and understand this but
thanks for such a full explanation.

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

2009-02-25 Thread Raimund Kohl-Füchsle
Hello there,

just a (stupid?) question: On the orgmode.org site there is the image of
a unicorn.  Is this the official Logo for org-mode?  I (finaly!) plan on
writing and publishing a little org-mode Manual and I would find it nice
to have a logo that connects to the project of org-mode.

Oh, and btw, if german guys from the list here are wanting to help, help
would be very welcome ... :-)

ray


___
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-bbdb: help

2009-02-25 Thread Memnon Anon
Hi!

I like to keep track of birthdays of people I know.
For the last 6 months, I've been keeping a birthday section
in my organizer.org, having multiple lines like this one:

   %%(diary-anniversary 1 1 ) Geburtstag Foo: %d Jahre.

But, since I started with emacs, I wanted to get used to the bbdb,
and since the start my bday section ends like this: %%(org-bbdb-anniversaries)

I am no lisper, but I spent several days to get this working, lately.
Try and Error, and I got it! Hooray!! 

...

2 Days ago, my hd died, my backups are 2 weeks old, it is lost again :((.

Today, I tried 4 hours to remember how I got it working, but, nothing yet,
and it starts frustrating me. 

Could someone *please* post a line of his .bbdb, containing the anniversary 
field as it works? I am just not strong enought to do it again ;)

tia






___
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? in orgstruct-mode

2009-02-25 Thread Austin Frank
On Sun, Feb 22 2009, Carsten Dominik wrote:

 yes, this is something I have been missing myself.

Glad it wasn't just me.  I feel guilty if I'm the only one requesting
the feature.  Now that you've implemented it, are you using
orgstruct++-mode?

 orgstruct-mode is a mode that steals away bindings from the major mode
 and overrules them in certain contexts.  In general, it does make
 sense to keep the regions where this applies small, so that the normal
 functions bound to the same keys can do there thing everywhere else.

Maybe it makes sense for people who still cling to the idea that there
are useful modes outside of org-mode ;)

 You are describing here a case, where you actually never want to use
 the original function of that key M-RET, right?

Yes, I almost never want to use `message-newline-and-reformat'.

 (defun org-run-insert-heading ()
(interactive)
(run-like-in-org-mode 'org-insert-heading))

Did not know about `run-like-in-org-mode'.  Very cool.

 What I have now done as well is to extend orgstruct++-mode so that it
 will do what you ask for.  You neet to pull the git version for this
 change.

I use this full time in text-based modes now.  It's especially great for
composing emails (message-mode) and editing commit messages
(magit-log-edit-mode).

Thanks for adding this feature.  I understand why it can't be the
default, but I would encourage folks to try it.  It works really well
for me.

Have a good one,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


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