Re: [Orgmode] Possible to get a subtree agenda view?

2008-12-14 Thread Matthew Lundin

Hi Robert,

Robert Goldman rpgold...@sift.info writes:

 Matthew Lundin wrote:
 
[snip]

 For a custom agenda command:
 
 (setq org-agenda-custom-commands
   '((f tags-tree +car+TODO=\TODO\
   ((org-show-entry-below t)
(org-show-hierarchy-above nil)))
   ;; other commands
 ))

[snip]

 In particular, the variable settings weren't near the agenda discussion,
 and are not in the index.  Question:  would it be useful to add a
 variable index to the info file?  If it is, and there isn't someone more
 texinfo competent than me to do it, I'll look into seeing how hard it
 would be to do this.

 Also, in the manual and code there's no real discussion of how the
 settings part of the org-agenda-custom-commands is to be used.  I mean,
 it's clear that they are variable bindings, but there's no use case.

 Would it be reasonable to modify your example above into an example to
 be added to the texinfo file?  I would be happy to have a whack if this
 seems like a good idea.

I'm guessing the best place for such a tutorial would be Worg (the
org-mode wiki). http://orgmode.org/worg/

When I have a chance, I'll put together a basic tutorial on agenda
custom commands and put it up on Worg. Then others will be free to
correct my mistakes. :)

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


Re: [Orgmode] recent changes page for worg

2008-12-14 Thread Matthew Lundin

Hi Samuel,

Samuel Wales samolog...@gmail.com writes:

 Does worg have a recent changes page?

 Thanks.


To my delight, I just discovered that there are feeds that allow one
to follow changes to the Worg repo:

http://repo.or.cz/w/Worg.git?a=rss

http://repo.or.cz/w/Worg.git?a=atom

- 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] Best Way to Submit a Patch

2008-12-14 Thread Ian Barton
I would like to submit some patches for the documentation. Whilst I 
understand how to make a patch file, what should I be patching against? 
I am running a clone of the git repo, so  presume I can somehow use git 
to create patches. Can someone point me to the documentation on how to 
get started?


I guess my first contribution should be How to submit a patch :)

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


Re: [Orgmode] Possible to get a subtree agenda view?

2008-12-14 Thread Robert Goldman
Matthew Lundin wrote:
 Hi Robert,
 
 Robert Goldman rpgold...@sift.info writes:
 
 Matthew Lundin wrote:
 [snip]
 For a custom agenda command:

 (setq org-agenda-custom-commands
   '((f tags-tree +car+TODO=\TODO\
  ((org-show-entry-below t)
   (org-show-hierarchy-above nil)))
   ;; other commands
 ))

 [snip]
 In particular, the variable settings weren't near the agenda discussion,
 and are not in the index.  Question:  would it be useful to add a
 variable index to the info file?  If it is, and there isn't someone more
 texinfo competent than me to do it, I'll look into seeing how hard it
 would be to do this.

 Also, in the manual and code there's no real discussion of how the
 settings part of the org-agenda-custom-commands is to be used.  I mean,
 it's clear that they are variable bindings, but there's no use case.

 Would it be reasonable to modify your example above into an example to
 be added to the texinfo file?  I would be happy to have a whack if this
 seems like a good idea.
 
 I'm guessing the best place for such a tutorial would be Worg (the
 org-mode wiki). http://orgmode.org/worg/

I think it would be appropriate to have a tutorial like this in Worg,
but not a replacement.  If you look at the custom agenda commands
discussion in the manual, you will see that there is a discussion of how
most of the fields of custom command s-expression are to be used, but no
mention of the settings.  I was just arguing that modifying the example
in the manual (or, possibly adding material from your example to it)
would be useful.

As an aside, I found the doc string somewhat confusing, as well.  The
docstring says

settings  A list of option settings, similar to that in a let form, so like
  this: ((opt1 val1) (opt2 val2) ...).   The values will be
  evaluated at the moment of execution, so quote them when
needed. [apologies --- Thunderbird will no doubt make a hash of this]

I don't believe that there is any special notion of option settings
that this should be --- isn't this just a command that can be used to
bind arbitrary variables?

I will try to write up a proposed documentation patch and post it to the
list.  Probably easier at this point to do that than to try to describe
what I /would/ do!

Best,
Robert



___
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] Possible to get a subtree agenda view? --- possible bug?

