aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Dahl2014-04-12 17:25:53 +0300
committerEli Zaretskii2014-04-12 17:25:53 +0300
commit7f0f4c2576f8d70da3cb664e1e34ccfb78c0d4bc (patch)
tree16617ac4aa885a215996aa7bf04dab938b7da403
parente088b01d290f69613cc3a555535baa1ed1b3e578 (diff)
downloademacs-7f0f4c2576f8d70da3cb664e1e34ccfb78c0d4bc.tar.gz
emacs-7f0f4c2576f8d70da3cb664e1e34ccfb78c0d4bc.zip
Remove deprecated optional argument of make-face.
lisp/faces.el (make-face): Remove deprecated optional argument. The conditional application of X resources is handled directly by make-face-x-resource-internal since Emacs 24.4. (make-empty-face): Don't pass optional argument to make-face.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/faces.el11
2 files changed, 11 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0294155cad9..08591ac591f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12014-04-12 Matthias Dahl <matthias.dahl@binary-island.eu>
2
3 * faces.el (make-face): Remove deprecated optional argument. The
4 conditional application of X resources is handled directly by
5 make-face-x-resource-internal since Emacs 24.4.
6 (make-empty-face): Don't pass optional argument to make-face.
7
12014-04-11 Glenn Morris <rgm@gnu.org> 82014-04-11 Glenn Morris <rgm@gnu.org>
2 9
3 * Makefile.in (EMACSDATA, EMACSDOC, EMACSPATH): Unexport. (Bug#16429) 10 * Makefile.in (EMACSDATA, EMACSDOC, EMACSPATH): Unexport. (Bug#16429)
diff --git a/lisp/faces.el b/lisp/faces.el
index b2f353d089e..c2ef62f959f 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -149,13 +149,11 @@ REGISTRY, ALTERNATIVE1, ALTERNATIVE2, and etc."
149 "Return a list of all defined faces." 149 "Return a list of all defined faces."
150 (mapcar #'car face-new-frame-defaults)) 150 (mapcar #'car face-new-frame-defaults))
151 151
152(defun make-face (face &optional no-init-from-resources) 152(defun make-face (face)
153 "Define a new face with name FACE, a symbol. 153 "Define a new face with name FACE, a symbol.
154Do not call this directly from Lisp code; use `defface' instead. 154Do not call this directly from Lisp code; use `defface' instead.
155 155
156If NO-INIT-FROM-RESOURCES is non-nil, don't initialize face 156If FACE is already known as a face, leave it unmodified. Return FACE."
157attributes from X resources. If FACE is already known as a face,
158leave it unmodified. Return FACE."
159 (interactive (list (read-from-minibuffer 157 (interactive (list (read-from-minibuffer
160 "Make face: " nil nil t 'face-name-history))) 158 "Make face: " nil nil t 'face-name-history)))
161 (unless (facep face) 159 (unless (facep face)
@@ -166,8 +164,7 @@ leave it unmodified. Return FACE."
166 (when (fboundp 'facemenu-add-new-face) 164 (when (fboundp 'facemenu-add-new-face)
167 (facemenu-add-new-face face)) 165 (facemenu-add-new-face face))
168 ;; Define frame-local faces for all frames from X resources. 166 ;; Define frame-local faces for all frames from X resources.
169 (unless no-init-from-resources 167 (make-face-x-resource-internal face))
170 (make-face-x-resource-internal face)))
171 face) 168 face)
172 169
173(defun make-empty-face (face) 170(defun make-empty-face (face)
@@ -175,7 +172,7 @@ leave it unmodified. Return FACE."
175Do not call this directly from Lisp code; use `defface' instead." 172Do not call this directly from Lisp code; use `defface' instead."
176 (interactive (list (read-from-minibuffer 173 (interactive (list (read-from-minibuffer
177 "Make empty face: " nil nil t 'face-name-history))) 174 "Make empty face: " nil nil t 'face-name-history)))
178 (make-face face 'no-init-from-resources)) 175 (make-face face)
179 176
180(defun copy-face (old-face new-face &optional frame new-frame) 177(defun copy-face (old-face new-face &optional frame new-frame)
181 "Define a face named NEW-FACE, which is a copy of OLD-FACE. 178 "Define a face named NEW-FACE, which is a copy of OLD-FACE.