* 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.
(cherry picked from commit
03e33cbef3e33aa1ec843388d1671f7116a7347b)
the remaining prompts will be accidentally messed up. You may
wish to put something like the following in your init file:
-\(add-hook \\='comint-mode-hook
- (lambda ()
- (define-key comint-mode-map [remap kill-region] \\='comint-kill-region)
- (define-key comint-mode-map [remap kill-whole-line]
- \\='comint-kill-whole-line)))
+ (with-eval-after-load \\='comint
+ (keymap-set comint-mode-map \"<remap> <kill-region>\"
+ \\='comint-kill-region)
+ (keymap-set comint-mode-map \"<remap> <kill-whole-line>\"
+ \\='comint-kill-whole-line))
If you sometimes use `comint-mode' on text-only terminals or with `emacs -nw',
you might wish to use another binding for `comint-kill-whole-line'."
the remaining prompts will be accidentally messed up. You may
wish to put something like the following in your init file:
-\(add-hook \\='ielm-mode-hook
- (lambda ()
- (define-key ielm-map \"\\C-w\" \\='comint-kill-region)
- (define-key ielm-map [C-S-backspace]
- \\='comint-kill-whole-line)))
+ (with-eval-after-load \\='ielm
+ (keymap-set ielm-map \"C-w\" \\='comint-kill-region)
+ (keymap-set ielm-map \"C-S-<backspace>\"
+ \\='comint-kill-whole-line))
If you set `comint-prompt-read-only' to t, you might wish to use
`comint-mode-hook' and `comint-mode-map' instead of
(defun deprefixify-iso8859-2-region (start end)
(interactive \"*r\")
(ogonek-deprefixify-region start end ?/ \"iso8859-2\"))
- (global-set-key \"\\C-cd\" \\='deprefixify-iso8859-2-region) ; ctrl-c d
+ (keymap-global-set \"C-c d\" \\='deprefixify-iso8859-2-region) ; ctrl-c d
(defun mazovia-to-iso8859-2 (start end)
(interactive \"*r\")
(ogonek-recode-region start end \"mazovia\" \"iso8859-2\"))
- (global-set-key \"\\C-cr\" \\='mazovia-to-iso8859-2) ; ctrl-c r
+ (keymap-global-set \"C-c r\" \\='mazovia-to-iso8859-2) ; ctrl-c r
(defun prefixify-iso8859-2-region (start end)
(interactive \"*r\")
(ogonek-prefixify-region start end \"iso8859-2\" ?/))
- (global-set-key \"\\C-cp\" \\='prefixify-iso8859-2-region) ; ctrl-c p
+ (keymap-global-set \"C-c p\" \\='prefixify-iso8859-2-region) ; ctrl-c p
Ka/zd/a operacj/e przekodowania mo/zna w ca/lo/sci odwo/la/c
przez wykonanie polecenia `undo'.")
(defun deprefixify-iso8859-2-region (start end)
(interactive \"*r\")
(ogonek-deprefixify-region start end ?/ \"iso8859-2\"))
- (global-set-key \"\\C-cd\" \\='deprefixify-iso8859-2-region) ; ctrl-c d
+ (keymap-global-set \"C-c d\" \\='deprefixify-iso8859-2-region) ; ctrl-c d
(defun mazovia-to-iso8859-2 (start end)
(interactive \"*r\")
(ogonek-recode-region start end \"mazovia\" \"iso8859-2\"))
- (global-set-key \"\\C-cr\" \\='mazovia-to-iso8859-2) ; ctrl-c r
+ (keymap-global-set \"C-c r\" \\='mazovia-to-iso8859-2) ; ctrl-c r
(defun prefixify-iso8859-2-region (start end)
(interactive \"*r\")
(ogonek-prefixify-region start end \"iso8859-2\" ?/))
- (global-set-key \"\\C-cp\" \\='prefixify-iso8859-2-region) ; ctrl-c p
+ (keymap-global-set \"C-c p\" \\='prefixify-iso8859-2-region) ; ctrl-c p
Each recoding operation can be called off using the `undo' command.")
"Drag out a secondary selection, then paste it at the current point.
To test this function, evaluate:
- (global-set-key [M-down-mouse-1] \\='mouse-drag-secondary-pasting)
+ (keymap-global-set \"M-<down-mouse-1>\"
+ \\='mouse-drag-secondary-pasting)
put the point at one place, then click and drag over some other region."
(interactive "e")
;; Work-around: We see and react to each part of a multi-click event
hemisphere you're in.)
To test this function, evaluate:
- (global-set-key [down-mouse-2] \\='mouse-drag-throw)"
+ (keymap-global-set \"<down-mouse-2>\" \\='mouse-drag-throw)"
(interactive "e")
;; we want to do save-selected-window, but that requires 19.29
(let* ((start-posn (event-start start-event))
middle button in Tk text widgets.
To test this function, evaluate:
- (global-set-key [down-mouse-2] \\='mouse-drag-drag)"
+ (keymap-global-set \"<down-mouse-2>\" \\='mouse-drag-drag)"
(interactive "e")
;; we want to do save-selected-window, but that requires 19.29
(let* ((start-posn (event-start start-event))