Re: [Orgmode] Speed commands (was: Release 6.33)

2009-11-20 Thread Friedrich Delgado Friedrichs

Trying out speedkeys and liking them, I guess I'm going to have a
simple life using org from my phone from now on ;)

Carsten Dominik schrieb:
 In the speed map, yes, there is space, and you can add keys yourself.
 But I would recommend making these with confirmation query.
 (setq org-speed-commands-user
   '((A . (let ((org-archive-default-command
 'org-archive-to-archive-sibling))
(org-archive-subtree-default-with-confirmation)

 I am happy to have a discussion what additional
 commands should be present by default.

This is what i'm using:

((y . (progn
  (delete-other-windows)
  (recenter-top-bottom 0)))
 (A . (if (y-or-n-p Archive this subtree or entry? )
  (call-interactively org-archive-subtree)
  (error Abort)))
  (, . org-cycle-agenda-files))


There's no function org-archive-subtree-default-with-confirmation and
org-agenda-archive-subtree-with-confirmation complains that I'm not in
the agenda, so I've just adding my own y-or-n-p, since 'A' will
actually move trees to an archive file.

On my phone I get frequently annoyed when I can't see enough because
emacs splits the screen all the time, so a speed key to unsplit and
move the current item to the top of the screen is logical.

I'm not completely happy with 'y', since it makes me think 'yank' but
it's also slightly similar to 'l' and C-l is the default binding.

How about having an alternative keymap with vi-like moving keys? I
hardly ever use the C-b, C-f, C-n, C-p in my regular emacs work
(mostly cursor keys) and so I'm actually more comfortable with using
vi movement. (Because of playing nethack of course, hm, that's a nice
and large fireplace you have there! What's for dinner?)

Oh and the ',' is most obvious, I think.

(Hey, what's with the torches? Oh right, nightime barbecue, haha!)

Kind regards
 Friedel
-- 
Friedrich Delgado Friedrichs frie...@nomaden.org
 TauPan on Ircnet and Freenode ;)


___
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] Speed commands (was: Release 6.33)

2009-11-20 Thread Carsten Dominik

Hi Friedrich,


On Nov 20, 2009, at 3:35 PM, Friedrich Delgado Friedrichs wrote:



Trying out speedkeys and liking them, I guess I'm going to have a
simple life using org from my phone from now on ;)

Carsten Dominik schrieb:

