aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-03-26 15:12:33 +0000
committerStefan Monnier2004-03-26 15:12:33 +0000
commit411def8eb005f8e2b69df6dcc6bf18115815c72d (patch)
treee4b611c4352ba525fec67e2f73dbb1ab2b77732b
parent7c64272b8ce748ec4d046acc7689df0da84257cf (diff)
downloademacs-411def8eb005f8e2b69df6dcc6bf18115815c72d.tar.gz
emacs-411def8eb005f8e2b69df6dcc6bf18115815c72d.zip
(read-face-font): Don't cons up unnecessarily.
(header-line, tool-bar): Share common parts.
-rw-r--r--lisp/faces.el30
1 files changed, 14 insertions, 16 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index a754b58c928..2480c6777dc 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1071,7 +1071,7 @@ of a global face. Value is the new attribute value."
1071If optional argument FRAME Is nil or omitted, use the selected frame." 1071If optional argument FRAME Is nil or omitted, use the selected frame."
1072 (let ((completion-ignore-case t)) 1072 (let ((completion-ignore-case t))
1073 (completing-read (format "Set font attributes of face `%s' from font: " face) 1073 (completing-read (format "Set font attributes of face `%s' from font: " face)
1074 (mapcar 'list (x-list-fonts "*" nil frame))))) 1074 (x-list-fonts "*" nil frame))))
1075 1075
1076 1076
1077(defun read-all-face-attributes (face &optional frame) 1077(defun read-all-face-attributes (face &optional frame)
@@ -1833,7 +1833,9 @@ created."
1833(put 'modeline-inactive 'face-alias 'mode-line-inactive) 1833(put 'modeline-inactive 'face-alias 'mode-line-inactive)
1834 1834
1835(defface header-line 1835(defface header-line
1836 '((((type tty)) 1836 '((t
1837 :inherit mode-line)
1838 (((type tty))
1837 ;; This used to be `:inverse-video t', but that doesn't look very 1839 ;; This used to be `:inverse-video t', but that doesn't look very
1838 ;; good when combined with inverse-video mode-lines and multiple 1840 ;; good when combined with inverse-video mode-lines and multiple
1839 ;; windows. Underlining looks better, and is more consistent with 1841 ;; windows. Underlining looks better, and is more consistent with
@@ -1843,41 +1845,37 @@ created."
1843 ;; highlighting; this may be too confusing in general, although it 1845 ;; highlighting; this may be too confusing in general, although it
1844 ;; happens to look good with the only current use of header-lines, 1846 ;; happens to look good with the only current use of header-lines,
1845 ;; the info browser. XXX 1847 ;; the info browser. XXX
1848 :inverse-video nil ;Override the value inherited from mode-line.
1846 :underline t) 1849 :underline t)
1847 (((class color grayscale) (background light)) 1850 (((class color grayscale) (background light))
1848 :background "grey90" :foreground "grey20" 1851 :background "grey90" :foreground "grey20"
1849 :box nil 1852 :box nil)
1850 :inherit mode-line)
1851 (((class color grayscale) (background dark)) 1853 (((class color grayscale) (background dark))
1852 :background "grey20" :foreground "grey90" 1854 :background "grey20" :foreground "grey90"
1853 :box nil 1855 :box nil)
1854 :inherit mode-line)
1855 (((class mono) (background light)) 1856 (((class mono) (background light))
1856 :background "white" :foreground "black" 1857 :background "white" :foreground "black"
1857 :inverse-video nil 1858 :inverse-video nil
1858 :box nil 1859 :box nil
1859 :underline t 1860 :underline t)
1860 :inherit mode-line)
1861 (((class mono) (background dark)) 1861 (((class mono) (background dark))
1862 :background "black" :foreground "white" 1862 :background "black" :foreground "white"
1863 :inverse-video nil 1863 :inverse-video nil
1864 :box nil 1864 :box nil
1865 :underline t 1865 :underline t))
1866 :inherit mode-line))
1867 "Basic header-line face." 1866 "Basic header-line face."
1868 :version "21.1" 1867 :version "21.1"
1869 :group 'basic-faces) 1868 :group 'basic-faces)
1870 1869
1871 1870
1872(defface tool-bar 1871(defface tool-bar
1873 '((((type x w32 mac) (class color)) 1872 '((t
1874 :box (:line-width 1 :style released-button) 1873 :box (:line-width 1 :style released-button)
1875 :background "grey75" :foreground "black") 1874 :foreground "black")
1875 (((type x w32 mac) (class color))
1876 :background "grey75")
1876 (((type x) (class mono)) 1877 (((type x) (class mono))
1877 :box (:line-width 1 :style released-button) 1878 :background "grey"))
1878 :background "grey" :foreground "black")
1879 (t
1880 ()))
1881 "Basic tool-bar face." 1879 "Basic tool-bar face."
1882 :version "21.1" 1880 :version "21.1"
1883 :group 'basic-faces) 1881 :group 'basic-faces)