Mercurial > emacs
annotate lisp/term/internal.el @ 8032:936532a595dd
(comint-read-input-ring): Use ring-insert-at-beginning.
Insert most recent string first and only as many as we need.
Don't visit the file, just read it.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 23 Jun 1994 23:11:23 +0000 |
parents | da74d15b3571 |
children | 6ae78193650e |
rev | line source |
---|---|
5444 | 1 ;; internal.el -- setup support for PC keyboards and screens, internal terminal |
2 | |
7233
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
3 ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. |
5444 | 4 |
5 ;; Author: Morten Welinder <terra@diku.dk> | |
7233
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
6 ;; Version: 1,02 |
5444 | 7 |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
21 ;; along with GNU Emacs; see the file COPYING. If not, write to | |
22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
23 ;; --------------------------------------------------------------------------- | |
24 ;; screen setup -- that's easy! | |
25 (standard-display-8bit 127 254) | |
26 ;; --------------------------------------------------------------------------- | |
27 ;; keyboard setup -- that's simple! | |
28 (set-input-mode nil nil 0) | |
29 (define-key function-key-map [backspace] "\177") ; Normal behaviour for BS | |
30 (define-key function-key-map [delete] "\C-d") ; ... and Delete | |
31 (define-key function-key-map [tab] [?\t]) | |
32 (define-key function-key-map [linefeed] [?\n]) | |
33 (define-key function-key-map [clear] [11]) | |
34 (define-key function-key-map [return] [13]) | |
35 (define-key function-key-map [escape] [?\e]) | |
36 (define-key function-key-map [M-backspace] [?\M-\d]) | |
37 (define-key function-key-map [M-delete] [?\M-\d]) | |
38 (define-key function-key-map [M-tab] [?\M-\t]) | |
39 (define-key function-key-map [M-linefeed] [?\M-\n]) | |
40 (define-key function-key-map [M-clear] [?\M-\013]) | |
41 (define-key function-key-map [M-return] [?\M-\015]) | |
42 (define-key function-key-map [M-escape] [?\M-\e]) | |
43 (put 'backspace 'ascii-character 127) | |
44 (put 'delete 'ascii-character 127) | |
45 (put 'tab 'ascii-character ?\t) | |
46 (put 'linefeed 'ascii-character ?\n) | |
47 (put 'clear 'ascii-character 12) | |
48 (put 'return 'ascii-character 13) | |
49 (put 'escape 'ascii-character ?\e) | |
50 ;; --------------------------------------------------------------------------- | |
7233
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
51 ;; We want to do this when Emacs is started because it depends on the |
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
52 ;; country code. |
5444 | 53 (let* ((i 128) |
54 (modify (function | |
55 (lambda (ch sy) | |
56 (modify-syntax-entry ch sy text-mode-syntax-table) | |
57 (if (boundp 'tex-mode-syntax-table) | |
58 (modify-syntax-entry ch sy tex-mode-syntax-table)) | |
59 (modify-syntax-entry ch sy (standard-syntax-table)) | |
60 ))) | |
61 (downs (car (standard-case-table))) | |
62 (ups (car (cdr (standard-case-table)))) | |
7233
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
63 ;; The following are strings of letters, first lower then upper case. |
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
64 ;; This will look funny on terminals which display other code pages. |
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
65 (chars |
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
66 (cond |
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
67 ((= dos-codepage 850) |
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
68 "ķ ·ÆĮ ĩŌÓÔØŨÞĄÖâãĒāęĢéëYėíĄIĢéĪĨÐŅįč") |
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
69 ((= dos-codepage 865) |
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
70 "A AEEEIIIOOUĢUY AĄIĒOĢUĪĨ") |
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
71 ;; default is 437 |
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
72 (t "A AEEEIIIOOUĢUY AĄIĒOĢUĪĨ")))) |
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
73 |
5444 | 74 (while (< i 256) |
75 (funcall modify i "_") | |
76 (setq i (1+ i))) | |
77 | |
78 (setq i 0) | |
79 (while (< i (length chars)) | |
80 (let ((ch1 (aref chars i)) | |
81 (ch2 (aref chars (1+ i)))) | |
82 (funcall modify ch1 "w") | |
83 (funcall modify ch2 "w") | |
84 (aset ups ch1 ch2) | |
85 (if (> ch2 127) | |
86 (aset downs ch2 ch1)) | |
87 (setq i (+ i 2)))) | |
88 (let ((table (list downs ups nil nil))) | |
89 (save-excursion | |
90 (mapcar (lambda (b) (progn (set-buffer b) (set-case-table table))) | |
91 (buffer-list))) | |
7233
da74d15b3571
Don't bind [mouse-1]; that's done elsewhere.
Richard M. Stallman <rms@gnu.org>
parents:
5444
diff
changeset
|
92 (set-standard-case-table table))) |