aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMartin Rudalics2014-02-04 08:36:58 +0100
committerMartin Rudalics2014-02-04 08:36:58 +0100
commit764ec9e5f0adaff96b52252eea71eb30ef7cefa1 (patch)
tree1aaf762a76e795be19e9a2279db36b496b0d1e15 /lisp
parent6da8227cfa5bc7f428346e78d028a83a385f908f (diff)
downloademacs-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/ChangeLog7
-rw-r--r--lisp/faces.el33
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 @@
12014-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
12014-02-03 Dmitry Gutov <dgutov@yandex.ru> 82014-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.
2430When a divider is less than 3 pixels wide, it is drawn solidly
2431with the foreground of this face. For larger dividers this face
2432is used for the inner part while the first pixel line/column is
2433drawn with the `window-divider-first-pixel' face and the last
2434pixel 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.
2442When a divider is at least 3 pixels wide, its first pixel
2443line/column is drawn with the foreground of this face. If you do
2444not want to accentuate the first pixel line/column, set this to
2445the 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.
2453When a divider is at least 3 pixels wide, its last pixel
2454line/column is drawn with the foreground of this face. If you do
2455not want to accentuate the last pixel line/column, set this to
2456the 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