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:
parent
6ba3b2d03d
commit
2d09804e19
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue