diff options
| author | Richard M. Stallman | 1994-04-30 20:40:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-30 20:40:34 +0000 |
| commit | 870975a12b8e089b4e7ce9e458e211684ec532c8 (patch) | |
| tree | f27ed2ecf09c5eb02d4c964d9a75bebd9ab65ca7 | |
| parent | 024a380b5d4d7c424c2a8c42da93c4dba21c7a7b (diff) | |
| download | emacs-870975a12b8e089b4e7ce9e458e211684ec532c8.tar.gz emacs-870975a12b8e089b4e7ce9e458e211684ec532c8.zip | |
Don't bind [mouse-1]; that's done elsewhere.
Define lower-upper case correspondence for the three mostly used code pages.
| -rw-r--r-- | lisp/term/internal.el | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/lisp/term/internal.el b/lisp/term/internal.el index 164b54e4efb..ff566ae33d0 100644 --- a/lisp/term/internal.el +++ b/lisp/term/internal.el | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | ;; internal.el -- setup support for PC keyboards and screens, internal terminal | 1 | ;; internal.el -- setup support for PC keyboards and screens, internal terminal |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Morten Welinder <terra@diku.dk> | 5 | ;; Author: Morten Welinder <terra@diku.dk> |
| 6 | ;; Version: 1,01 | 6 | ;; Version: 1,02 |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
| @@ -26,7 +26,6 @@ | |||
| 26 | ;; --------------------------------------------------------------------------- | 26 | ;; --------------------------------------------------------------------------- |
| 27 | ;; keyboard setup -- that's simple! | 27 | ;; keyboard setup -- that's simple! |
| 28 | (set-input-mode nil nil 0) | 28 | (set-input-mode nil nil 0) |
| 29 | (define-key global-map [mouse-1] 'mouse-set-point) | ||
| 30 | (define-key function-key-map [backspace] "\177") ; Normal behaviour for BS | 29 | (define-key function-key-map [backspace] "\177") ; Normal behaviour for BS |
| 31 | (define-key function-key-map [delete] "\C-d") ; ... and Delete | 30 | (define-key function-key-map [delete] "\C-d") ; ... and Delete |
| 32 | (define-key function-key-map [tab] [?\t]) | 31 | (define-key function-key-map [tab] [?\t]) |
| @@ -49,8 +48,8 @@ | |||
| 49 | (put 'return 'ascii-character 13) | 48 | (put 'return 'ascii-character 13) |
| 50 | (put 'escape 'ascii-character ?\e) | 49 | (put 'escape 'ascii-character ?\e) |
| 51 | ;; --------------------------------------------------------------------------- | 50 | ;; --------------------------------------------------------------------------- |
| 52 | ;; We want to do this when Emacs is started because one day it will depend | 51 | ;; We want to do this when Emacs is started because it depends on the |
| 53 | ;; on the country code. | 52 | ;; country code. |
| 54 | (let* ((i 128) | 53 | (let* ((i 128) |
| 55 | (modify (function | 54 | (modify (function |
| 56 | (lambda (ch sy) | 55 | (lambda (ch sy) |
| @@ -61,7 +60,17 @@ | |||
| 61 | ))) | 60 | ))) |
| 62 | (downs (car (standard-case-table))) | 61 | (downs (car (standard-case-table))) |
| 63 | (ups (car (cdr (standard-case-table)))) | 62 | (ups (car (cdr (standard-case-table)))) |
| 64 | (chars "A AEEEIIIOOUĢUY AĄIĒOĢUĪĨ")) | 63 | ;; The following are strings of letters, first lower then upper case. |
| 64 | ;; This will look funny on terminals which display other code pages. | ||
| 65 | (chars | ||
| 66 | (cond | ||
| 67 | ((= dos-codepage 850) | ||
| 68 | "ķ ·ÆĮ ĩŌÓÔØŨÞĄÖâãĒāęĢéëYėíĄIĢéĪĨÐŅįč") | ||
| 69 | ((= dos-codepage 865) | ||
| 70 | "A AEEEIIIOOUĢUY AĄIĒOĢUĪĨ") | ||
| 71 | ;; default is 437 | ||
| 72 | (t "A AEEEIIIOOUĢUY AĄIĒOĢUĪĨ")))) | ||
| 73 | |||
| 65 | (while (< i 256) | 74 | (while (< i 256) |
| 66 | (funcall modify i "_") | 75 | (funcall modify i "_") |
| 67 | (setq i (1+ i))) | 76 | (setq i (1+ i))) |
| @@ -80,5 +89,4 @@ | |||
| 80 | (save-excursion | 89 | (save-excursion |
| 81 | (mapcar (lambda (b) (progn (set-buffer b) (set-case-table table))) | 90 | (mapcar (lambda (b) (progn (set-buffer b) (set-case-table table))) |
| 82 | (buffer-list))) | 91 | (buffer-list))) |
| 83 | (set-standard-case-table table)) | 92 | (set-standard-case-table table))) |
| 84 | ) | ||