]> code.delx.au - gnu-emacs/commitdiff
Deprecate optional argument of make-face.
authorMatthias Dahl <matthias.dahl@binary-island.eu>
Sat, 12 Apr 2014 14:22:55 +0000 (17:22 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 12 Apr 2014 14:22:55 +0000 (17:22 +0300)
 lisp/faces.el (make-face): Deprecate optional argument as it is no
 longer needed/used since the conditional X resources handling
 has been pushed down to make-face-x-resource-internal itself.
 (make-empty-face): Don't pass optional argument to make-face.

lisp/ChangeLog
lisp/faces.el

index 78865ed8c489c8a3dd3ad3d4c20a36df1df12f46..5fd81d00e2b7ed44a08906aaca1200c7f1c01515 100644 (file)
@@ -1,3 +1,10 @@
+2014-04-12  Matthias Dahl  <matthias.dahl@binary-island.eu>
+
+       * faces.el (make-face): Deprecate optional argument as it is no
+       longer needed/used since the conditional X resources handling
+       has been pushed down to make-face-x-resource-internal itself.
+       (make-empty-face): Don't pass optional argument to make-face.
+
 2014-04-12  Eli Zaretskii  <eliz@gnu.org>
 
        * international/characters.el <standard-case-table>: Add entries
index e4d8a35ac68c691c5e249f0ca7e1d6edc57cba3c..88b87486f7c77c782b4938dcb2e5c0d5e685edbe 100644 (file)
@@ -133,9 +133,11 @@ REGISTRY, ALTERNATIVE1, ALTERNATIVE2, and etc."
   "Define a new face with name FACE, a symbol.
 Do not call this directly from Lisp code; use `defface' instead.
 
-If NO-INIT-FROM-RESOURCES is non-nil, don't initialize face
-attributes from X resources.  If FACE is already known as a face,
-leave it unmodified.  Return FACE."
+If FACE is already known as a face, leave it unmodified.  Return FACE.
+
+NO-INIT-FROM-RESOURCES has been deprecated and is no longer used
+and will go away.  Handling of conditional X resources application
+has been pushed down to make-x-resource-internal itself."
   (interactive (list (read-from-minibuffer
                      "Make face: " nil nil t 'face-name-history)))
   (unless (facep face)
@@ -146,16 +148,20 @@ leave it unmodified.  Return FACE."
     (when (fboundp 'facemenu-add-new-face)
       (facemenu-add-new-face face))
     ;; Define frame-local faces for all frames from X resources.
-    (unless no-init-from-resources
-      (make-face-x-resource-internal face)))
+    (make-face-x-resource-internal face))
   face)
 
+;; Handling of whether to apply X resources or not, has been pushed down
+;; to make-face-x-resource-internal itself, thus the optional arg is no
+;; longer evaluated at all and going away.
+(set-advertised-calling-convention 'make-face '(face) "24.4")
+
 (defun make-empty-face (face)
   "Define a new, empty face with name FACE.
 Do not call this directly from Lisp code; use `defface' instead."
   (interactive (list (read-from-minibuffer
                      "Make empty face: " nil nil t 'face-name-history)))
-  (make-face face 'no-init-from-resources))
+  (make-face face))
 
 (defun copy-face (old-face new-face &optional frame new-frame)
   "Define a face named NEW-FACE, which is a copy of OLD-FACE.