Mercurial > emacs
view etc/images/cut.xpm @ 109678:14830418f9fc
Change `select-active-region' mechanics.
Save region text prior to buffer modification.
Set window selection lazily, during `deactivate-mark' or after each
command when the region is temporarily active.
* lisp/cus-start.el: Add custom declaration for select-active-regions.
* lisp/mouse.el (mouse-drag-track): Remove hacks to deal with old
select-active-regions implementation.
(mouse-yank-at-click): Doc fix.
* lisp/simple.el (select-active-regions): Move to keyboard.c.
(deactivate-mark): Used saved-region-selection.
(select-active-region): Function removed.
(activate-mark, set-mark, push-mark-command)
(handle-shift-selection): Don't call it.
(keyboard-quit): Avoid adding the region to the window selection.
* src/insdel.c (prepare_to_modify_buffer): Save active region text to
Vsaved_region_selection.
* src/keyboard.c (Vselect_active_regions): Move from simple.el.
(Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
vars.
(command_loop_1): Set window selection prior to deactivating the
mark.
* src/xselect.c (QPRIMARY): Move to keyboard.c.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 07 Aug 2010 15:39:04 -0400 |
parents | 28718fa5d988 |
children |
line wrap: on
line source
/* XPM */ static char * cut_xpm[] = { "24 24 40 1", " c None", ". c #000000", "+ c #C9C7C2", "@ c #E6E4E0", "# c #EFEEED", "$ c #494946", "% c #73726E", "& c #F0EEED", "* c #7F7D75", "= c #F2F1EF", "- c #D2CFC8", "; c #E7E7E4", "> c #BAB5AB", ", c #565653", "' c #EDECE9", ") c #A4A097", "! c #817F7E", "~ c #4E4C48", "{ c #F6F5F4", "] c #474541", "^ c #EFEEEC", "/ c #8C8B8A", "( c #F3F2F0", "_ c #77746D", ": c #323232", "< c #EBEBEA", "[ c #605D58", "} c #F5F4F3", "| c #CECCC7", "1 c #363634", "2 c #6F6E6D", "3 c #BEBDBB", "4 c #EAE7E4", "5 c #B8B5B1", "6 c #474747", "7 c #DAD8D4", "8 c #9B9996", "9 c #161615", "0 c #6D6B6A", "a c #3A3837", " ", " ", " . . ", " . . ", " .+. .@. ", " .#$ %@. ", " .&*. .=-. ", " .;>, %'). ", " !#*. .=-~ ", " .{>] ~^>. ", " /(_.:<-[ ", " .}|123>. ", " .456>. ", " .78.. ", " .90a. ", " ............. ", " . ... ... ... ", " .. .. .. .. ", " . . . . ", " .. .. .. .. ", " .... .. . ", " .... .... ", " ", " "};