aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-12-04 14:18:45 +0000
committerRichard M. Stallman1994-12-04 14:18:45 +0000
commitfeaad827a667767c671ba7b95ad492e200a7d455 (patch)
treecd5813690911aab3e2014e7cd275dab9f75f01e4
parent9b0bf2b6bdab97f2f9e01da7335e18c3945c5b5c (diff)
downloademacs-feaad827a667767c671ba7b95ad492e200a7d455.tar.gz
emacs-feaad827a667767c671ba7b95ad492e200a7d455.zip
(face-name, face-id, face-foreground, face-background)
(face-font, face-stipple, face-underline-p): Change defsubst to defun. (set-face-font, set-face-foreground, set-face-background) (set-face-stipple, set-face-underline-p): Change defsubst to defun.
-rw-r--r--lisp/faces.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index a25d3c546f4..cb5b6af7d97 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -39,15 +39,15 @@
39 (setq (, face) (signal 'wrong-type-argument (list 'internal-facep (, face))))))) 39 (setq (, face) (signal 'wrong-type-argument (list 'internal-facep (, face)))))))
40 40
41;;; Accessors. 41;;; Accessors.
42(defsubst face-name (face) 42(defun face-name (face)
43 "Return the name of face FACE." 43 "Return the name of face FACE."
44 (aref (internal-get-face face) 1)) 44 (aref (internal-get-face face) 1))
45 45
46(defsubst face-id (face) 46(defun face-id (face)
47 "Return the internal ID number of face FACE." 47 "Return the internal ID number of face FACE."
48 (aref (internal-get-face face) 2)) 48 (aref (internal-get-face face) 2))
49 49
50(defsubst face-font (face &optional frame) 50(defun face-font (face &optional frame)
51 "Return the font name of face FACE, or nil if it is unspecified. 51 "Return the font name of face FACE, or nil if it is unspecified.
52If the optional argument FRAME is given, report on face FACE in that frame. 52If the optional argument FRAME is given, report on face FACE in that frame.
53If FRAME is t, report on the defaults for face FACE (for new frames). 53If FRAME is t, report on the defaults for face FACE (for new frames).
@@ -56,21 +56,21 @@ If FRAME is t, report on the defaults for face FACE (for new frames).
56If FRAME is omitted or nil, use the selected frame." 56If FRAME is omitted or nil, use the selected frame."
57 (aref (internal-get-face face frame) 3)) 57 (aref (internal-get-face face frame) 3))
58 58
59(defsubst face-foreground (face &optional frame) 59(defun face-foreground (face &optional frame)
60 "Return the foreground color name of face FACE, or nil if unspecified. 60 "Return the foreground color name of face FACE, or nil if unspecified.
61If the optional argument FRAME is given, report on face FACE in that frame. 61If the optional argument FRAME is given, report on face FACE in that frame.
62If FRAME is t, report on the defaults for face FACE (for new frames). 62If FRAME is t, report on the defaults for face FACE (for new frames).
63If FRAME is omitted or nil, use the selected frame." 63If FRAME is omitted or nil, use the selected frame."
64 (aref (internal-get-face face frame) 4)) 64 (aref (internal-get-face face frame) 4))
65 65
66(defsubst face-background (face &optional frame) 66(defun face-background (face &optional frame)
67 "Return the background color name of face FACE, or nil if unspecified. 67 "Return the background color name of face FACE, or nil if unspecified.
68If the optional argument FRAME is given, report on face FACE in that frame. 68If the optional argument FRAME is given, report on face FACE in that frame.
69If FRAME is t, report on the defaults for face FACE (for new frames). 69If FRAME is t, report on the defaults for face FACE (for new frames).
70If FRAME is omitted or nil, use the selected frame." 70If FRAME is omitted or nil, use the selected frame."
71 (aref (internal-get-face face frame) 5)) 71 (aref (internal-get-face face frame) 5))
72 72
73(defsubst face-stipple (face &optional frame) 73(defun face-stipple (face &optional frame)
74 "Return the stipple pixmap name of face FACE, or nil if unspecified. 74 "Return the stipple pixmap name of face FACE, or nil if unspecified.
75If the optional argument FRAME is given, report on face FACE in that frame. 75If the optional argument FRAME is given, report on face FACE in that frame.
76If FRAME is t, report on the defaults for face FACE (for new frames). 76If FRAME is t, report on the defaults for face FACE (for new frames).
@@ -79,7 +79,7 @@ If FRAME is omitted or nil, use the selected frame."
79 79
80(defalias 'face-background-pixmap 'face-stipple) 80(defalias 'face-background-pixmap 'face-stipple)
81 81
82(defsubst face-underline-p (face &optional frame) 82(defun face-underline-p (face &optional frame)
83 "Return t if face FACE is underlined. 83 "Return t if face FACE is underlined.
84If the optional argument FRAME is given, report on face FACE in that frame. 84If the optional argument FRAME is given, report on face FACE in that frame.
85If FRAME is t, report on the defaults for face FACE (for new frames). 85If FRAME is t, report on the defaults for face FACE (for new frames).
@@ -89,7 +89,7 @@ If FRAME is omitted or nil, use the selected frame."
89 89
90;;; Mutators. 90;;; Mutators.
91 91
92(defsubst set-face-font (face font &optional frame) 92(defun set-face-font (face font &optional frame)
93 "Change the font of face FACE to FONT (a string). 93 "Change the font of face FACE to FONT (a string).
94If the optional FRAME argument is provided, change only 94If the optional FRAME argument is provided, change only
95in that frame; otherwise change each frame." 95in that frame; otherwise change each frame."
@@ -97,14 +97,14 @@ in that frame; otherwise change each frame."
97 (if (stringp font) (setq font (x-resolve-font-name font face frame))) 97 (if (stringp font) (setq font (x-resolve-font-name font face frame)))
98 (internal-set-face-1 face 'font font 3 frame)) 98 (internal-set-face-1 face 'font font 3 frame))
99 99
100(defsubst set-face-foreground (face color &optional frame) 100(defun set-face-foreground (face color &optional frame)
101 "Change the foreground color of face FACE to COLOR (a string). 101 "Change the foreground color of face FACE to COLOR (a string).
102If the optional FRAME argument is provided, change only 102If the optional FRAME argument is provided, change only
103in that frame; otherwise change each frame." 103in that frame; otherwise change each frame."
104 (interactive (internal-face-interactive "foreground")) 104 (interactive (internal-face-interactive "foreground"))
105 (internal-set-face-1 face 'foreground color 4 frame)) 105 (internal-set-face-1 face 'foreground color 4 frame))
106 106
107(defsubst set-face-background (face color &optional frame) 107(defun set-face-background (face color &optional frame)
108 "Change the background color of face FACE to COLOR (a string). 108 "Change the background color of face FACE to COLOR (a string).
109If the optional FRAME argument is provided, change only 109If the optional FRAME argument is provided, change only
110in that frame; otherwise change each frame." 110in that frame; otherwise change each frame."
@@ -118,7 +118,7 @@ in that frame; otherwise change each frame."
118 (set-face-stipple face color frame) 118 (set-face-stipple face color frame)
119 (internal-set-face-1 face 'background color 5 frame))) 119 (internal-set-face-1 face 'background color 5 frame)))
120 120
121(defsubst set-face-stipple (face name &optional frame) 121(defun set-face-stipple (face name &optional frame)
122 "Change the stipple pixmap of face FACE to PIXMAP. 122 "Change the stipple pixmap of face FACE to PIXMAP.
123PIXMAP should be a string, the name of a file of pixmap data. 123PIXMAP should be a string, the name of a file of pixmap data.
124The directories listed in the `x-bitmap-file-path' variable are searched. 124The directories listed in the `x-bitmap-file-path' variable are searched.
@@ -134,7 +134,7 @@ in that frame; otherwise change each frame."
134 134
135(defalias 'set-face-background-pixmap 'set-face-stipple) 135(defalias 'set-face-background-pixmap 'set-face-stipple)
136 136
137(defsubst set-face-underline-p (face underline-p &optional frame) 137(defun set-face-underline-p (face underline-p &optional frame)
138 "Specify whether face FACE is underlined. (Yes if UNDERLINE-P is non-nil.) 138 "Specify whether face FACE is underlined. (Yes if UNDERLINE-P is non-nil.)
139If the optional FRAME argument is provided, change only 139If the optional FRAME argument is provided, change only
140in that frame; otherwise change each frame." 140in that frame; otherwise change each frame."