aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-11-09 08:45:13 +0000
committerYAMAMOTO Mitsuharu2007-11-09 08:45:13 +0000
commit9d2185d10e3da9062672d96d3b59fcea31ff17ed (patch)
treeecf7ceb98e9d7ab08262051600151883fa80ed40
parent3f2623c37738dd634fd3fa1eb1581b134cbea70c (diff)
downloademacs-9d2185d10e3da9062672d96d3b59fcea31ff17ed.tar.gz
emacs-9d2185d10e3da9062672d96d3b59fcea31ff17ed.zip
(face-normalize-spec): Remove function.
(frame-set-background-mode): Undo last change.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/faces.el25
2 files changed, 6 insertions, 24 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 20f4f7480f6..983fb37c1d2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * faces.el (face-normalize-spec): Remove function.
4 (frame-set-background-mode): Undo last change.
5
12007-11-09 Juanma Barranquero <lekktu@gmail.com> 62007-11-09 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * files.el (enable-local-variables): Doc fix. 8 * files.el (enable-local-variables): Doc fix.
diff --git a/lisp/faces.el b/lisp/faces.el
index f22b79e8fc3..ceadb6f764f 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1505,28 +1505,6 @@ If there is neither a user setting nor a default for FACE, return nil."
1505 (get face 'saved-face) 1505 (get face 'saved-face)
1506 (face-default-spec face))) 1506 (face-default-spec face)))
1507 1507
1508(defsubst face-normalize-spec (spec)
1509 "Return a normalized face-spec of SPEC."
1510 (let (normalized-spec)
1511 (while spec
1512 (let ((attribute (car spec))
1513 (value (car (cdr spec))))
1514 ;; Support some old-style attribute names and values.
1515 (case attribute
1516 (:bold (setq attribute :weight value (if value 'bold 'normal)))
1517 (:italic (setq attribute :slant value (if value 'italic 'normal)))
1518 ((:foreground :background)
1519 ;; Compatibility with 20.x. Some bogus face specs seem to
1520 ;; exist containing things like `:foreground nil'.
1521 (if (null value) (setq value 'unspecified)))
1522 (t (unless (assq attribute face-x-resources)
1523 (setq attribute nil))))
1524 (when attribute
1525 (push attribute normalized-spec)
1526 (push value normalized-spec)))
1527 (setq spec (cdr (cdr spec))))
1528 (nreverse normalized-spec)))
1529
1530 1508
1531;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1509;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1532;;; Frame-type independent color support. 1510;;; Frame-type independent color support.
@@ -1669,8 +1647,7 @@ according to the `background-mode' and `display-type' frame parameters."
1669 ;; be unmodified, so we can avoid consing in the common case. 1647 ;; be unmodified, so we can avoid consing in the common case.
1670 (dolist (face (face-list)) 1648 (dolist (face (face-list))
1671 (when (not (face-spec-match-p face 1649 (when (not (face-spec-match-p face
1672 (face-normalize-spec 1650 (face-user-default-spec face)
1673 (face-user-default-spec face))
1674 (selected-frame))) 1651 (selected-frame)))
1675 (push face locally-modified-faces))) 1652 (push face locally-modified-faces)))
1676 ;; Now change to the new frame parameters 1653 ;; Now change to the new frame parameters