Re: [Orgmode] Custom agenda question

2009-08-27 Thread Carsten Dominik


On Aug 26, 2009, at 7:09 PM, Phil Rooke wrote:


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.


I cannot believe it, there really *are* people who use Emacs
and accept the new line-move-visual default value?  This
drives me sooo crazy when editing code and other line-organized
content - which, frankly, is *all* the stuff I do edit in Emacs.
The absolute first line in my .emacs file is

(setq line-move-visual nil)

Anyway, I am now overruling this for the agenda, to get rid
of the beep for now.  I guess this should count as an Emacs
bug, though.

- 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


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


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


Re: [Orgmode] Custom agenda question

2009-08-25 Thread Manish
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.

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


Re: [Orgmode] Custom agenda question

2009-08-25 Thread Peter Westlake
On Mon, 24 Aug 2009 20:03 +0200, Carsten Dominik
carsten.domi...@gmail.com 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.

This is a very nice feature! Once it is fully implemented,
it will have a benefit that you may not have anticipated,
as explained below:

Many of my TODO items include links to the online places
where the task is to be done. I also use Org id links to
the tasks whenever I write about them in my work log, and
org-insert-link expands the link in the task to give
something like Headline Text {{link address}{link text}}.
Because the link address is visible, it's very cluttered.

With the new feature, I can put the links in the extra text
and avoid cluttering up the headline. Hmm, but then they won't
show up as links in the agenda view. Regardless of that, it's
a good feature, and much appreciated!

Peter.



___
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-24 Thread Carsten Dominik


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.

- 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-23 Thread Carsten Dominik


On Aug 19, 2009, at 11:59 AM, Manish wrote:


On Wed, Aug 19, 2009 at 3:04 PM, Carsten Dominik wrote:


On Aug 19, 2009, at 3:44 AM, Anthony Fairchild wrote:


Hi,

Is there a way to get the text underneath a todo heading to show  
up in the

agenda screen?


No this is not possible.


It would be real nice to be able to toggle the effect of
org-agenda-add-entry-text-maxlines even in agenda view.  Follow mode  
is not
exactly the same thing because when turning it off it leaves the  
window behind

which has to be killed with C-x 1.


You can also kill the window with o, a bit easier.


But since we have it already working for
printing agenda and not for screen display, I am sure there are  
sufficient

reasons behind it.  But then it's Org mode -- anything is possible. :)



For me, the reason is that the agenda should be compact, as
much as possible.

- 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-23 Thread Manish
On Sun, Aug 23, 2009 at 10:27 PM, Carsten Dominik wrote:

 On Aug 19, 2009, at 11:59 AM, Manish wrote:

 On Wed, Aug 19, 2009 at 3:04 PM, Carsten Dominik wrote:

 On Aug 19, 2009, at 3:44 AM, Anthony Fairchild wrote:

 Hi,

 Is there a way to get the text underneath a todo heading to show up in
 the
 agenda screen?

 No this is not possible.

 It would be real nice to be able to toggle the effect of
 org-agenda-add-entry-text-maxlines even in agenda view. Follow mode is
 not
 exactly the same thing because when turning it off it leaves the window
 behind
 which has to be killed with C-x 1.

 You can also kill the window with o, a bit easier.

Oh, yes.  I had forgotten about this.  Thanks.



 But since we have it already working for
 printing agenda and not for screen display, I am sure there are sufficient
 reasons behind it. But then it's Org mode -- anything is possible. :)


 For me, the reason is that the agenda should be compact, as
 much as possible.

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?

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


Re: [Orgmode] Custom agenda question

2009-08-19 Thread Manish
On Wed, Aug 19, 2009 at 8:14 AM, Anthony Fairchild wrote:
 Hi,

 Is there a way to get the text underneath a todo heading to show up in the
 agenda screen? I like to put extra info there, like driving directions, and
 it would be nice to have that info when I print out the agenda.

I don't think that's possible.  You can display display information stored in
a drawer by switching to column view while in agenda.  You will need to
customize org-drawers and org-columns-default-format.

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


