Mercurial > emacs
comparison lisp/emulation/pc-select.el @ 37334:ef2abdff31fa
(pc-selection-mode): Don't turn on
normal-erase-is-backspace on a tty. Instead, bind some keys such
as [delete] directly, like pc-select.el did before
normal-erase-is-backspace was invented.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 13 Apr 2001 11:09:46 +0000 |
parents | f3dfc212bd1b |
children | b174db545cfd |
comparison
equal
deleted
inserted
replaced
37333:54ec1bffae34 | 37334:ef2abdff31fa |
---|---|
726 (global-set-key [S-C-up] 'backward-paragraph-mark) | 726 (global-set-key [S-C-up] 'backward-paragraph-mark) |
727 | 727 |
728 (or pc-select-selection-keys-only | 728 (or pc-select-selection-keys-only |
729 (progn | 729 (progn |
730 ;; We are behaving like normal-erase-is-backspace-mode, so | 730 ;; We are behaving like normal-erase-is-backspace-mode, so |
731 ;; say so explicitly. | 731 ;; say so explicitly. But don't do that on a Unix tty, since |
732 (setq-default normal-erase-is-backspace t) | 732 ;; some of them have keyboards that by default already behave |
733 (normal-erase-is-backspace-mode 1) | 733 ;; as if normal-erase-is-backspace mode is on, and turning it |
734 ;; a second time screws them up. | |
735 (if (or (eq window-system 'x) | |
736 (memq system-name '(ms-dos windows-nt))) | |
737 (progn | |
738 (setq-default normal-erase-is-backspace t) | |
739 (normal-erase-is-backspace-mode 1)) | |
740 ;; This is for tty. We don't turn on normal-erase-is-backspace, | |
741 ;; but bind keys as pc-selection-mode did before | |
742 ;; normal-erase-is-backspace was invented, to keep us back | |
743 ;; compatible. | |
744 (global-set-key [delete] 'delete-char) ; KDelete Del | |
745 (define-key function-key-map [M-delete] [?\M-d]) | |
746 (global-set-key [C-backspace] 'backward-kill-word)) | |
734 (define-key global-map [S-insert] 'yank) | 747 (define-key global-map [S-insert] 'yank) |
735 (define-key global-map [C-insert] 'copy-region-as-kill) | 748 (define-key global-map [C-insert] 'copy-region-as-kill) |
736 (define-key global-map [S-delete] 'kill-region) | 749 (define-key global-map [S-delete] 'kill-region) |
737 | 750 |
738 ;; The following bindings are useful on Sun Type 3 keyboards | 751 ;; The following bindings are useful on Sun Type 3 keyboards |