[Orgmode] skip-entry-if category

2009-08-21 Thread Memnon Anon
Hi,

I am experimenting with different custom agenda views, and this area is,
as always, excellently documented, thank you all!

However, there is one thing I am not able to figure out:

Using skipping, it is easy to limit my daily agenda to certain tags like:
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":STUDIUM:"

Is it possible to do the same with Categories?
I think there must be a way, but all my attempts did not work :(.

Have a nice day ;)!

Memnon



___
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] Feature idea: Automatic clocking

2009-08-21 Thread Samuel Wales
If something like this were implemented, I would definitely try it, as
a way to see where I am wasting effort etc. in the org hierarchy.  I
might even use it all the time, if it works.

However, I would probably want it to apply to all headlines above a
certain level, and measure all activity below each of those.

And I would want the clock information stored in a separate, central
location, instead of in each headline.

It is like profiling code.

-- 
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: Feature idea: Automatic clocking

2009-08-21 Thread Bernt Hansen
PT  writes:

> I just started using clocking and it seems really useful. It
> occured me it could also be done automatically for certain tasks
> which are performed in the org buffer.
>
> For example, I work on some text which I keep in an org subtree,
> the branches of the subtree hold the chapters, etc.
>
> If the main subtree which is the root of the document has a CLOCK
> property (put there by a previous manual clocking) and also an
> AUTOCLOCK or similar property then it could monitor if I modify
> the text within the subtree and start the clock automatically. If
> I stop modifying the subtree then after a while (say, 30 seconds,
> configurable) it would stop the clock automatically.
>
> So for subtrees explicitly marked for automatic clocking the user
> wouldn't have to start/stop the clock manually at all, org could
> do it itself.
>
> What do you think?

Hi PT,

I've been using org-mode clocking since 2006-08-29 Tue 11:44 and I am
skeptical about how useful this would really be in the general case.

Most of my tasks involve *thinking* not just typing so stopping the
clock when I'm working on solving a problem would be bad.  I also clock
tasks while working on another machine which org-mode knows nothing
about so stopping the clock due to inactivity isn't appropriate.

I don't like the idea of automatic clocking for a number of reasons:

  - It lets you be sloppy about starting and stopping the clock -- which
means the clock won't be running for some task you are working on
(say one that is not marked for automatic clocking).  This means
you're going to work on stuff and not have it clocked when you need
it to be at some point.  I bill based on clock time and it needs to
be correct.

  - Clocking stuff in and out rigorously is a good habit to learn if
clock data is really important to you.  Automatic clocking defeats
this goal.

  - If you're clocking some important project task and you happen to
touch the task marked for automatic clocking you'll clock out the
project task and clock in the new task... and a short time later the
clock stops when you move back to the project task but you're still
really working on that original project task.

Clocking the right task usually takes more intelligence than just what
part of an org-file changes.

I have org-clock-out-when-done set to nil so that org-mode does not stop
the clock when a task is marked DONE.  This makes me responsible for
when the clock starts and stops for all tasks - I clock in and out for
everything that matters.  I change the clock when I switch tasks and I
think it's really hard to get that right automatically.

So there's my two cents :)

Regards,
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] [PATCH] Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember

2009-08-21 Thread Samuel Wales
Org is a perfect place to store annotations.  It's good to see work on
annotation things.

Since people are using org-annotation-helper, org-protocol,
org-mac-protocol, and fireforg, with org-registry, org-annotate-file,
bookmarks, ipa.el, org-pua, and org-browser as possibly similar
things, it's getting a little complicated.  :)

-- 
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] [PATCH] Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember

2009-08-21 Thread Gaizka Villate
Hi there!

I have added a couple of customization variables to org-annotation-helper:

Add 2 customizations to org-annotation-helper: template-shortcut, 
auto-finalize-remember

- org-annotation-helper-template-shortcut : So you can choose which
  shortcut to use with org-annotation (I already use ?w for "work"
  template)

- org-annotation-helper-auto-finalize-remember:
  Set to true if you want org-annotation-helper to call 
org-remember-finalize after filling the template.


Maybe somebody is interested in applying the patch.

