diff options
| author | Jan Djärv | 2013-11-01 16:47:10 +0100 |
|---|---|---|
| committer | Jan Djärv | 2013-11-01 16:47:10 +0100 |
| commit | 3c334c1412e708585fddba61b7f91e0902a830f4 (patch) | |
| tree | fb063b9f306719816335d12601735648e4fbba41 /etc | |
| parent | 9bc236c8263bc81f1b540579a9f98d872ab2da46 (diff) | |
| download | emacs-3c334c1412e708585fddba61b7f91e0902a830f4.tar.gz emacs-3c334c1412e708585fddba61b7f91e0902a830f4.zip | |
Add :distant-foreground to faces.
* doc/lispref/display.texi (Face Attributes): Document :distant-foreground.
* etc/NEWS: Mention :distant-foreground.
* lisp/faces.el (face-x-resources): Add :distant-foreground.
(region): Use :distant-foreground for gtk and ns.
* src/dispextern.h (lface_attribute_index): Add
LFACE_DISTANT_FOREGROUND_INDEX.
* src/xfaces.c: Declare color_distance.
(QCdistant_foreground): New variable.
(NEAR_SAME_COLOR_THRESHOLD): New define.
(load_color2): New function.
(load_color): Call load_color2.
(load_face_colors): Call load_color2 and if distant-color is specified
calculate distant and use distant-color if colors are near.
(LFACE_DISTANT_FOREGROUND): New define.
(merge_face_ref, Finternal_set_lisp_face_attribute)
(Finternal_get_lisp_face_attribute)
(x_supports_face_attributes_p): Handle distant-foreground similar to
foreground.
(syms_of_xfaces): DEFSYM QCdistant_foreground.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/NEWS | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index 6527a7ab365..d35fa863441 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-11-01 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * NEWS: Mention :distant-foreground. | ||
| 4 | |||
| 1 | 2013-10-16 Dmitry Gutov <dgutov@yandex.ru> | 5 | 2013-10-16 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 6 | ||
| 3 | * NEWS: Mention the homepage-related changes in package.el. | 7 | * NEWS: Mention the homepage-related changes in package.el. |
| @@ -788,6 +788,10 @@ rather than inheriting from it (as do face specs set via Customize). | |||
| 788 | *** New face characteristic (supports :underline (:style wave)) | 788 | *** New face characteristic (supports :underline (:style wave)) |
| 789 | specifies whether or not the terminal can display a wavy line. | 789 | specifies whether or not the terminal can display a wavy line. |
| 790 | 790 | ||
| 791 | *** New face spec attribute :distant-foreground | ||
| 792 | specifies foreground to use if background is near the foreground that would | ||
| 793 | otherwise have been used. | ||
| 794 | |||
| 791 | ** Image API | 795 | ** Image API |
| 792 | 796 | ||
| 793 | +++ | 797 | +++ |