Re: [Orgmode] Custom agenda question

2009-08-19 Thread Carsten Dominik


On Aug 19, 2009, at 3:44 AM, Anthony Fairchild wrote:


Hi,

Is there a way to get the text underneath a todo heading to show up  
in the agenda screen?


No this is not possible.

I like to put extra info there, like driving directions, and it  
would be nice to have that info when I print out the agenda.


This, on the other hand *is* possible.

(setq org-agenda-add-entry-text-maxlines 10)

I believe you can also set this variable in the options section
of the custom command.

- Carsten



Here is an example:

*** TODO Potluck at Sally's   :next:
Drive north on 405
Turn left at the barn
Blah blah blah, more stuff I want  to include

And my custom agenda currently looks like this:

(setq org-agenda-custom-commands
  '((p Print List
 ((tags-todo NEXT ((org-agenda-prefix-format [ ] %T: )
 (org-agenda-sorting-strategy '(tag-up  
priority-down))

 (org-agenda-todo-keyword-format )
 (org-agenda-overriding-header \nNext  
Actions\n--\n)))

  (tags-todo buy ((org-agenda-prefix-format [ ] %T: )
(org-agenda-sorting-strategy '(tag-up  
priority-down))

(org-agenda-todo-keyword-format )
(org-agenda-overriding-header  
\nShopping List\n--\n

 ((org-agenda-sorting-strategy '(priority-down))
  (org-agenda-with-colors nil)
  (org-agenda-todo-keyword-format )
  (org-agenda-compact-blocks t)
  (org-agenda-remove-tags t)
  (ps-number-of-columns 2)
  (ps-landscape-mode t)


Thanks!

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

2009-08-19 Thread Manish
On Wed, Aug 19, 2009 at 3:04 PM, Carsten Dominik wrote:

 On Aug 19, 2009, at 3:44 AM, Anthony Fairchild wrote:

 Hi,

 Is there a way to get the text underneath a todo heading to show up in the
 agenda screen?

 No this is not possible.

It would be real nice to be able to toggle the effect of
org-agenda-add-entry-text-maxlines even in agenda view.  Follow mode is not
exactly the same thing because when turning it off it leaves the window behind
which has to be killed with C-x 1.  But since we have it already working for
printing agenda and not for screen display, I am sure there are sufficient
reasons behind it.  But then it's Org mode -- anything is possible. :)

-- 
Manish


 I like to put extra info there, like driving directions, and it would be
 nice to have that info when I print out the agenda.

 This, on the other hand *is* possible.

 (setq org-agenda-add-entry-text-maxlines 10)

 I believe you can also set this variable in the options section
 of the custom command.


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

2009-08-18 Thread Anthony Fairchild
Hi,

Is there a way to get the text underneath a todo heading to show up in the
agenda screen?  I like to put extra info there, like driving directions, and
it would be nice to have that info when I print out the agenda.

Here is an example:

*** TODO Potluck at Sally's   :next:
Drive north on 405
Turn left at the barn
Blah blah blah, more stuff I want  to include

And my custom agenda currently looks like this:

(setq org-agenda-custom-commands
  '((p Print List
 ((tags-todo NEXT ((org-agenda-prefix-format [ ] %T: )
 (org-agenda-sorting-strategy '(tag-up
priority-down))
 (org-agenda-todo-keyword-format )
 (org-agenda-overriding-header \nNext
Actions\n--\n)))
  (tags-todo buy ((org-agenda-prefix-format [ ] %T: )
(org-agenda-sorting-strategy '(tag-up
priority-down))
(org-agenda-todo-keyword-format )
(org-agenda-overriding-header \nShopping
List\n--\n
 ((org-agenda-sorting-strategy '(priority-down))
  (org-agenda-with-colors nil)
  (org-agenda-todo-keyword-format )
  (org-agenda-compact-blocks t)
  (org-agenda-remove-tags t)
  (ps-number-of-columns 2)
  (ps-landscape-mode t)


Thanks!

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