[Orgmode] Re: Speed commands

2009-11-17 Thread J. David Boyd

Dan Davison davi...@stats.ox.ac.uk writes:


 Here are simplified versions of the forward- and backward-scroll speed
 commands that I'm suggesting.




That is really, really cool!  Thank you so much.  I've wanted something
like that for a long time!

Dave




___
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: Speed commands

2009-11-17 Thread J. David Boyd
Dan Davison davi...@stats.ox.ac.uk writes:

 Dan Davison davi...@stats.ox.ac.uk writes:


 Here are simplified versions of the forward- and backward-scroll speed
 commands that I'm suggesting.


Ow, 1 major problem (to me).   They wipe out my white space.

I have my entries in an .org file set up like (I like white space):

* DONE Timeouts on JDBC connection...

* TODO Update Test Agents...

* TODO Update UAT Agents...

* TODO W911170058 - Prod Tomcat not being 'managed'...


but after I run your speed scripts, they look like:

* DONE Timeouts on JDBC connection...
* TODO Update Test Agents...
* TODO Update UAT Agents...
* TODO W911170058 - Prod Tomcat not being 'managed'...


Any ideas what to change to preserve my empty white line.  I could
probably learn to live without it, but I'd rather not...

Dave



___
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: Speed commands

2009-11-17 Thread Dan Davison
da...@adboyd.com (J. David Boyd) writes:

 Dan Davison davi...@stats.ox.ac.uk writes:

 Dan Davison davi...@stats.ox.ac.uk writes:


 Here are simplified versions of the forward- and backward-scroll speed
 commands that I'm suggesting.


 Ow, 1 major problem (to me).   They wipe out my white space.

 I have my entries in an .org file set up like (I like white space):

 * DONE Timeouts on JDBC connection...

 * TODO Update Test Agents...

 * TODO Update UAT Agents...

 * TODO W911170058 - Prod Tomcat not being 'managed'...


 but after I run your speed scripts, they look like:

 * DONE Timeouts on JDBC connection...
 * TODO Update Test Agents...
 * TODO Update UAT Agents...
 * TODO W911170058 - Prod Tomcat not being 'managed'...


 Any ideas what to change to preserve my empty white line.  I could

Hi David,

I don't have an immediate solution. To make it appear as above, I'm
assuming you have two blank lines after the end of each entry, right?

Your whitespace is still there, it's just that the visibility of the
blank lines has changed, as a result of calling org-overview. I didn't
realise that the effects on whitespace visibility differed between
org-overview and the OVERVIEW state of org-cycle. Does anyone know of
a suitable way to programmatically achieve identical effects to the
cycling induced by org-cycle?

Or, to ask a slightly different question, is there any convenient way to
use org-cycle in a lisp program and tell it to cycle to a particular
state?

In any case, my use of org-overview is probably not really appropriate,
since it alters visibility in all the subtrees, whereas the scroll
functions should probably only alter visibility in the subtrees in which
they are operating. So if that were fixed hopefully the whitespace
problem would disappear. I'll look into it.

Dan

 probably learn to live without it, but I'd rather not...

 Dave



 ___
 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: Speed commands

2009-11-17 Thread Carsten Dominik

Hi Dan,

you need to call `org-cycle-show-empty-lines' with appropriate
arguments, just like org-cycle does it.

- Carsten



On Nov 17, 2009, at 8:23 PM, Dan Davison wrote:


da...@adboyd.com (J. David Boyd) writes:


Dan Davison davi...@stats.ox.ac.uk writes:


Dan Davison davi...@stats.ox.ac.uk writes:


Here are simplified versions of the forward- and backward-scroll  
speed

commands that I'm suggesting.



Ow, 1 major problem (to me).   They wipe out my white space.

I have my entries in an .org file set up like (I like white space):

* DONE Timeouts on JDBC connection...

* TODO Update Test Agents...

* TODO Update UAT Agents...

* TODO W911170058 - Prod Tomcat not being 'managed'...


but after I run your speed scripts, they look like:

* DONE Timeouts on JDBC connection...
* TODO Update Test Agents...
* TODO Update UAT Agents...
* TODO W911170058 - Prod Tomcat not being 'managed'...


Any ideas what to change to preserve my empty white line.  I could


Hi David,

I don't have an immediate solution. To make it appear as above, I'm
assuming you have two blank lines after the end of each entry, right?

Your whitespace is still there, it's just that the visibility of the
blank lines has changed, as a result of calling org-overview. I didn't
realise that the effects on whitespace visibility differed between
org-overview and the OVERVIEW state of org-cycle. Does anyone know  
of

a suitable way to programmatically achieve identical effects to the
cycling induced by org-cycle?

Or, to ask a slightly different question, is there any convenient  
way to

use org-cycle in a lisp program and tell it to cycle to a particular
state?

In any case, my use of org-overview is probably not really  
appropriate,

since it alters visibility in all the subtrees, whereas the scroll
functions should probably only alter visibility in the subtrees in  
which

they are operating. So if that were fixed hopefully the whitespace
problem would disappear. I'll look into it.

Dan


probably learn to live without it, but I'd rather not...

Dave



___
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


- 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: Speed commands

2009-11-15 Thread Benjamin Andresen
Hey Dan,

Dan Davison davi...@stats.ox.ac.uk writes:

 Here are simplified versions of the forward- and backward-scroll speed
 commands that I'm suggesting.

I love it!

 Dan

br,
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: Speed commands

2009-11-14 Thread Benjamin Andresen
Hey Dan,

Dan Davison davi...@stats.ox.ac.uk writes:

   (unless (org-heading-has-child-p) (org-cycle))

There is no function by the name of org-heading-has-child-p in the
current org-mode tree. I'd like to try the above code.


 Dan

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


Re: [Orgmode] Re: Speed commands

2009-11-14 Thread Dan Davison
Benjamin Andresen be...@in-ulm.de writes:

 Hey Dan,

 Dan Davison davi...@stats.ox.ac.uk writes:

   (unless (org-heading-has-child-p) (org-cycle))

 There is no function by the name of org-heading-has-child-p in the
 current org-mode tree. I'd like to try the above code.

Thanks Benny.

Here's a new version. There could also be a reverse direction version if
people think this might be useful.

---
(defun ded/org-show-next-heading-tidily ()
  Show next entry, keeping all other entries closed.
  (if (save-excursion (end-of-line) (outline-invisible-p))
  (org-cycle)
(let ((pos (point))
  (level (org-current-level))
  (next-level
   (progn (outline-next-heading) (org-current-level
  (cond (( next-level level)
 (save-excursion
   (outline-backward-same-level 1) (org-cycle)))
((= next-level level)
 (save-excursion (goto-char pos) (org-cycle
  (if (and (bolp) (org-on-heading-p))
  (org-cycle)
(outline-up-heading 1 t)
(org-cycle)
(error Boundary reached)

(setq org-use-speed-commands t)
(add-to-list 'org-speed-commands-user 
 '(  ded/org-show-next-heading-tidily))
---

Dan



 Dan

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


___
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