emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/term/AT386.el,v


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/term/AT386.el,v
Date: Wed, 29 Aug 2007 05:28:36 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Miles Bader <miles>     07/08/29 05:28:10

Index: lisp/term/AT386.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/term/AT386.el,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- lisp/term/AT386.el  26 Jul 2007 05:27:30 -0000      1.10
+++ lisp/term/AT386.el  29 Aug 2007 05:28:00 -0000      1.11
@@ -29,10 +29,10 @@
 
 ;;; Code:
 
-(if (boundp 'AT386-keypad-map)
-    nil
+(defun terminal-init-AT386 ()
+  "Terminal initialization function for AT386."
+  (let ((AT386-keypad-map (lookup-key local-function-key-map "\e[")))
   ;; The terminal initialization should already have set up some keys
-  (setq AT386-keypad-map (lookup-key function-key-map "\e["))
   (if (not (keymapp AT386-keypad-map))
       (error "What?  Your AT386 termcap/terminfo has no keycaps in it"))
 
@@ -55,8 +55,8 @@
   (define-key AT386-keypad-map "T" [kp-add])
 
   ;; Arrange for the ALT key to be equivalent to ESC
-  (define-key function-key-map "\eN" [27]) ; ALT map
-  )
+    (define-key local-function-key-map "\eN" [27]) ; ALT map
+    ))
 
 ;;; arch-tag: abec1b03-582f-49f8-b8cb-e2fd52ea4bd7
 ;;; AT386.el ends here




reply via email to

[Prev in Thread] Current Thread [Next in Thread]