diff options
| author | Stefan Kangas | 2025-03-15 14:11:51 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2025-03-16 13:48:11 +0100 |
| commit | 03e33cbef3e33aa1ec843388d1671f7116a7347b (patch) | |
| tree | 50f9f5329e6e866d6810304f987bfdecbfd7acc5 | |
| parent | dec21bcc9997780a9c56e4eb7f718fd64d8c32ec (diff) | |
| download | emacs-03e33cbef3e33aa1ec843388d1671f7116a7347b.tar.gz emacs-03e33cbef3e33aa1ec843388d1671f7116a7347b.zip | |
Don't recommend legacy keymap functions in docstrings
* lisp/comint.el (comint-prompt-read-only):
* lisp/ielm.el (ielm-prompt-read-only):
* lisp/international/ogonek.el (ogonek-informacja, ogonek-information):
* lisp/mouse-copy.el (mouse-drag-secondary-pasting):
* lisp/mouse-drag.el (mouse-drag-throw, mouse-drag-drag): Don't
recommend using legacy keymap functions.
| -rw-r--r-- | lisp/comint.el | 10 | ||||
| -rw-r--r-- | lisp/ielm.el | 9 | ||||
| -rw-r--r-- | lisp/international/ogonek.el | 12 | ||||
| -rw-r--r-- | lisp/mouse-copy.el | 3 | ||||
| -rw-r--r-- | lisp/mouse-drag.el | 4 |
5 files changed, 19 insertions, 19 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index f92ee382473..188989ff8a4 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -186,11 +186,11 @@ narrowing in effect. This way you will be certain that none of | |||
| 186 | the remaining prompts will be accidentally messed up. You may | 186 | the remaining prompts will be accidentally messed up. You may |
| 187 | wish to put something like the following in your init file: | 187 | wish to put something like the following in your init file: |
| 188 | 188 | ||
| 189 | \(add-hook \\='comint-mode-hook | 189 | (with-eval-after-load \\='comint |
| 190 | (lambda () | 190 | (keymap-set comint-mode-map \"<remap> <kill-region>\" |
| 191 | (define-key comint-mode-map [remap kill-region] \\='comint-kill-region) | 191 | \\='comint-kill-region) |
| 192 | (define-key comint-mode-map [remap kill-whole-line] | 192 | (keymap-set comint-mode-map \"<remap> <kill-whole-line>\" |
| 193 | \\='comint-kill-whole-line))) | 193 | \\='comint-kill-whole-line)) |
| 194 | 194 | ||
| 195 | If you sometimes use `comint-mode' on text-only terminals or with `emacs -nw', | 195 | If you sometimes use `comint-mode' on text-only terminals or with `emacs -nw', |
| 196 | you might wish to use another binding for `comint-kill-whole-line'." | 196 | you might wish to use another binding for `comint-kill-whole-line'." |
diff --git a/lisp/ielm.el b/lisp/ielm.el index 43529f36cd6..81d22ee4405 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el | |||
| @@ -60,11 +60,10 @@ narrowing in effect. This way you will be certain that none of | |||
| 60 | the remaining prompts will be accidentally messed up. You may | 60 | the remaining prompts will be accidentally messed up. You may |
| 61 | wish to put something like the following in your init file: | 61 | wish to put something like the following in your init file: |
| 62 | 62 | ||
| 63 | \(add-hook \\='ielm-mode-hook | 63 | (with-eval-after-load \\='ielm |
| 64 | (lambda () | 64 | (keymap-set ielm-map \"C-w\" \\='comint-kill-region) |
| 65 | (define-key ielm-map \"\\C-w\" \\='comint-kill-region) | 65 | (keymap-set ielm-map \"C-S-<backspace>\" |
| 66 | (define-key ielm-map [C-S-backspace] | 66 | \\='comint-kill-whole-line)) |
| 67 | \\='comint-kill-whole-line))) | ||
| 68 | 67 | ||
| 69 | If you set `comint-prompt-read-only' to t, you might wish to use | 68 | If you set `comint-prompt-read-only' to t, you might wish to use |
| 70 | `comint-mode-hook' and `comint-mode-map' instead of | 69 | `comint-mode-hook' and `comint-mode-map' instead of |
diff --git a/lisp/international/ogonek.el b/lisp/international/ogonek.el index e5b71f9bf47..0b1e478eefd 100644 --- a/lisp/international/ogonek.el +++ b/lisp/international/ogonek.el | |||
| @@ -144,17 +144,17 @@ znak/ow diakrytycznych. Funkcje te mo/zna pogrupowa/c nast/epuj/aco. | |||
| 144 | (defun deprefixify-iso8859-2-region (start end) | 144 | (defun deprefixify-iso8859-2-region (start end) |
| 145 | (interactive \"*r\") | 145 | (interactive \"*r\") |
| 146 | (ogonek-deprefixify-region start end ?/ \"iso8859-2\")) | 146 | (ogonek-deprefixify-region start end ?/ \"iso8859-2\")) |
| 147 | (global-set-key \"\\C-cd\" \\='deprefixify-iso8859-2-region) ; ctrl-c d | 147 | (keymap-global-set \"C-c d\" \\='deprefixify-iso8859-2-region) ; ctrl-c d |
| 148 | 148 | ||
| 149 | (defun mazovia-to-iso8859-2 (start end) | 149 | (defun mazovia-to-iso8859-2 (start end) |
| 150 | (interactive \"*r\") | 150 | (interactive \"*r\") |
| 151 | (ogonek-recode-region start end \"mazovia\" \"iso8859-2\")) | 151 | (ogonek-recode-region start end \"mazovia\" \"iso8859-2\")) |
| 152 | (global-set-key \"\\C-cr\" \\='mazovia-to-iso8859-2) ; ctrl-c r | 152 | (keymap-global-set \"C-c r\" \\='mazovia-to-iso8859-2) ; ctrl-c r |
| 153 | 153 | ||
| 154 | (defun prefixify-iso8859-2-region (start end) | 154 | (defun prefixify-iso8859-2-region (start end) |
| 155 | (interactive \"*r\") | 155 | (interactive \"*r\") |
| 156 | (ogonek-prefixify-region start end \"iso8859-2\" ?/)) | 156 | (ogonek-prefixify-region start end \"iso8859-2\" ?/)) |
| 157 | (global-set-key \"\\C-cp\" \\='prefixify-iso8859-2-region) ; ctrl-c p | 157 | (keymap-global-set \"C-c p\" \\='prefixify-iso8859-2-region) ; ctrl-c p |
| 158 | 158 | ||
| 159 | Ka/zd/a operacj/e przekodowania mo/zna w ca/lo/sci odwo/la/c | 159 | Ka/zd/a operacj/e przekodowania mo/zna w ca/lo/sci odwo/la/c |
| 160 | przez wykonanie polecenia `undo'.") | 160 | przez wykonanie polecenia `undo'.") |
| @@ -244,17 +244,17 @@ The functions come in the following groups. | |||
| 244 | (defun deprefixify-iso8859-2-region (start end) | 244 | (defun deprefixify-iso8859-2-region (start end) |
| 245 | (interactive \"*r\") | 245 | (interactive \"*r\") |
| 246 | (ogonek-deprefixify-region start end ?/ \"iso8859-2\")) | 246 | (ogonek-deprefixify-region start end ?/ \"iso8859-2\")) |
| 247 | (global-set-key \"\\C-cd\" \\='deprefixify-iso8859-2-region) ; ctrl-c d | 247 | (keymap-global-set \"C-c d\" \\='deprefixify-iso8859-2-region) ; ctrl-c d |
| 248 | 248 | ||
| 249 | (defun mazovia-to-iso8859-2 (start end) | 249 | (defun mazovia-to-iso8859-2 (start end) |
| 250 | (interactive \"*r\") | 250 | (interactive \"*r\") |
| 251 | (ogonek-recode-region start end \"mazovia\" \"iso8859-2\")) | 251 | (ogonek-recode-region start end \"mazovia\" \"iso8859-2\")) |
| 252 | (global-set-key \"\\C-cr\" \\='mazovia-to-iso8859-2) ; ctrl-c r | 252 | (keymap-global-set \"C-c r\" \\='mazovia-to-iso8859-2) ; ctrl-c r |
| 253 | 253 | ||
| 254 | (defun prefixify-iso8859-2-region (start end) | 254 | (defun prefixify-iso8859-2-region (start end) |
| 255 | (interactive \"*r\") | 255 | (interactive \"*r\") |
| 256 | (ogonek-prefixify-region start end \"iso8859-2\" ?/)) | 256 | (ogonek-prefixify-region start end \"iso8859-2\" ?/)) |
| 257 | (global-set-key \"\\C-cp\" \\='prefixify-iso8859-2-region) ; ctrl-c p | 257 | (keymap-global-set \"C-c p\" \\='prefixify-iso8859-2-region) ; ctrl-c p |
| 258 | 258 | ||
| 259 | Each recoding operation can be called off using the `undo' command.") | 259 | Each recoding operation can be called off using the `undo' command.") |
| 260 | 260 | ||
diff --git a/lisp/mouse-copy.el b/lisp/mouse-copy.el index cbd3f360c3e..1abc36d8812 100644 --- a/lisp/mouse-copy.el +++ b/lisp/mouse-copy.el | |||
| @@ -152,7 +152,8 @@ If you have the bug (or the real fix :-), please let me know." | |||
| 152 | "Drag out a secondary selection, then paste it at the current point. | 152 | "Drag out a secondary selection, then paste it at the current point. |
| 153 | 153 | ||
| 154 | To test this function, evaluate: | 154 | To test this function, evaluate: |
| 155 | (global-set-key [M-down-mouse-1] \\='mouse-drag-secondary-pasting) | 155 | (keymap-global-set \"M-<down-mouse-1>\" |
| 156 | \\='mouse-drag-secondary-pasting) | ||
| 156 | put the point at one place, then click and drag over some other region." | 157 | put the point at one place, then click and drag over some other region." |
| 157 | (interactive "e") | 158 | (interactive "e") |
| 158 | ;; Work-around: We see and react to each part of a multi-click event | 159 | ;; Work-around: We see and react to each part of a multi-click event |
diff --git a/lisp/mouse-drag.el b/lisp/mouse-drag.el index bb27994bbca..01f0421baf0 100644 --- a/lisp/mouse-drag.el +++ b/lisp/mouse-drag.el | |||
| @@ -203,7 +203,7 @@ about which direction is natural. Perhaps it has to do with which | |||
| 203 | hemisphere you're in.) | 203 | hemisphere you're in.) |
| 204 | 204 | ||
| 205 | To test this function, evaluate: | 205 | To test this function, evaluate: |
| 206 | (global-set-key [down-mouse-2] \\='mouse-drag-throw)" | 206 | (keymap-global-set \"<down-mouse-2>\" \\='mouse-drag-throw)" |
| 207 | (interactive "e") | 207 | (interactive "e") |
| 208 | ;; we want to do save-selected-window, but that requires 19.29 | 208 | ;; we want to do save-selected-window, but that requires 19.29 |
| 209 | (let* ((start-posn (event-start start-event)) | 209 | (let* ((start-posn (event-start start-event)) |
| @@ -263,7 +263,7 @@ Drag scrolling is identical to the \"hand\" option in MacPaint, or the | |||
| 263 | middle button in Tk text widgets. | 263 | middle button in Tk text widgets. |
| 264 | 264 | ||
| 265 | To test this function, evaluate: | 265 | To test this function, evaluate: |
| 266 | (global-set-key [down-mouse-2] \\='mouse-drag-drag)" | 266 | (keymap-global-set \"<down-mouse-2>\" \\='mouse-drag-drag)" |
| 267 | (interactive "e") | 267 | (interactive "e") |
| 268 | ;; we want to do save-selected-window, but that requires 19.29 | 268 | ;; we want to do save-selected-window, but that requires 19.29 |
| 269 | (let* ((start-posn (event-start start-event)) | 269 | (let* ((start-posn (event-start start-event)) |