[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master e3ab5c3 02/11: Improve documentation
From: |
Artur Malabarba |
Subject: |
[elpa] master e3ab5c3 02/11: Improve documentation |
Date: |
Fri, 30 Oct 2015 09:54:01 +0000 |
branch: master
commit e3ab5c3b4a3cf5c6e099534d6c1db5672511f67b
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
Improve documentation
---
beacon.el | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/beacon.el b/beacon.el
index eb08d1a..ffdbcbc 100644
--- a/beacon.el
+++ b/beacon.el
@@ -44,13 +44,6 @@
:group 'emacs
:prefix "beacon-")
-(defface beacon-fallback
- '((((class color) (background light))
- (:background "black"))
- (((class color) (background dark))
- (:background "white")))
- "Fallback background color")
-
(defvar beacon--timer nil)
(defcustom beacon-push-mark 35
@@ -110,6 +103,13 @@ If it is a string, it is a color name or specification,
e.g. \"#666600\"."
:type '(choice number color))
+(defface beacon-fallback-background
+ '((((class color) (background light)) (:background "black"))
+ (((class color) (background dark)) (:background "white")))
+ "Fallback beacon background color.
+Used in cases where the color can't be determined by Emacs.
+Only the background of this face is used.")
+
(defvar beacon-dont-blink-predicates nil
"A list of predicates that prevent the beacon blink.
These predicate functions are called in order, with no
@@ -229,8 +229,8 @@ Only returns `beacon-size' elements."
(defun beacon--color-range ()
"Return a list of background colors for the beacon."
(let* ((default-bg (face-attribute 'default :background))
- (bg (color-values (if (string-prefix-p "unspecified" default-bg)
- (face-attribute 'beacon-fallback :background)
+ (bg (color-values (if (string-match "\\`unspecified-" default-bg)
+ (face-attribute 'beacon-fallback-background
:background)
default-bg)))
(fg (cond
((stringp beacon-color) (color-values beacon-color))
- [elpa] master updated (988e91c -> af1503e), Artur Malabarba, 2015/10/30
- [elpa] master e2d9843 01/11: [#26] Fix when default background is unspecified-fg or unspecified-bg, Artur Malabarba, 2015/10/30
- [elpa] master 57b1edc 03/11: [Fix #25] blink-when-window-scroll not being used, Artur Malabarba, 2015/10/30
- [elpa] master 59b6c94 04/11: [Fix #21 Fix #17] Add beacon-blink-when-point-moves-horizontally, Artur Malabarba, 2015/10/30
- [elpa] master 6f493ee 08/11: Merge pull request #29 from syohex/cl-lib, Artur Malabarba, 2015/10/30
- [elpa] master 1a6fcaf 07/11: Load cl-lib for using cl-mapcar, Artur Malabarba, 2015/10/30
- [elpa] master 0092045 10/11: Be silent when pushing mark, Artur Malabarba, 2015/10/30
- [elpa] master e3ab5c3 02/11: Improve documentation,
Artur Malabarba <=
- [elpa] master da3d7bc 09/11: Ditch cl-lib again in lieu of seq-mapn, Artur Malabarba, 2015/10/30
- [elpa] master 4c4af24 05/11: * COPYING: New file, fix #27., Artur Malabarba, 2015/10/30
- [elpa] master d0b7011 06/11: Merge pull request #28 from NicolasPetton/master, Artur Malabarba, 2015/10/30
- [elpa] master af1503e 11/11: Merge commit '00920450d83ffe7a02bbe98997e266726819efc2', Artur Malabarba, 2015/10/30