summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-12-24 13:46:36 +0100
committerBastien Guerry <bzg@altern.org>2012-12-24 13:46:36 +0100
commit4549f0c99cef65c68879641d2a96ad486b64e6b1 (patch)
treea92dd0c0c520562cb214fc13a155d85237c1dc42
parentf01ce8502673c739bcb0da3c43ba1d2bdba7e203 (diff)
downloadorg-mode-4549f0c99cef65c68879641d2a96ad486b64e6b1.tar.gz
org.el: (org-mode): Use `face-background' instead of `org-find-invisible-foreground'
* org.el (org-find-invisible-foreground): Delete. (org-mode): Use `face-background' instead of `org-find-invisible-foreground'. Thanks to Achim for suggesting this.
-rw-r--r--lisp/org.el17
1 files changed, 1 insertions, 16 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 6b622d1..8eb7733 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5134,7 +5134,7 @@ 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)))
+ (set-face-foreground 'org-hide (face-background 'default nil 'default)))
(when (fboundp 'abbrev-table-put)
(abbrev-table-put org-mode-abbrev-table
@@ -5142,21 +5142,6 @@ The following commands are available:
(put 'org-mode 'flyspell-mode-predicate 'org-mode-flyspell-verify)
-
-(defun org-find-invisible-foreground ()
- (let ((candidates (remove
- "unspecified-bg"
- (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))))
-
(defun org-current-time ()
"Current time, possibly rounded to `org-time-stamp-rounding-minutes'."
(if (> (car org-time-stamp-rounding-minutes) 1)