In the speed map, yes, there is space, and you can add keys yourself.
But I would recommend making these with confirmation query.
(setq org-speed-commands-user
 '((A . (let ((org-archive-default-command
   'org-archive-to-archive-sibling))
  (org-archive-subtree-default-with-confirmation)



I am happy to have a discussion what additional
commands should be present by default.


This is what i'm using:

((y . (progn
 (delete-other-windows)
 (recenter-top-bottom 0)))
(A . (if (y-or-n-p Archive this subtree or entry? )
 (call-interactively org-archive-subtree)
 (error Abort)))
 (, . org-cycle-agenda-files))


Thanks for sharing these!


There's no function org-archive-subtree-default-with-confirmation and
org-agenda-archive-subtree-with-confirmation complains that I'm not in
the agenda, so I've just adding my own y-or-n-p, since 'A' will
actually move trees to an archive file.


The function is there, but the autoloads need to be up to date.

   make autoloads

should do the trick, certainly in the latest git release.


On my phone I get frequently annoyed when I can't see enough because
emacs splits the screen all the time, so a speed key to unsplit and
move the current item to the top of the screen is logical.

I'm not completely happy with 'y', since it makes me think 'yank' but
it's also slightly similar to 'l' and C-l is the default binding.

How about having an alternative keymap with vi-like moving keys? I
hardly ever use the C-b, C-f, C-n, C-p in my regular emacs work
(mostly cursor keys) and so I'm actually more comfortable with using
vi movement.


I don't understand what you are proposing here.


(Because of playing nethack of course, hm, that's a nice
and large fireplace you have there! What's for dinner?)

Oh and the ',' is most obvious, I think.


This is nice, but I guess you want to stay in fast-key space.
So

   (, . (progn (org-cycle-agenda-files)
 (or (and (bolp) (org-on-heading-p))
 (outline-next-visible-heading 1

- 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] Speed commands (was: Release 6.33)

2009-11-20 Thread Friedrich Delgado Friedrichs

Carsten Dominik schrieb:
 ((y . (progn
  (delete-other-windows)
  (recenter-top-bottom 0)))
 (A . (if (y-or-n-p Archive this subtree or entry? )
  (call-interactively org-archive-subtree)
  (error Abort)))
  (, . org-cycle-agenda-files))

There's a quote missing before org-archive-subtree here, btw.

 The function is there, but the autoloads need to be up to date.
make autoloads
 should do the trick, certainly in the latest git release.

Oops, I usually just do 'make' after git pull. Is autoloads not
implied in the default target?

 How about having an alternative keymap with vi-like moving keys? I
 hardly ever use the C-b, C-f, C-n, C-p in my regular emacs work
 (mostly cursor keys) and so I'm actually more comfortable with using
 vi movement.
 
 I don't understand what you are proposing here.

k for up, j for down, h for left and l for right. So I guess k would
be previous-heading, j next heading, and h and l for the previous/next
sibling on the same level.

So I guess I have:

j   (org-speed-move-safe (quote outline-next-visible-heading))
k   (org-speed-move-safe (quote outline-previous-visible-heading))
l   (org-speed-move-safe (quote org-forward-same-level))
h   (org-speed-move-safe (quote org-backward-same-level))

In the vi-movement map. And somebody who is more proficient with vi
than I am probably can come up with some natural additions.

This is just a thought, I wanted to see if anyone would bite ;)

 This is nice, but I guess you want to stay in fast-key space.
 So
 
(, . (progn (org-cycle-agenda-files)
  (or (and (bolp) (org-on-heading-p))
  (outline-next-visible-heading 1
---Zitatende---

Ah, much better! Thanks! ;)

-- 
Friedrich Delgado Friedrichs frie...@nomaden.org
 TauPan on Ircnet and Freenode ;)


___
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] Speed commands (was: Release 6.33)

2009-11-20 Thread Eric S Fraga
At Fri, 20 Nov 2009 15:57:09 +0100, Carsten Dominik wrote:
 On Nov 20, 2009, at 3:35 PM, Friedrich Delgado Friedrichs wrote:
  How about having an alternative keymap with vi-like moving keys? I
  hardly ever use the C-b, C-f, C-n, C-p in my regular emacs work
  (mostly cursor keys) and so I'm actually more comfortable with using
  vi movement.
 
 I don't understand what you are proposing here.

vi uses the home row keys (hjkl) for movement (left, down, up, right)
and it's something those of us weaned on vi (30 years ago in my case)
have a natural affinity for.  I think Friedrich is proposing having
'j' instead of 'f' or 'n', 'k' instead of 'b' or 'p' for speed keys
for motion (but am not sure whether 'h' and 'l' should be mapped to
anything in particular).  In fact, using viper mode with org-mode
gives you this and works quite well overall but viper mode carries
some unnecessary baggage.

However, I would suggest that he can simply re-bind his speed keys.
It's not really a suggestion for new functionality, I guess, unlike
the other examples he gave (some of which were very appealing).


___
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] Speed commands (was: Release 6.33)

2009-11-20 Thread Eric S Fraga
At Fri, 20 Nov 2009 15:57:09 +0100,
Carsten Dominik wrote:
 This is nice, but I guess you want to stay in fast-key space.
 So
 
(, . (progn (org-cycle-agenda-files)
  (or (and (bolp) (org-on-heading-p))
  (outline-next-visible-heading 1

This is really nice and works like a charm... *except* in a very
extreme case: one of my agenda files is typically empty other than a
single top level heading.  When I cycle through the agenda files, when
I land in this file, I am typically placed at the end of the file
(emacs remembers my last location).  When this happens, speed keys are
no longer active and, before I know it, I have a number of ',' added
to the end of this file!  

Actually, I guess this problem generalises so that it would appear
whenever the cycling takes you to a file where the current point is at
the end (or near the end) of the file so there is actually no next
heading?  Maybe the or statement above needs another clause (which I
unfortunately cannot suggest; sorry!).


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

2009-11-20 Thread Stephan Schmitt
Hi Eric,

try this:

(progn
  (org-cycle-agenda-files)
   (when (not (and (bolp) (org-on-heading-p)))
 (outline-previous-visible-heading 1)
 (or (and (bolp) (org-on-heading-p))
 (outline-next-visible-heading 1

Greetings,
Stephan

Also sprach Eric S Fraga:
 At Fri, 20 Nov 2009 15:57:09 +0100,
 Carsten Dominik wrote:
 This is nice, but I guess you want to stay in fast-key space.
 So

(, . (progn (org-cycle-agenda-files)
  (or (and (bolp) (org-on-heading-p))
  (outline-next-visible-heading 1
 
 This is really nice and works like a charm... *except* in a very
 extreme case: one of my agenda files is typically empty other than a
 single top level heading.  When I cycle through the agenda files, when
 I land in this file, I am typically placed at the end of the file
 (emacs remembers my last location).  When this happens, speed keys are
 no longer active and, before I know it, I have a number of ',' added
 to the end of this file!  
 
 Actually, I guess this problem generalises so that it would appear
 whenever the cycling takes you to a file where the current point is at
 the end (or near the end) of the file so there is actually no next
 heading?  Maybe the or statement above needs another clause (which I
 unfortunately cannot suggest; sorry!).
 
 
 ___
 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] Speed commands (was: Release 6.33)

2009-11-20 Thread Raffi R
Dear Friedrich,

What sort of phone do you use? I am looking for a new phone and would
like to use ogmode, of course.

Thanks,
- Raffi.

On Fri, Nov 20, 2009 at 9:35 AM, Friedrich Delgado Friedrichs
frie...@nomaden.org wrote:

 Trying out speedkeys and liking them, I guess I'm going to have a
 simple life using org from my phone from now on ;)

 Carsten Dominik schrieb:
 In the speed map, yes, there is space, and you can add keys yourself.
 But I would recommend making these with confirmation query.
 (setq org-speed-commands-user
       '((A . (let ((org-archive-default-command
             'org-archive-to-archive-sibling))
        (org-archive-subtree-default-with-confirmation)

 I am happy to have a discussion what additional
 commands should be present by default.

 This is what i'm using:

 ((y . (progn
          (delete-other-windows)
          (recenter-top-bottom 0)))
  (A . (if (y-or-n-p Archive this subtree or entry? )
          (call-interactively org-archive-subtree)
          (error Abort)))
  (, . org-cycle-agenda-files))


 There's no function org-archive-subtree-default-with-confirmation and
 org-agenda-archive-subtree-with-confirmation complains that I'm not in
 the agenda, so I've just adding my own y-or-n-p, since 'A' will
 actually move trees to an archive file.

 On my phone I get frequently annoyed when I can't see enough because
 emacs splits the screen all the time, so a speed key to unsplit and
 move the current item to the top of the screen is logical.

 I'm not completely happy with 'y', since it makes me think 'yank' but
 it's also slightly similar to 'l' and C-l is the default binding.

 How about having an alternative keymap with vi-like moving keys? I
 hardly ever use the C-b, C-f, C-n, C-p in my regular emacs work
 (mostly cursor keys) and so I'm actually more comfortable with using
 vi movement. (Because of playing nethack of course, hm, that's a nice
 and large fireplace you have there! What's for dinner?)

 Oh and the ',' is most obvious, I think.

 (Hey, what's with the torches? Oh right, nightime barbecue, haha!)

 Kind regards
     Friedel
 --
        Friedrich Delgado Friedrichs frie...@nomaden.org
                             TauPan on Ircnet and Freenode ;)


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

2009-11-20 Thread Eric S Fraga
At Fri, 20 Nov 2009 19:13:11 +0100,
Stephan Schmitt wrote:
 
 Hi Eric,
 
 try this:
 
 (progn
   (org-cycle-agenda-files)
(when (not (and (bolp) (org-on-heading-p)))
(outline-previous-visible-heading 1)
(or (and (bolp) (org-on-heading-p))
(outline-next-visible-heading 1

Excellent.  Works perfectly.  (and makes so much sense that it gives
me a doh moment -- why didn't I think of that?  isn't hindsight
wonderful? :-) 

Many 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] Speed commands (was: Release 6.33)

2009-11-20 Thread Eric S Fraga
At Fri, 20 Nov 2009 17:29:15 +0100, Friedrich Delgado Friedrichs wrote:
 k for up, j for down, h for left and l for right. So I guess k would
 be previous-heading, j next heading, and h and l for the previous/next
 sibling on the same level.
 
 So I guess I have:
 
 j   (org-speed-move-safe (quote outline-next-visible-heading))
 k   (org-speed-move-safe (quote outline-previous-visible-heading))
 l   (org-speed-move-safe (quote org-forward-same-level))
 h   (org-speed-move-safe (quote org-backward-same-level))

I'm actually playing around with this combination:

--8---cut here---start-8---
  (h org-speed-move-safe 'outline-up-heading)
  (j org-speed-move-safe 'outline-forward-same-level)
  (k org-speed-move-safe 'outline-backward-same-level)
  (l org-speed-move-safe 'outline-next-visible-heading)
--8---cut here---end---8---

and it's almost quite natural (for me) but quite the opposite of what
you have defined/suggested!  Interesting.


___
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] Speed commands (was: Release 6.33)

2009-11-20 Thread Friedrich Delgado Friedrichs
Hi!

Sorry I have to clarify this a bit:

Raffi R schrieb:
 What sort of phone do you use? I am looking for a new phone and would
 like to use ogmode, of course.

 On Fri, Nov 20, 2009 at 9:35 AM, Friedrich Delgado Friedrichs
 frie...@nomaden.org wrote:
  Trying out speedkeys and liking them, I guess I'm going to have a
  simple life using org from my phone from now on ;)
---Zitatende---

Note that I wrote from my phone not on my phone. I use a T-Mobile
G1 (HTC Dream) which has a very excellent ssh client called connectbot
(http://code.google.com/p/connectbot/ it's free software, too) and I
use org-mode via ssh and emacsclient -t on a remote system.

To say that I use it is saying a bit much, since I've only used it so
far to look things up, since editing used to be very inconvenient,
because having to type typical emacs control sequences is really
tough on the small keyboard.

That's why I think the speedkeys are going to help me quite a lot, but
I didn't really give it a go yet.

Btw. it's great that I posted my speed key setup on this mailing list,
not only for the great input I received: Due to some inexplicable
screwup with my emacs config and git over 3 machines, I lost my
configuration changes.

(I think my dirty hack to split customisation files has destroyed the
speed key config, so it's most likely not emacs' or org-modes's
fault.)

But now I can just easily recreate it from the
posts ;)

Good evening
 Friedel
-- 
Friedrich Delgado Friedrichs frie...@nomaden.org
 TauPan on Ircnet and Freenode ;)


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


Re: [Orgmode] Speed commands (was: Release 6.33)

2009-11-20 Thread Friedrich Delgado Friedrichs
Doh!

 Due to some inexplicable screwup with my emacs config and git over 3
 machines, I lost my configuration changes.
---Zitatende---

It's late, I just forgot to git pull my config ;)

-- 
Friedrich Delgado Friedrichs frie...@nomaden.org
 TauPan on Ircnet and Freenode ;)


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

2009-11-18 Thread Carsten Dominik


On Nov 18, 2009, at 4:09 PM, Jason Dunsmore wrote:


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


On Nov 13, 2009, at 8:16 PM, Stephan Schmitt wrote:


Carsten Dominik wrote:

[...]


... so there are keys left to spend unique keys for the 'agenda' and
'archive' commands ;-)


In the speed map, yes, there is space, and you can add keys yourself.
But I would recommend making these with confirmation query.

(setq org-speed-commands-user
 '((A . (let ((org-archive-default-command
  'org-archive-to-archive-sibling))
 (org-archive-subtree-default-with-confirmation)


I have to (require 'org-archive) for the
org-archive-subtree-default-with-confirmation function to be  
available.
This seems like core functionality of org-mode.  Why does it need to  
be

explicitly loaded?


Should be auoloaded, this is a bug.  Fixed now, please don' forget to
(after pulling) re-make org-install.el by running make or at
least make autoloads.

HTH

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

2009-11-15 Thread Carsten Dominik
Hi Dan, these are nice, but somehow I find the n command logical and  
the p command confusing :-)


- Carsten

On Nov 15, 2009, at 3:44 AM, Dan Davison wrote:


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


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

...

I am happy to have a discussion what additional
commands should be present by default.


I thought a speed command for scrolling through an org document  
might be

good -- move from heading to heading, displaying the next entry while
keeping all others hidden, and close subtrees as you leave them.


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

-
(defun ded/org-show-next-heading-tidily ()
 Show next entry, keeping other entries closed.
 (if (save-excursion (end-of-line) (outline-invisible-p))
 (progn (org-show-entry) (show-children))
   (outline-next-heading)
   (unless (and (bolp) (org-on-heading-p))
 (org-up-heading-safe)
 (hide-subtree)
 (error Boundary reached))
   (org-overview)
   (org-reveal t)
   (org-show-entry)
   (show-children)))

(defun ded/org-show-previous-heading-tidily ()
 Show previous entry, keeping other entries closed.
 (let ((pos (point)))
   (outline-previous-heading)
   (unless (and ( (point) pos) (bolp) (org-on-heading-p))
 (goto-char pos)
 (hide-subtree)
 (error Boundary reached))
   (org-overview)
   (org-reveal t)
   (org-show-entry)
   (show-children)))

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

Dan


Or is
there already an org command that does something like this?




(Try starting with everything closed.)

--
(defun ded/org-show-next-heading-tidily ()
 Show next entry, keeping other entries closed.
 (if (save-excursion (end-of-line) (outline-invisible-p))
 (org-cycle)
   (let ((level (org-current-level)))
 (unless (org-heading-has-child-p) (org-cycle))
 (outline-next-heading)
 (if ( (org-current-level) level)
 (save-excursion
   (outline-backward-same-level 1)
   (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
'(s ded/org-show-next-heading-tidily))
--

(space might be quite natural for this one, it seems to get used  
for

scrolling e.g. in dired and gnus)

Dan




- 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



___
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


Re: [Orgmode] Speed commands

2009-11-14 Thread Dan Davison
Dan Davison davi...@stats.ox.ac.uk writes:

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

 ...
 I am happy to have a discussion what additional
 commands should be present by default.

 I thought a speed command for scrolling through an org document might be
 good -- move from heading to heading, displaying the next entry while
 keeping all others hidden, and close subtrees as you leave them.

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

-
(defun ded/org-show-next-heading-tidily ()
  Show next entry, keeping other entries closed.
  (if (save-excursion (end-of-line) (outline-invisible-p))
  (progn (org-show-entry) (show-children))
(outline-next-heading)
(unless (and (bolp) (org-on-heading-p))
  (org-up-heading-safe)
  (hide-subtree)
  (error Boundary reached))
(org-overview)
(org-reveal t)
(org-show-entry)
(show-children)))

(defun ded/org-show-previous-heading-tidily ()
  Show previous entry, keeping other entries closed.
  (let ((pos (point)))
(outline-previous-heading)
(unless (and ( (point) pos) (bolp) (org-on-heading-p))
  (goto-char pos)
  (hide-subtree)
  (error Boundary reached))
(org-overview)
(org-reveal t)
(org-show-entry)
(show-children)))

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

Dan

 Or is
 there already an org command that does something like this?


 (Try starting with everything closed.)

 --
 (defun ded/org-show-next-heading-tidily ()
   Show next entry, keeping other entries closed.
   (if (save-excursion (end-of-line) (outline-invisible-p))
   (org-cycle)
 (let ((level (org-current-level)))
   (unless (org-heading-has-child-p) (org-cycle))
   (outline-next-heading)
   (if ( (org-current-level) level)
   (save-excursion
 (outline-backward-same-level 1)
 (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 
  '(s ded/org-show-next-heading-tidily))
 --

 (space might be quite natural for this one, it seems to get used for
 scrolling e.g. in dired and gnus)

 Dan



 - 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


 ___
 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] Speed commands (was: Release 6.33)

2009-11-13 Thread Stephan Schmitt

Carsten Dominik wrote:


On Nov 13, 2009, at 6:48 PM, Eric S Fraga wrote:


Excellent addition!  This makes org-mode even /more/ usable on systems
with very small keyboards (like smartphones etc).  I'd been using
viper-mode to have single key movement in org-mode buffers but you've
not only made this possible but have completely exceeded my
requirements through all the extra commands available (clocking in,
etc.).  Fantastic!


Hi Eric,

yes, I agree that this is very useful on ttys and mobile devices.
When you use it, please make a note when you notice additional
commands hat would be useful in this way - the keymap is far from full.

- Carsten


... so there are keys left to spend unique keys for the 'agenda' and
'archive' commands ;-)

Stephan
(who loves the speed commands, too)


___
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] Speed commands (was: Release 6.33)

2009-11-13 Thread Carsten Dominik


On Nov 13, 2009, at 8:16 PM, Stephan Schmitt wrote:


Carsten Dominik wrote:

On Nov 13, 2009, at 6:48 PM, Eric S Fraga wrote:
Excellent addition!  This makes org-mode even /more/ usable on  
systems

with very small keyboards (like smartphones etc).  I'd been using
viper-mode to have single key movement in org-mode buffers but  
you've

not only made this possible but have completely exceeded my
requirements through all the extra commands available (clocking in,
etc.).  Fantastic!

Hi Eric,
yes, I agree that this is very useful on ttys and mobile devices.
When you use it, please make a note when you notice additional
commands hat would be useful in this way - the keymap is far from  
full.

- Carsten


... so there are keys left to spend unique keys for the 'agenda' and
'archive' commands ;-)


In the speed map, yes, there is space, and you can add keys yourself.
But I would recommend making these with confirmation query.

(setq org-speed-commands-user
  '((A . (let ((org-archive-default-command
  'org-archive-to-archive-sibling))
 (org-archive-subtree-default-with-confirmation)


I am happy to have a discussion what additional
commands should be present by default.

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

2009-11-13 Thread Stephan Schmitt

sorry, I wasn't clear.
I wanted to point out that in the org-speed-commands-default constant the letter 
'a' is assigned twice:

(a . org-agenda)
(a . org-archive-subtree-default-with-confirmation)

sure, I can change this for myself, but I thought it would make sense to avoid 
such a clash in the default map.


Best,
Stephan

Carsten Dominik wrote:


On Nov 13, 2009, at 8:16 PM, Stephan Schmitt wrote:

When you use it, please make a note when you notice additional
commands hat would be useful in this way - the keymap is far from full.
- Carsten


... so there are keys left to spend unique keys for the 'agenda' and
'archive' commands ;-)


In the speed map, yes, there is space, and you can add keys yourself.
But I would recommend making these with confirmation query.

(setq org-speed-commands-user
  '((A . (let ((org-archive-default-command
  'org-archive-to-archive-sibling))
 (org-archive-subtree-default-with-confirmation)


I am happy to have a discussion what additional
commands should be present by default.

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

2009-11-13 Thread Carsten Dominik

Wow, indeed :-)

- Carsten

On Nov 13, 2009, at 9:09 PM, Stephan Schmitt wrote:


sorry, I wasn't clear.
I wanted to point out that in the org-speed-commands-default  
constant the letter 'a' is assigned twice:

   (a . org-agenda)
   (a . org-archive-subtree-default-with-confirmation)

sure, I can change this for myself, but I thought it would make  
sense to avoid such a clash in the default map.


Best,
Stephan

Carsten Dominik wrote:

On Nov 13, 2009, at 8:16 PM, Stephan Schmitt wrote:

When you use it, please make a note when you notice additional
commands hat would be useful in this way - the keymap is far from  
full.

- Carsten


... so there are keys left to spend unique keys for the 'agenda' and
'archive' commands ;-)

In the speed map, yes, there is space, and you can add keys yourself.
But I would recommend making these with confirmation query.
(setq org-speed-commands-user
 '((A . (let ((org-archive-default-command
 'org-archive-to-archive-sibling))
(org-archive-subtree-default-with-confirmation)
I am happy to have a discussion what additional
commands should be present by default.
- Carsten


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

2009-11-13 Thread Dan Davison
Carsten Dominik domi...@uva.nl writes:

...
 I am happy to have a discussion what additional
 commands should be present by default.

I thought a speed command for scrolling through an org document might be
good -- move from heading to heading, displaying the next entry while
keeping all others hidden, and close subtrees as you leave them. Or is
there already an org command that does something like this?

(Try starting with everything closed.)

--
(defun ded/org-show-next-heading-tidily ()
  Show next entry, keeping other entries closed.
  (if (save-excursion (end-of-line) (outline-invisible-p))
  (org-cycle)
(let ((level (org-current-level)))
  (unless (org-heading-has-child-p) (org-cycle))
  (outline-next-heading)
  (if ( (org-current-level) level)
  (save-excursion
(outline-backward-same-level 1)
(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 
 '(s ded/org-show-next-heading-tidily))
--

(space might be quite natural for this one, it seems to get used for
scrolling e.g. in dired and gnus)

Dan



 - 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


___
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