changeset 7233:da74d15b3571

Don't bind [mouse-1]; that's done elsewhere. Define lower-upper case correspondence for the three mostly used code pages.
author Richard M. Stallman <rms@gnu.org>
date Sat, 30 Apr 1994 20:40:34 +0000
parents 25300b83f0dd
children b642c8ba8ea3
files lisp/term/internal.el
diffstat 1 files changed, 16 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/term/internal.el	Sat Apr 30 20:30:48 1994 +0000
+++ b/lisp/term/internal.el	Sat Apr 30 20:40:34 1994 +0000
@@ -1,9 +1,9 @@
 ;; internal.el -- setup support for PC keyboards and screens, internal terminal
 
-;; Copyright (C) 1993 Free Software Foundation, Inc.
+;; Copyright (C) 1993, 1994 Free Software Foundation, Inc.
 
 ;; Author: Morten Welinder <terra@diku.dk>
-;; Version: 1,01
+;; Version: 1,02
 
 ;; This file is part of GNU Emacs.
 
@@ -26,7 +26,6 @@
 ;; ---------------------------------------------------------------------------
 ;; keyboard setup -- that's simple!
 (set-input-mode nil nil 0)
-(define-key global-map [mouse-1] 'mouse-set-point)
 (define-key function-key-map [backspace] "\177") ; Normal behaviour for BS
 (define-key function-key-map [delete] "\C-d")    ; ... and Delete
 (define-key function-key-map [tab] [?\t])
@@ -49,8 +48,8 @@
 (put 'return 'ascii-character 13)
 (put 'escape 'ascii-character ?\e)
 ;; ---------------------------------------------------------------------------
-;; We want to do this when Emacs is started because one day it will depend
-;; on the country code.
+;; We want to do this when Emacs is started because it depends on the
+;; country code.
 (let* ((i 128)
       (modify (function
 	       (lambda (ch sy) 
@@ -61,7 +60,17 @@
 		 )))
       (downs (car (standard-case-table)))
       (ups (car (cdr (standard-case-table))))
-      (chars "‡€š‚ƒA„Ž…A†ˆE‰EŠE‹IŒII‘’“O”™•O–UĢU˜Y› AĄIĒOĢUĪĨ"))
+      ;; The following are strings of letters, first lower then upper case.
+      ;; This will look funny on terminals which display other code pages.
+      (chars
+       (cond
+	((= dos-codepage 850)
+	 "‡€š‚ƒķ„Ž…·†ÆĮ ĩˆŌ‰ÓŠÔ‹ØŒŨÞĄÖ‘’“â”™•ãĒā›–ęĢé—ë˜YėíĄIĢéĪĨÐŅįč")
+	((= dos-codepage 865)
+	 "‡€š‚ƒA„Ž…A†ˆE‰EŠE‹IŒII‘’“O”™•O–UĢU˜Y› AĄIĒOĢUĪĨ")
+	;; default is 437
+	(t "‡€š‚ƒA„Ž…A†ˆE‰EŠE‹IŒII‘’“O”™•O–UĢU˜Y AĄIĒOĢUĪĨ"))))
+
   (while (< i 256)
     (funcall modify i "_")
     (setq i (1+ i)))
@@ -80,5 +89,4 @@
     (save-excursion
       (mapcar (lambda (b) (progn (set-buffer b) (set-case-table table)))
 	      (buffer-list)))
-    (set-standard-case-table table))
-  )
+    (set-standard-case-table table)))