org-mode/lisp
Carsten Dominik 773a3c624e Support for Shift Selection
Emacs 23 introduces `shift-selection-mode', and even turns it on by
default.  Therefore, it is fair to assume that users of Emacs 23 will
expect to be able to select a region by holding down shift will moving
the cursor.  This conflicts with the use of shifted cursor keys in
Org-mode for other purposes, in particular to "change the item under
the cursor", like it is done for time stamps, item bullet types, TODO
keywords and priorities.

This commit tries to support `shift-selection-mode' as much as possible,
while retaining these valuable commands keys for Org-mode.  The
following things are changed:

1. The range of contexts where Org's commands do act is reduced.

  - S-up and S-down no longer jump to the previous and next plain list
    item - you can use the paragraph commands C-up and C-down for this
    quite well.

  - S-left and S-right only change the bullet type of a plain list
    item when the cursor is *exactly* on the bullet, not just anywhere
    in the item line.

2. When a S-cursor key is used outside a special context, a region is
   started or extended.

3. When a region has already been started, it will be continue to
   extend even if the S-cursor keys move the cursor into a special
   context.

4. If you want S-cursor selection to work in headlines as well, you
   can set the variable `org-support-shift-select' to
   `even-in-headlines'.  Then you need to rely on `C-c C-t' to set
   TODO keywords, and on `C-c ,' to set priorities.

If you want everything to behave the way it was, set
`org-support-shift-select' to nil.
2009-01-26 16:23:44 +01:00
..
ChangeLog Support for Shift Selection 2009-01-26 16:23:44 +01:00
ChangeLog.01 Split ChangeLog file into parts. 2008-05-08 08:16:38 +02:00
org-agenda.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-archive.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-attach.el Release 6.19b 2009-01-26 08:22:14 +01:00
org-bbdb.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-bibtex.el Release 6.19b 2009-01-26 08:22:14 +01:00
org-clock.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-colview-xemacs.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-colview.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-compat.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-exp.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-export-latex.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-faces.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-footnote.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-gnus.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-id.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-info.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-irc.el Release 6.19b 2009-01-26 08:22:14 +01:00
org-jsinfo.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-list.el Support for Shift Selection 2009-01-26 16:23:44 +01:00
org-mac-message.el Release 6.19b 2009-01-26 08:22:14 +01:00
org-macs.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-mew.el Release 6.19b 2009-01-26 08:22:14 +01:00
org-mhe.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-mouse.el Release 6.19b 2009-01-26 08:22:14 +01:00
org-plot.el Release 6.19b 2009-01-26 08:22:14 +01:00
org-publish.el Release 6.19b 2009-01-26 08:22:14 +01:00
org-remember.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-rmail.el Release 6.19b 2009-01-26 08:22:14 +01:00
org-table.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-timer.el Release 6.19b 2009-01-26 08:22:14 +01:00
org-vm.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org-w3m.el Release 6.19b 2009-01-26 08:22:14 +01:00
org-wl.el Maintenance: Remove unused variables. 2009-01-26 11:04:45 +01:00
org.el Support for Shift Selection 2009-01-26 16:23:44 +01:00