2008-12-14 Thread Robert Goldman
Matthew Lundin wrote:
 Hi Robert,
 
 Robert Goldman rpgold...@sift.info writes:
 
 Matthew Lundin wrote:
 Hi Robert,

 
 Is there any existing way to do this, or should I start rooting around
 in the code?
 For a custom agenda command:

 (setq org-agenda-custom-commands
   '((f tags-tree +car+TODO=\TODO\
  ((org-show-entry-below t)
   (org-show-hierarchy-above nil)))
   ;; other commands
 ))
 
 Actually, I just tried this with a recent git pull, and when I try to
 execute it, it crashes, with the following error:
 
 Sorry if I forgot to mention it in my first post, but I believe this
 custom command only works when the agenda is called from within an org
 buffer. As far as I understand it, since the tags tree command creates
 a sparse tree within an org buffer, it needs a particular org buffer
 to work with. 

If that is the case, isn't it incorrect to offer tags-tree as one of
the org-agenda custom commands?  Since it can't be safely invoked as
part of org-agenda?

One suggested possible solution:  Change tags-tree argument to (tags
tree filename), then do some kind of with-excursion to get into the
buffer for filename (in org mode).  But here we're running up against
my limited understanding of the tags tree.  Is tags-tree even really an
agenda command?  I.e., does it build a new agenda buffer that we can
use, or is it a way of viewing the current buffer?  I think the latter.
 If that is correct, it suggests 

Alternate solution:  remove tags-tree from the set of org-agenda
commands.  tags-tree isn't really an agenda-building command, and should
not be treated as one.

Note also that this means that this doesn't work as a solution to my
problem, because it requires all of the car category items to appear in
a single org file, and ignores the org-agenda-files setting.  So, for
example, I can't have work-related in-car tasks in one org file and
personal chores that are in-car tasks in another.  :-(


___
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] Is this an aquamacs bug?

2008-12-14 Thread Sullivan, Gregory (US SSA)
I don't use aquamacs too much with org, but I just tried what you
describe, with aquamacs 1.5 (gnu emacs 22.3.2 from M-x emacs-version)
the latest org via git, and did not have that behavior.

I run aquamacs with 
  (setq one-buffer-one-frame '())

Do you already do this? If not, you might see if that avoids your issue.

--Greg

--
Gregory T. Sullivan, Ph.D.
BAE Systems Advanced Information Technologies
6 New England Executive Park, Burlington, MA 01803
781-262-4553 (office),  978-430-3461 (cell)
gregory.sulli...@baesystems.com 


-Original Message-
From: emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org
[mailto:emacs-orgmode-bounces+gregory.sullivan=baesystems@gnu.org]
On Behalf Of Robert Goldman
Sent: Saturday, December 13, 2008 5:31 PM
To: emacs-orgmode@gnu.org
Subject: [Orgmode] Is this an aquamacs bug?

I use org on aquamacs and it behaves badly with the agenda.  Here's the
problem:

1.  I have an agenda view with a todo task under the cursor.

2.  I press t to toggle the todo state

3.  I change the todo state to a different one

4.  Aquamacs pops forward the emacs frame containing the org file from
which the todo is taken.

5.  I am left with focus moved to the wrong frame.  I have to mouse back
to the agenda frame now in order to keep working.

I *suspect* that this is an aquamacs specific problem, but would be
obliged if someone could confirm that.  If so, I will work with the
Aquamacs crew to get this fixed.

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



___
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] Possible to get a subtree agenda view?

2008-12-14 Thread Matthew Lundin

Hi Robert,

Robert Goldman rpgold...@sift.info writes:

 I think it would be appropriate to have a tutorial like this in Worg,
 but not a replacement.  If you look at the custom agenda commands
 discussion in the manual, you will see that there is a discussion of how
 most of the fields of custom command s-expression are to be used, but no
 mention of the settings.  I was just arguing that modifying the example
 in the manual (or, possibly adding material from your example to it)
 would be useful.

Sorry to perpetuate our endless thread, but I was wondering whether
section 10.6.3 of the manual has the information you are looking for?
It states that the options that can be set in
org-agenda-custom-commands are the options that control agenda
construction and display and it offers a few examples.

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


Re: [Orgmode] Possible to get a subtree agenda view?

