diff options
| author | Chong Yidong | 2008-04-02 20:23:20 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-04-02 20:23:20 +0000 |
| commit | 3ae459e5b46ff778c7fdd962a68390b99da2976f (patch) | |
| tree | a18e4ce4196cf528704af5360e6f4051ced4b86b | |
| parent | 12679e05b0301b602857fccb2e0837e5dd40d6b3 (diff) | |
| download | emacs-3ae459e5b46ff778c7fdd962a68390b99da2976f.tar.gz emacs-3ae459e5b46ff778c7fdd962a68390b99da2976f.zip | |
Document shift-selection-mode and related changes.
| -rw-r--r-- | etc/NEWS | 77 |
1 files changed, 56 insertions, 21 deletions
| @@ -137,12 +137,6 @@ the currently selected Emacs frame. | |||
| 137 | 137 | ||
| 138 | ** Emacs now supports the SVG image format through librsvg2. | 138 | ** Emacs now supports the SVG image format through librsvg2. |
| 139 | 139 | ||
| 140 | ** Transient Mark Mode is now on by default. | ||
| 141 | |||
| 142 | ** mark-even-if-inactive now defaults to t | ||
| 143 | |||
| 144 | ** C-SPC C-SPC in transient-mark-mode pushes a mark without activating it. | ||
| 145 | |||
| 146 | ** If you set find-file-confirm-nonexistent-file to t, then C-x C-f | 140 | ** If you set find-file-confirm-nonexistent-file to t, then C-x C-f |
| 147 | requires confirmation before opening a non-existent file. | 141 | requires confirmation before opening a non-existent file. |
| 148 | 142 | ||
| @@ -151,14 +145,16 @@ Unix socket in a GNU/Linux console to talk to server, rather than faking events | |||
| 151 | using the client program mev. This C level approach provides mouse | 145 | using the client program mev. This C level approach provides mouse |
| 152 | highlighting, and help echoing in the minibuffer. | 146 | highlighting, and help echoing in the minibuffer. |
| 153 | 147 | ||
| 154 | ** The new variable next-error-recenter specifies how next-error should | 148 | ** Recentering changes |
| 149 | |||
| 150 | *** The new variable next-error-recenter specifies how next-error should | ||
| 155 | recenter the visited source file. Its value can be a number (for example, | 151 | recenter the visited source file. Its value can be a number (for example, |
| 156 | 0 for top line, -1 for bottom line), or nil for no recentering. | 152 | 0 for top line, -1 for bottom line), or nil for no recentering. |
| 157 | 153 | ||
| 158 | ** New command recenter-top-bottom moves the current line to window | 154 | *** New command recenter-top-bottom moves the current line to window |
| 159 | center, top and bottom on successive invokations. | 155 | center, top and bottom on successive invokations. |
| 160 | 156 | ||
| 161 | ** C-l is bound to the new command recenter-top-bottom, rather than recenter. | 157 | *** C-l is bound to the new command recenter-top-bottom, rather than recenter. |
| 162 | 158 | ||
| 163 | ** The mode-line displays a `@' if the default-directory for the current buffer | 159 | ** The mode-line displays a `@' if the default-directory for the current buffer |
| 164 | is on a remote machine, or a hyphen otherwise. | 160 | is on a remote machine, or a hyphen otherwise. |
| @@ -228,26 +224,51 @@ the history list. | |||
| 228 | 224 | ||
| 229 | * Editing Changes in Emacs 23.1 | 225 | * Editing Changes in Emacs 23.1 |
| 230 | 226 | ||
| 227 | ** Mark changes | ||
| 228 | |||
| 231 | +++ | 229 | +++ |
| 232 | ** C-M-% now shows replacement as it would look in the buffer, with | 230 | *** Transient Mark mode is now on by default. |
| 233 | `\N' and `\&' substituted according to the match. Old behavior can be | 231 | |
| 234 | restored by customizing `query-replace-show-replacement'. | 232 | +++ |
| 233 | *** mark-even-if-inactive now defaults to t | ||
| 234 | |||
| 235 | +++ | ||
| 236 | *** When Transient Mark mode is on, C-SPC C-SPC pushes a mark without activating it. | ||
| 235 | 237 | ||
| 236 | +++ | 238 | +++ |
| 237 | ** M-q now fills the region if the region is active and | 239 | *** When Transient Mark mode is on, M-q now fills the region if the |
| 238 | `transient-mark-mode' is turned on. Otherwise, it fills the current | 240 | region is active. Otherwise, it fills the current paragraph. |
| 239 | paragraph. | ||
| 240 | 241 | ||
| 241 | +++ | 242 | +++ |
| 242 | ** M-$ now checks spelling of the region if the region is active and | 243 | *** When Transient Mark mode is on, M-$ now checks spelling of the |
| 243 | `transient-mark-mode' is turned on. Otherwise, it checks spelling of the | 244 | region if the region is active. Otherwise, it checks spelling of the |
| 244 | word at point. | 245 | word at point. |
| 245 | 246 | ||
| 246 | ** TAB now indents the region if the region is active and | 247 | *** When Transient Mark mode is on, TAB now indents the region if the |
| 247 | `transient-mark-mode' is turned on. | 248 | region is active. |
| 248 | 249 | ||
| 249 | ** `use-empty-active-region' controls whether an empty active region | 250 | *** `use-empty-active-region' controls whether an empty active region |
| 250 | in Transient Mark mode should make commands operate on that empty region. | 251 | in Transient Mark mode should make commands operate on that empty |
| 252 | region. | ||
| 253 | |||
| 254 | ** Temporarily active regions | ||
| 255 | |||
| 256 | *** The new variable shift-select-mode, non-nil by default, controls | ||
| 257 | shift-selection. When Shift Select mode is on, shift-translated | ||
| 258 | motion keys (e.g. S-left and S-down) activate and extend a temporary | ||
| 259 | region, similar to mouse-selection. | ||
| 260 | |||
| 261 | *** Temporarily active regions, created using shift-selection or | ||
| 262 | mouse-selection, are not necessarily deactivated in the next command. | ||
| 263 | They are only deactivated after point motion commands that are not | ||
| 264 | shift-translated, or after commands that would ordinarily deactivate | ||
| 265 | the mark in Transient Mark mode (e.g., any command that modifies the | ||
| 266 | buffer). | ||
| 267 | |||
| 268 | +++ | ||
| 269 | ** C-M-% now shows replacement as it would look in the buffer, with | ||
| 270 | `\N' and `\&' substituted according to the match. Old behavior can be | ||
| 271 | restored by customizing `query-replace-show-replacement'. | ||
| 251 | 272 | ||
| 252 | ** C-z now invokes `suspend-frame', C-x C-c now invokes | 273 | ** C-z now invokes `suspend-frame', C-x C-c now invokes |
| 253 | `save-buffers-kill-terminal'. | 274 | `save-buffers-kill-terminal'. |
| @@ -684,6 +705,14 @@ functions and variables (formerly used for Tamil script). | |||
| 684 | 705 | ||
| 685 | * Lisp Changes in Emacs 23.1 | 706 | * Lisp Changes in Emacs 23.1 |
| 686 | 707 | ||
| 708 | ** The variable `this-command-keys-shift-translated' is non-nil if the | ||
| 709 | key sequence invoking the current command was found by | ||
| 710 | shift-translation. | ||
| 711 | |||
| 712 | ** The new interactive spec code ^ says to first call | ||
| 713 | handle-shift-selection if shift-select-mode is non-nil, before reading | ||
| 714 | the command arguments. | ||
| 715 | |||
| 687 | ** When deleting a terminal, run the special hook `delete-terminal-functions'. | 716 | ** When deleting a terminal, run the special hook `delete-terminal-functions'. |
| 688 | 717 | ||
| 689 | ** The `read-shell-command' function does what its name says, with completion. | 718 | ** The `read-shell-command' function does what its name says, with completion. |
| @@ -732,6 +761,12 @@ is enabled and there is an active region. This is NOT the best function | |||
| 732 | to use to test whether a command should operate on the region instead | 761 | to use to test whether a command should operate on the region instead |
| 733 | of the usual behavior -- for that, use `use-region-p'. | 762 | of the usual behavior -- for that, use `use-region-p'. |
| 734 | 763 | ||
| 764 | ** If a command sets `transient-mark-mode' to (only . OLDVAL), that | ||
| 765 | means to activate transient-mark-mode temporarily, until the next | ||
| 766 | unshifted point motion command or mark deactivation. Afterwards, | ||
| 767 | reset transient-mark-mode to the value OLDVAL. The values `only' and | ||
| 768 | `identity', introduced in Emacs 22, are now deprecated. | ||
| 769 | |||
| 735 | ** New keymap `input-decode-map' overrides like key-translation-map, but | 770 | ** New keymap `input-decode-map' overrides like key-translation-map, but |
| 736 | applies before function-key-map. Also it is terminal-local contrary to | 771 | applies before function-key-map. Also it is terminal-local contrary to |
| 737 | key-translation-map. Terminal-specific key-sequences are generally added to | 772 | key-translation-map. Terminal-specific key-sequences are generally added to |