diff options
| author | Glenn Morris | 2011-08-20 15:41:41 -0700 |
|---|---|---|
| committer | Glenn Morris | 2011-08-20 15:41:41 -0700 |
| commit | 59ee05427dbe2d7aaad260ea7c85515dd3c63bc0 (patch) | |
| tree | 99fa89a87a6aae066ef25c8aa67ed8135064fa1c | |
| parent | 8e999f70ab17da9006eec0bac77dc3a3502a5eed (diff) | |
| download | emacs-59ee05427dbe2d7aaad260ea7c85515dd3c63bc0.tar.gz emacs-59ee05427dbe2d7aaad260ea7c85515dd3c63bc0.zip | |
Update some tutorial key bindings; ref bug#8739.
* lisp/tutorial.el (tutorial--default-keys): Update some default bindings.
* etc/NEWS: delete-forward-char is not bound to C-d.
* lisp/bindings.el, lisp/windows.el: Comments.
| -rw-r--r-- | etc/NEWS | 2 | ||||
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/bindings.el | 1 | ||||
| -rw-r--r-- | lisp/tutorial.el | 4 | ||||
| -rw-r--r-- | lisp/window.el | 2 |
5 files changed, 8 insertions, 3 deletions
| @@ -407,7 +407,7 @@ If non-nil, C-d, [delete], and DEL delete the region if it is active | |||
| 407 | and no prefix argument is given. If set to `kill', these commands | 407 | and no prefix argument is given. If set to `kill', these commands |
| 408 | kill instead. | 408 | kill instead. |
| 409 | 409 | ||
| 410 | *** New command `delete-forward-char', bound to C-d and [delete]. | 410 | *** New command `delete-forward-char', bound to [delete]. |
| 411 | This is meant for interactive use, and obeys `delete-active-region'. | 411 | This is meant for interactive use, and obeys `delete-active-region'. |
| 412 | The command `delete-char' does not obey `delete-active-region'. | 412 | The command `delete-char' does not obey `delete-active-region'. |
| 413 | 413 | ||
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2e06de9fd98..4763c83c5a3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-08-20 Glenn Morris <rgm@gnu.org> | 1 | 2011-08-20 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * tutorial.el (tutorial--default-keys): Update some default bindings. | ||
| 4 | |||
| 3 | * files.el (hack-local-variables): Fully ignore case for "mode:". | 5 | * files.el (hack-local-variables): Fully ignore case for "mode:". |
| 4 | 6 | ||
| 5 | 2011-08-20 Alan Mackenzie <acm@muc.de> | 7 | 2011-08-20 Alan Mackenzie <acm@muc.de> |
diff --git a/lisp/bindings.el b/lisp/bindings.el index c4f9369219a..57bfeb60f82 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el | |||
| @@ -834,6 +834,7 @@ if `inhibit-field-text-motion' is non-nil." | |||
| 834 | (setq i (1+ i)))) | 834 | (setq i (1+ i)))) |
| 835 | (define-key global-map [?\C-\M--] 'negative-argument) | 835 | (define-key global-map [?\C-\M--] 'negative-argument) |
| 836 | 836 | ||
| 837 | ;; Update tutorial--default-keys if you change these. | ||
| 837 | (define-key global-map "\177" 'delete-backward-char) | 838 | (define-key global-map "\177" 'delete-backward-char) |
| 838 | (define-key global-map "\C-d" 'delete-char) | 839 | (define-key global-map "\C-d" 'delete-char) |
| 839 | 840 | ||
diff --git a/lisp/tutorial.el b/lisp/tutorial.el index 77ef50843d3..d47079af5af 100644 --- a/lisp/tutorial.el +++ b/lisp/tutorial.el | |||
| @@ -253,7 +253,7 @@ LEFT and RIGHT are the elements to compare." | |||
| 253 | ;; * INSERTING AND DELETING | 253 | ;; * INSERTING AND DELETING |
| 254 | ;; C-u 8 * to insert ********. | 254 | ;; C-u 8 * to insert ********. |
| 255 | (delete-backward-char "\d") | 255 | (delete-backward-char "\d") |
| 256 | (delete-forward-char [?\C-d]) | 256 | (delete-char [?\C-d]) |
| 257 | (backward-kill-word [?\M-\d]) | 257 | (backward-kill-word [?\M-\d]) |
| 258 | (kill-word [?\M-d]) | 258 | (kill-word [?\M-d]) |
| 259 | (kill-line [?\C-k]) | 259 | (kill-line [?\C-k]) |
| @@ -298,7 +298,7 @@ LEFT and RIGHT are the elements to compare." | |||
| 298 | (isearch-backward [?\C-r]) | 298 | (isearch-backward [?\C-r]) |
| 299 | 299 | ||
| 300 | ;; * MULTIPLE WINDOWS | 300 | ;; * MULTIPLE WINDOWS |
| 301 | (split-window-vertically [?\C-x ?2]) | 301 | (split-window-above-each-other [?\C-x ?2]) |
| 302 | (scroll-other-window [?\C-\M-v]) | 302 | (scroll-other-window [?\C-\M-v]) |
| 303 | (other-window [?\C-x ?o]) | 303 | (other-window [?\C-x ?o]) |
| 304 | (find-file-other-window [?\C-x ?4 ?\C-f]) | 304 | (find-file-other-window [?\C-x ?4 ?\C-f]) |
diff --git a/lisp/window.el b/lisp/window.el index 8ddb6165197..75fa0b46a1c 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -7474,6 +7474,8 @@ Otherwise, consult the value of `truncate-partial-width-windows' | |||
| 7474 | (< (window-width window) t-p-w-w) | 7474 | (< (window-width window) t-p-w-w) |
| 7475 | t-p-w-w)))) | 7475 | t-p-w-w)))) |
| 7476 | 7476 | ||
| 7477 | ;; Some of these are in tutorial--default-keys, so update that if you | ||
| 7478 | ;; change these. | ||
| 7477 | (define-key ctl-x-map "0" 'delete-window) | 7479 | (define-key ctl-x-map "0" 'delete-window) |
| 7478 | (define-key ctl-x-map "1" 'delete-other-windows) | 7480 | (define-key ctl-x-map "1" 'delete-other-windows) |
| 7479 | (define-key ctl-x-map "2" 'split-window-above-each-other) | 7481 | (define-key ctl-x-map "2" 'split-window-above-each-other) |