diff options
| author | Kenichi Handa | 2009-05-19 01:28:54 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-05-19 01:28:54 +0000 |
| commit | 3a92c0959382593b23f02e71b5033f3f7b29f019 (patch) | |
| tree | 7be470ec7f398317df568a94151fa37596690822 | |
| parent | 1c6d1051f17696737000032498c108cf9d0fd114 (diff) | |
| download | emacs-3a92c0959382593b23f02e71b5033f3f7b29f019.tar.gz emacs-3a92c0959382593b23f02e71b5033f3f7b29f019.zip | |
(set-face-attribute): Fix handling of :family "FOUNDRY-FAMILY".
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/faces.el | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bef81745c1b..1ce5defa545 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-05-19 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * faces.el (set-face-attribute): Fix handling of :family | ||
| 4 | "FOUNDRY-FAMILY". | ||
| 5 | |||
| 1 | 2009-05-18 Chong Yidong <cyd@stupidchicken.com> | 6 | 2009-05-18 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * register.el (register-alist): Doc fix (Bug#3311). | 8 | * register.el (register-alist): Doc fix (Bug#3311). |
diff --git a/lisp/faces.el b/lisp/faces.el index 778a363b170..57d6bd7dcb3 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -725,8 +725,8 @@ like an underlying face would be, with higher priority than underlying faces." | |||
| 725 | (when (and (stringp family) | 725 | (when (and (stringp family) |
| 726 | (string-match "\\([^-]*\\)-\\([^-]*\\)" family)) | 726 | (string-match "\\([^-]*\\)-\\([^-]*\\)" family)) |
| 727 | (unless foundry | 727 | (unless foundry |
| 728 | (setq foundry (match-string 2 family))) | 728 | (setq foundry (match-string 1 family))) |
| 729 | (setq family (match-string 1 family))) | 729 | (setq family (match-string 2 family))) |
| 730 | (when (stringp family) | 730 | (when (stringp family) |
| 731 | (internal-set-lisp-face-attribute face :family (purecopy family) | 731 | (internal-set-lisp-face-attribute face :family (purecopy family) |
| 732 | where)) | 732 | where)) |