Browse Source

Merge branch 'maint'

Achim Gratz 12 years ago
parent
commit
ea5e54f93d
1 changed files with 9 additions and 7 deletions
  1. 9 7
      lisp/org.el

+ 9 - 7
lisp/org.el

@@ -5128,13 +5128,15 @@ The following commands are available:
 (defun org-find-invisible-foreground ()
 (defun org-find-invisible-foreground ()
   (let ((candidates (remove
   (let ((candidates (remove
 		     "unspecified-bg"
 		     "unspecified-bg"
-		     (list
-		      (face-background 'default)
-		      (face-background 'org-default)
-		      (cdr (assoc 'background-color default-frame-alist))
-		      (cdr (assoc 'background-color initial-frame-alist))
-		      (cdr (assoc 'background-color window-system-default-frame-alist))
-		      (face-foreground 'org-hide)))))
+		     (nconc
+		      (list (face-background 'default)
+			    (face-background 'org-default))
+		      (mapcar
+		       (lambda (alist)
+			 (when (boundp alist)
+			   (cdr (assoc 'background-color (symbol-value alist)))))
+		       '(default-frame-alist initial-frame-alist window-system-default-frame-alist))
+		      (list (face-foreground 'org-hide))))))
     (car (remove nil candidates))))
     (car (remove nil candidates))))
 
 
 (defun org-current-time ()
 (defun org-current-time ()