branch: elpa/symbol-overlay
commit 6a3c16e506a5600623eb344a226f24f7dc4abf40
Merge: 6c7ec584b6 824cefc469
Author: wolray <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #12 from purcell/patch-3
Use recommended syntax for setting overlay face property
---
symbol-overlay.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/symbol-overlay.el b/symbol-overlay.el
index e986e71609..10ec8e3a90 100644
--- a/symbol-overlay.el
+++ b/symbol-overlay.el
@@ -249,8 +249,7 @@ This only effects symbols in the current displayed window."
If COLOR is non-nil, use it as the overlay face's background color.
Otherwise use `symbol-overlay-temp-face' as the face."
(let ((ov (make-overlay (match-beginning 0) (match-end 0))))
- (if color (progn (overlay-put ov 'face `((:background ,color)
- (:foreground "black")))
+ (if color (progn (overlay-put ov 'face `(:background ,color :foreground
"black"))
(overlay-put ov 'keymap symbol-overlay-map)
(overlay-put ov 'evaporate t)
(overlay-put ov 'symbol symbol))