diff options
| author | Martin Rudalics | 2014-02-04 08:36:58 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2014-02-04 08:36:58 +0100 |
| commit | 764ec9e5f0adaff96b52252eea71eb30ef7cefa1 (patch) | |
| tree | 1aaf762a76e795be19e9a2279db36b496b0d1e15 /lisp | |
| parent | 6da8227cfa5bc7f428346e78d028a83a385f908f (diff) | |
| download | emacs-764ec9e5f0adaff96b52252eea71eb30ef7cefa1.tar.gz emacs-764ec9e5f0adaff96b52252eea71eb30ef7cefa1.zip | |
Improve window dividers code.
* faces.el (window-divider): New default value. Rewrite
doc-string.
(window-divider-first-pixel, window-divider-last-pixel): New
faces.
* dispextern.h (face_id): Add WINDOW_DIVIDER_FIRST_PIXEL_FACE_ID
and WINDOW_DIVIDER_LAST_PIXEL_FACE_ID.
* w32term.c (w32_draw_window_divider): Handle first and last
pixels specially.
* w32term.h (w32_fill_area_abs): New function.
* xdisp.c (x_draw_right_divider): Don't draw over bottom
divider.
* xfaces.c (realize_basic_faces): Handle new face ids.
* xfns.c (Fx_create_frame): Call x_default_parameter for right
and bottom divider width.
* xterm.c (x_draw_window_divider): Handle first and last pixels
specially.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/faces.el | 33 |
2 files changed, 40 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7c204726568..a97860c8aa6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2014-02-03 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * faces.el (window-divider): New default value. Rewrite | ||
| 4 | doc-string. | ||
| 5 | (window-divider-first-pixel, window-divider-last-pixel): New | ||
| 6 | faces. | ||
| 7 | |||
| 1 | 2014-02-03 Dmitry Gutov <dgutov@yandex.ru> | 8 | 2014-02-03 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 9 | ||
| 3 | * progmodes/ruby-mode.el (ruby-font-lock-keywords): `private', | 10 | * progmodes/ruby-mode.el (ruby-font-lock-keywords): `private', |
diff --git a/lisp/faces.el b/lisp/faces.el index aa9d25c31d7..460fddf9ccd 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -2425,6 +2425,39 @@ Use the face `mode-line-highlight' for features that can be selected." | |||
| 2425 | :version "22.1" | 2425 | :version "22.1" |
| 2426 | :group 'basic-faces) | 2426 | :group 'basic-faces) |
| 2427 | 2427 | ||
| 2428 | (defface window-divider '((t :foreground "gray60")) | ||
| 2429 | "Basic face for window dividers. | ||
| 2430 | When a divider is less than 3 pixels wide, it is drawn solidly | ||
| 2431 | with the foreground of this face. For larger dividers this face | ||
| 2432 | is used for the inner part while the first pixel line/column is | ||
| 2433 | drawn with the `window-divider-first-pixel' face and the last | ||
| 2434 | pixel line/column with the `window-divider-last-pixel' face." | ||
| 2435 | :version "24.4" | ||
| 2436 | :group 'frames | ||
| 2437 | :group 'basic-faces) | ||
| 2438 | |||
| 2439 | (defface window-divider-first-pixel | ||
| 2440 | '((t :foreground "gray80")) | ||
| 2441 | "Basic face for first pixel line/column of window dividers. | ||
| 2442 | When a divider is at least 3 pixels wide, its first pixel | ||
| 2443 | line/column is drawn with the foreground of this face. If you do | ||
| 2444 | not want to accentuate the first pixel line/column, set this to | ||
| 2445 | the same as `window-divider' face." | ||
| 2446 | :version "24.4" | ||
| 2447 | :group 'frames | ||
| 2448 | :group 'basic-faces) | ||
| 2449 | |||
| 2450 | (defface window-divider-last-pixel | ||
| 2451 | '((t :foreground "gray40")) | ||
| 2452 | "Basic face for last pixel line/column of window dividers. | ||
| 2453 | When a divider is at least 3 pixels wide, its last pixel | ||
| 2454 | line/column is drawn with the foreground of this face. If you do | ||
| 2455 | not want to accentuate the last pixel line/column, set this to | ||
| 2456 | the same as `window-divider' face." | ||
| 2457 | :version "24.4" | ||
| 2458 | :group 'frames | ||
| 2459 | :group 'basic-faces) | ||
| 2460 | |||
| 2428 | (defface minibuffer-prompt | 2461 | (defface minibuffer-prompt |
| 2429 | '((((background dark)) :foreground "cyan") | 2462 | '((((background dark)) :foreground "cyan") |
| 2430 | ;; Don't use blue because many users of the MS-DOS port customize | 2463 | ;; Don't use blue because many users of the MS-DOS port customize |