¡¡Thanks for org-mode!! ¡¡It's awesome!!

-- Gaizka
>From 072fdb4c5377b9c0151963f24095bb2949b3be64 Mon Sep 17 00:00:00 2001
From: Gaizka Villate 
Date: Thu, 20 Aug 2009 16:28:09 +0200
Subject: [PATCH] Add 2 customizations to org-annotation-helper: template-shortcut, auto-finalize-remember

- org-annotation-helper-template-shortcut : So you can choose which
  shortcut to use with org-annotation (I already use ?w for "work"
  template)

- org-annotation-helper-auto-finalize-remember:
  Set to true if you want org-annotation-helper to call org-remember-finalize after filling the template.
---
 contrib/lisp/org-annotation-helper.el |   23 +--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/org-annotation-helper.el b/contrib/lisp/org-annotation-helper.el
index c90233f..e71ba2e 100644
--- a/contrib/lisp/org-annotation-helper.el
+++ b/contrib/lisp/org-annotation-helper.el
@@ -265,6 +265,23 @@
 
 (autoload 'url-unhex-string "url")
 
+(defgroup org-annotation nil
+  "Org annotation helper customization."
+  :tag "Org Annotation"
+  :group 'org)
+
+(defcustom org-annotation-helper-template-shortcut ?w
+  "Character shortcut for the remember template you want to use."
+  :group 'org-annotation
+  :type 'character)
+
+(defcustom org-annotation-helper-auto-finalize-remember nil
+  "Set to true if you want org-annotation-helper to call org-remember-finalize
+  after filling the template.
+  I use it that way, so I can create tasks automatically without human interaction"
+  :group 'org-annotation
+  :type 'boolean)
+
 (defun bzg/org-annotation-helper (info)
   "Process an externally passed remember:// style url.
 
@@ -307,8 +324,10 @@ annotation://   squirrel away a link of the form [[url][title]] that can
 	   (set-mark (point))
 	   (insert region)
(exchange-point-and-mark t) ;; activate region.. not always on by default
-   (org-remember nil ?w)
-   (kill-buffer b)   
+   (org-remember nil org-annotation-helper-template-shortcut)
+   (kill-buffer b)
+			   (if org-annotation-helper-auto-finalize-remember
+   (org-remember-finalize))
)
   ((equal proto "annotation")
(message "Copied '%s' to the kill-ring." orglink)
-- 
1.6.1.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


[Orgmode] Feature idea: Automatic clocking

2009-08-21 Thread PT
I just started using clocking and it seems really useful. It
occured me it could also be done automatically for certain tasks
which are performed in the org buffer.

For example, I work on some text which I keep in an org subtree,
the branches of the subtree hold the chapters, etc.

If the main subtree which is the root of the document has a CLOCK
property (put there by a previous manual clocking) and also an
AUTOCLOCK or similar property then it could monitor if I modify
the text within the subtree and start the clock automatically. If
I stop modifying the subtree then after a while (say, 30 seconds,
configurable) it would stop the clock automatically.

So for subtrees explicitly marked for automatic clocking the user
wouldn't have to start/stop the clock manually at all, org could
do it itself.

What do you think?



___
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: Way to get agenda for a date?

2009-08-21 Thread David A. Gershman

It's times like these I feel soo smart!  *shaking head*

Also, I tried the C-h m, keys but it didn't work.  Please note however
it *does* work.  I remapped C-h in my .emacs.  Again, I feel soo smart!

Thanks guys!

> At Thu, 20 Aug 2009 19:35:48 -0700 (PDT),
> David A. Gershman wrote:
> > 
> > Is there a way to enter a date and have the agenda show up?
> > 
> > i.e. (for me) C-caa shows me the current week's agenda
> >   C-u 1 C-caa brings up the current day's agenda
> > 
> > Is there a way to enter be prompted for a date, say:
> >   
> >2009-08-20
> 
> Have you tried hitting "j" in the agenda view?




David A. Gershman
gersh...@dagertech.net
http://dagertech.net/gershman/
"It's all about the path!" --d. gershman


___
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] Anything like org-hide-others/org-close-others?

2009-08-21 Thread Peter Jones
I'd like to have an interactive function that will return the entire
buffer to the outline state (all headings closed/folded), and then
reopen the heading at point.

Usually I'm working in one specific location in an org file.  I might
jump around and open a few other headings, then continue working in my
original heading.  At this point, the buffer seems a bit messy with most
headings closed except the one I'm working on and a few others I've
opened.

It would be nice to hit a key and close everything except the heading
I'm in.

Is this something that is already in org and I'm missing it?  If not,
any pointers on how to implement something like this?

Thanks.

-- 
Peter Jones - 303-219-0226
pmade inc.  - http://pmade.com



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


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

2009-08-21 Thread Daniel Clemente
El dj, ago 20 2009 a les 21:57, Carsten Dominik va escriure:
>>
>> * something
>> aaa =eee
>> * two= *iii
>> ooo* uuu
>>
> Yes, this is kind of hard to fix..  And a minor issue, I guess... ?
>

  Yes, it's a minor issue. I like minor issues :-)

  There are two display problems here:
- a face defined before a heading enters the heading (like the =eee…=)
- a face defined in a heading goes on past the heading (like the *iii…)

  I did some tests with org-emph-re (original value: [1]); the interesting part 
is \\(?:\n.*?\\)\\{0,1\\} because it is the one that allows the face to extend 
up to 1 line below.
  The .*? from there comes from the so-called body in 
org-emphasis-regexp-components, body="."
  I have done some tests and I think that body="\\(?:\\*+[^\n ]\\|[^\n*]\\)." 
fixes the first problem. The expression represents a non-heading line: anything 
not starting by * (except when the initial * precedes a word) and then many 
other characters (a "*?" at the end will be added by org-set-emph-re)
  Final value: [2]

  Is this added complexity worth it? The bug is unpleasant (headings aren't 
coloured as headings) and performance shouldn't be much affected in the common 
case because ^\\* fails early. Only visually it is a complex regexp.

  I don't know how to detect the other problem inside a regular expression. 
Maybe there's some way to ask „don't cross boundaries between headings and 
content“.


-- Daniel

[1]: "\\([  ('`\"{]\\|^\\)\\(\\([*/_=~+]\\)\\([^
\n,\"']\\|[^
\n,\"'].*?\\(?:\n.*?\\)\\{0,1\\}[^  
\n,\"']\\)\\3\\)\\([-   .,:!?;'\")}\\]\\|$\\)"

[2]: "\\([  ('`\"{]\\|^\\)\\(\\([*/_=~+]\\)\\([^
\n,\"']\\|[^
\n,\"'].*?\\(?:\n\\*+[^\n ].*?\\|\n[^\n*].*?\\)\\{0,1\\}[^  
\n,\"']\\)\\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


Re: [Orgmode] Minor nit - LaTeX header contents and footnotes

2009-08-21 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Aug 20, 2009, at 10:14 PM, Nick Dokos wrote:


I define a LaTeX macro at the top of my document, like so:

,
| ...
| #+LATEX_HEADER: \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
| #+LATEX_HEADER:   #1\ignorespaces
| #+LATEX_HEADER: }
| ...
`

and export - I get the following inserted:

,
| ...
| \begin{document}
|
|
|
|
|
| \$\^{}{1}\$ FOOTNOTE DEFINITION NOT FOUND: 1
| ...
`

Obviously, the macro argument spec is mistaken for a footnote.

Work-around: add a space like so:

#+LATEX_HEADER: \newcommand{\rowstyle}[ 1]{\gdef\currentrowstyle{#1}%

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




___
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] Please test org-indent-mode

2009-08-21 Thread Carsten Dominik

Hi everyone,

this is only relevant for people who use the latest CVS Emacs.
If you do that, please consider doing some testing of the new
org-indent-mode which establishes the clean outline view
without any by-hand indentation.

Emacs 23.1 did still crashes occasionally with this new mode, due to
a bug in the Emacs display engine.  But I have, during the last week,
used this new mode without problems, with the latest CVS.
And I *loved* it, so I would like to have it tested more and then
advertise it more.

Thanks

- Carsten


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