org.el: Only set org-hide foreground if one is available

* org.el (org-mode): Add guard around set-face-foreground.

TINYCHANGE
This commit is contained in:
Nikolai Weibull 2014-03-17 22:50:37 +01:00 committed by Bastien Guerry
parent 6ba3b2d03d
commit 2d09804e19
1 changed files with 3 additions and 1 deletions

View File

@ -5431,7 +5431,9 @@ The following commands are available:
(unless org-inhibit-startup-visibility-stuff
(org-set-startup-visibility))))
;; Try to set org-hide correctly
(set-face-foreground 'org-hide (org-find-invisible-foreground)))
(let ((foreground (org-find-invisible-foreground)))
(if foreground
(set-face-foreground 'org-hide foreground))))
;; Update `customize-package-emacs-version-alist'
(add-to-list 'customize-package-emacs-version-alist