Mercurial > emacs
comparison lisp/simple.el @ 102745:364aae6e6402
* simple.el (shift-select-mode): Make it a defcustom.
* cus-start.el: Remove shift-select-mode.
author | Andreas Schwab <schwab@linux-m68k.org> |
---|---|
date | Fri, 27 Mar 2009 16:50:14 +0000 |
parents | 07f2395ce3db |
children | 31e751308689 |
comparison
equal
deleted
inserted
replaced
102744:d69c45eb83b1 | 102745:364aae6e6402 |
---|---|
3744 (not (or arg (region-active-p)))) | 3744 (not (or arg (region-active-p)))) |
3745 (deactivate-mark)) | 3745 (deactivate-mark)) |
3746 (t (activate-mark))) | 3746 (t (activate-mark))) |
3747 nil)) | 3747 nil)) |
3748 | 3748 |
3749 (defvar shift-select-mode t | 3749 (defcustom shift-select-mode t |
3750 "When non-nil, shifted motion keys activate the mark momentarily. | 3750 "When non-nil, shifted motion keys activate the mark momentarily. |
3751 | 3751 |
3752 While the mark is activated in this way, any shift-translated point | 3752 While the mark is activated in this way, any shift-translated point |
3753 motion key extends the region, and if Transient Mark mode was off, it | 3753 motion key extends the region, and if Transient Mark mode was off, it |
3754 is temporarily turned on. Furthermore, the mark will be deactivated | 3754 is temporarily turned on. Furthermore, the mark will be deactivated |
3755 by any subsequent point motion key that was not shift-translated, or | 3755 by any subsequent point motion key that was not shift-translated, or |
3756 by any action that normally deactivates the mark in Transient Mark mode. | 3756 by any action that normally deactivates the mark in Transient Mark mode. |
3757 | 3757 |
3758 See `this-command-keys-shift-translated' for the meaning of | 3758 See `this-command-keys-shift-translated' for the meaning of |
3759 shift-translation.") | 3759 shift-translation." |
3760 :type 'boolean | |
3761 :group 'editing-basics) | |
3760 | 3762 |
3761 (defun handle-shift-selection () | 3763 (defun handle-shift-selection () |
3762 "Activate/deactivate mark depending on invocation thru ``shift translation.'' | 3764 "Activate/deactivate mark depending on invocation thru ``shift translation.'' |
3763 | 3765 |
3764 \(See `this-command-keys-shift-translated' for the meaning of | 3766 \(See `this-command-keys-shift-translated' for the meaning of |