diff lisp/utils/passwd.el @ 155:43dd3413c7c7 r20-3b4

Import from CVS: tag r20-3b4
author cvs
date Mon, 13 Aug 2007 09:39:39 +0200
parents cca96a509cfe
children 3bb7ccffb0c0
line wrap: on
line diff
--- a/lisp/utils/passwd.el	Mon Aug 13 09:38:27 2007 +0200
+++ b/lisp/utils/passwd.el	Mon Aug 13 09:39:39 2007 +0200
@@ -42,7 +42,7 @@
   :group 'processes)
 
 
-(defcustom passwd-invert-frame-when-keyboard-grabbed t
+(defcustom passwd-invert-frame-when-keyboard-grabbed (not (featurep 'infodock))
   "*If non-nil swap the foreground and background colors of all faces.
 This is done while the keyboard is grabbed in order to give a visual
 clue that a grab is in effect."
@@ -317,10 +317,8 @@
 					       (color-name bg))
 				       (list face fg bg))
 				   nil))))
-			    (if (fboundp 'list-faces)
-				(list-faces) ; lemacs
-			      (face-list)    ; FSFmacs
-			      ))))
+			    (face-list)
+			      )))
     (let ((rest passwd-face-data))
       (while rest
 	(set-face-foreground (nth 0 (car rest)) (nth 2 (car rest)))
@@ -344,7 +342,7 @@
   (cond ((not (and (fboundp 'x-grab-keyboard) ; lemacs 19.10+
 		   (eq 'x (if (fboundp 'frame-type)
 			      (frame-type (selected-frame))
-			    (live-screen-p (selected-screen))))))
+			    (frame-live-p (selected-frame))))))
 	 nil)
 	((x-grab-keyboard)
 	 t)
@@ -364,7 +362,7 @@
   (if (and (fboundp 'x-ungrab-keyboard) ; lemacs 19.10+
 	   (eq 'x (if (fboundp 'frame-type)
 		      (frame-type (selected-frame))
-		    (live-screen-p (selected-screen)))))
+		    (frame-live-p (selected-frame)))))
       (x-ungrab-keyboard)))
 
 ;; v18 compatibility