Mercurial > hg > xemacs-beta
diff lisp/x11/x-init.el @ 149:538048ae2ab8 r20-3b1
Import from CVS: tag r20-3b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:36:16 +0200 |
parents | 54cc21c15cbb |
children | 3d6bfa290dbd |
line wrap: on
line diff
--- a/lisp/x11/x-init.el Mon Aug 13 09:35:15 2007 +0200 +++ b/lisp/x11/x-init.el Mon Aug 13 09:36:16 2007 +0200 @@ -179,13 +179,17 @@ (define-key global-map 'menu 'popup-mode-menu) ;;(define-key global-map '(shift menu) 'x-goto-menubar) ;NYI - ;; This runs after the first frame has been created (we can't - ;; talk to the X server before that) but before the - ;; site-start-file or .emacs file, so sites and users have a - ;; chance to override it. - (add-hook 'before-init-hook 'x-initialize-keyboard) + (setq post-x-win-initted t))) + - (setq post-x-win-initted t))) +(when (featurep 'x) + (add-hook + 'create-console-hook + (lambda (console) + (letf (((selected-console) console)) + (when (eq 'x (console-type console)) + (x-initialize-keyboard)))))) + (defun make-frame-on-display (display &optional props) "Create a frame on the X display named DISPLAY.