2008-12-14 Thread Robert Goldman
Matthew Lundin wrote:
 Hi Robert,
 
 Robert Goldman rpgold...@sift.info writes:
 I think it would be appropriate to have a tutorial like this in Worg,
 but not a replacement.  If you look at the custom agenda commands
 discussion in the manual, you will see that there is a discussion of how
 most of the fields of custom command s-expression are to be used, but no
 mention of the settings.  I was just arguing that modifying the example
 in the manual (or, possibly adding material from your example to it)
 would be useful.
 
 Sorry to perpetuate our endless thread, but I was wondering whether
 section 10.6.3 of the manual has the information you are looking for?
 It states that the options that can be set in
 org-agenda-custom-commands are the options that control agenda
 construction and display and it offers a few examples.
 

Yes, you are quite right.  I was reading this in the info reader in
emacs (instead of in PDF which I sometimes do), and when I didn't find
what I wanted in the main page (10.6.1, I believe), I jumped directly to
the docstring for the function.  Hypertext considered harmful! ;-)

Seriously, when I look at those info pages, I think I lose track of too
much context.  I'll go back and reread the pdf and I will probably do a
lot better.

thanks again for all of your help,

R



___
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] Best Way to Submit a Patch

2008-12-14 Thread Carsten Dominik

Hi Ian,

there is lots of GIT documentation on the web.  Here is a short way to  
do what you want.




1. get the latest changes

   git pull

2. create a branch for you to do your changes

   git checkout -b my-doc-fixed

3. Edit the file you want to change

   $ emacs 
   $ emacs 

4. Commit the changes when you feel like it

   git add doc/org.texi
   git commit

5. Create a patch

   git diff master  send-to-carsten.patch

6. Go back t the master branch for normal use of Org-mode.
   Do this only after committing all changes.

   git checkout master

This all works fine when you don't pull new changes while
working on your patch.  If Org changes while you do your work,
you can do this:

- commit your changes as described above.
- switch back to master

  git checkout master

- get new changes

  git pull

- return to your branch

  git checkout my-doc-fixes

- make sure your changes are made relative to the current, new master:

  git rebase master

- continue working on your patches.

The only problem here is that git rebase can fail if there is overlap,
so my recommendation for he beginner is to just use the workflow
shown above.

- Carsten

P.S.  I am *not* a GIT guru, I hope others will correct me if anything  
should be done differently.








On Dec 14, 2008, at 4:57 PM, Ian Barton wrote:

I would like to submit some patches for the documentation. Whilst I  
understand how to make a patch file, what should I be patching  
against? I am running a clone of the git repo, so  presume I can  
somehow use git to create patches. Can someone point me to the  
documentation on how to get started?


I guess my first contribution should be How to submit a patch :)

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




___
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 drawers be embedded in org-mode?

2008-12-14 Thread Jing Su
Thanks a lot, Carsten, I'm currently using your method.

I was wondering if nest drawers would be a good idea in later versions of
org-mode.

Best,

Jing


On Thu, Dec 4, 2008 at 3:02 AM, Carsten Dominik domi...@science.uva.nlwrote:

 Hi Jing Su,

 Org-mode does not allow to nest drawers.  I guess you would simple use
 outline structure for whay rou are tyring to do:


 * Topic I
 ** Refs
 *** ref A
  Abstract
 blah blha

 *** ref B
  Abstract
 blah blha

 HTH

 - Carsten


 On Dec 3, 2008, at 11:50 PM, Jing Su wrote:

  Hi there :)

 I tried embedded drawers but got weird results:

 I inputted:

 #+DRAWERS:  REF ABSTRACT

 * Topic I
  :REF:
   - ref A
 :ABSTRACT:
 blah blha
 :END:
   - ref B
 :ABSTRACT:
 blah blha
 :END:
   :END:

 and used TAB key to fold/unfold it. I expected:

 * Topic I
  :REF:
  - ref A
:ABSTRACT:...
  - ref B
:ABSTRACT:...
  :END:

 and

 * Topic I
  :REF:...

 but found out the following:

 * Topic I
  :REF:...
  - ref B
:ABSTRACT:...
  :END:

 am I wrong at some where, or org-mode just does not support embedded
 drawers yet? if it's not supported, is it already in the wishing list?

 Thanks a lot :)

 JIng

 ___
 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





-- 
Jing Su
PhD, Georgia Tech  Emory
___
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