diff lisp/x-win-sun.el @ 380:8626e4521993 r21-2-5

Import from CVS: tag r21-2-5
author cvs
date Mon, 13 Aug 2007 11:07:10 +0200
parents c5d627a313b1
children 74fd4e045ea6
line wrap: on
line diff
--- a/lisp/x-win-sun.el	Mon Aug 13 11:06:08 2007 +0200
+++ b/lisp/x-win-sun.el	Mon Aug 13 11:07:10 2007 +0200
@@ -64,19 +64,9 @@
 
 ;;; Code:
 
+;;;###autoload
 (defun x-win-init-sun ()
 
-  (defun x-remap-keysyms-using-function-key-map (from-key to-key)
-    (dolist (prefix '(() (shift) (control) (meta) (alt)
-		      (shift control) (shift alt) (shift meta)
-		      (control alt) (control meta) (alt meta)
-		      (shift control alt) (shift control meta)
-		      (shift alt meta) (control alt meta)
-		      (shift control alt meta)))
-      (define-key function-key-map
-	(append prefix (list from-key))
-	(vector (append prefix (list to-key))))))
-
   ;; help is ok
   ;; num_lock is ok
   ;; up is ok
@@ -164,9 +154,15 @@
 		 (f12    again))))
       )
     do (when (x-keysym-on-keyboard-sans-modifiers-p from-key)
-	 (x-remap-keysyms-using-function-key-map from-key to-key)))
-
-  (unintern 'x-remap-keysyms-using-function-key-map)
+	 (dolist (prefix '(() (shift) (control) (meta) (alt)
+			   (shift control) (shift alt) (shift meta)
+			   (control alt) (control meta) (alt meta)
+			   (shift control alt) (shift control meta)
+			   (shift alt meta) (control alt meta)
+			   (shift control alt meta)))
+	   (define-key function-key-map
+	     (append prefix (list from-key))
+	     (vector (append prefix (list to-key)))))))
 
   ;; for each element in the left column of the above table, alias it
   ;; to the thing in the right column.  Then do the same for many, but