diff options
| author | Chong Yidong | 2012-04-11 13:43:47 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-04-11 13:43:47 +0800 |
| commit | af23e2e5ecc6855a431f9d03f8732dc26579ff88 (patch) | |
| tree | d98b369c26cdba33649305222f64660946ba98dd | |
| parent | ab7ce8c15532d179579bb8a36e221b4d96840a2f (diff) | |
| download | emacs-af23e2e5ecc6855a431f9d03f8732dc26579ff88.tar.gz emacs-af23e2e5ecc6855a431f9d03f8732dc26579ff88.zip | |
* startup.el (command-line): Remove support for font-lock-face-attributes.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/startup.el | 32 |
2 files changed, 5 insertions, 32 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 75ea616e0b5..205d6d0be99 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-04-11 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * startup.el (command-line): Remove support for long-obsolete | ||
| 4 | variable font-lock-face-attributes. | ||
| 5 | |||
| 1 | 2012-04-11 Glenn Morris <rgm@gnu.org> | 6 | 2012-04-11 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * vc/vc-bzr.el (vc-bzr-status): Avoid condition-case-unless-debug. | 8 | * vc/vc-bzr.el (vc-bzr-status): Avoid condition-case-unless-debug. |
diff --git a/lisp/startup.el b/lisp/startup.el index 518b53ccdf1..b5dae92517a 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1169,38 +1169,6 @@ the `--debug-init' option to view a complete error backtrace." | |||
| 1169 | (or mail-host-address | 1169 | (or mail-host-address |
| 1170 | (system-name)))))) | 1170 | (system-name)))))) |
| 1171 | 1171 | ||
| 1172 | ;; Originally face attributes were specified via | ||
| 1173 | ;; `font-lock-face-attributes'. Users then changed the default | ||
| 1174 | ;; face attributes by setting that variable. However, we try and | ||
| 1175 | ;; be back-compatible and respect its value if set except for | ||
| 1176 | ;; faces where M-x customize has been used to save changes for the | ||
| 1177 | ;; face. | ||
| 1178 | (when (boundp 'font-lock-face-attributes) | ||
| 1179 | (let ((face-attributes font-lock-face-attributes)) | ||
| 1180 | (while face-attributes | ||
| 1181 | (let* ((face-attribute (pop face-attributes)) | ||
| 1182 | (face (car face-attribute))) | ||
| 1183 | ;; Rustle up a `defface' SPEC from a | ||
| 1184 | ;; `font-lock-face-attributes' entry. | ||
| 1185 | (unless (get face 'saved-face) | ||
| 1186 | (let ((foreground (nth 1 face-attribute)) | ||
| 1187 | (background (nth 2 face-attribute)) | ||
| 1188 | (bold-p (nth 3 face-attribute)) | ||
| 1189 | (italic-p (nth 4 face-attribute)) | ||
| 1190 | (underline-p (nth 5 face-attribute)) | ||
| 1191 | face-spec) | ||
| 1192 | (when foreground | ||
| 1193 | (setq face-spec (cons ':foreground (cons foreground face-spec)))) | ||
| 1194 | (when background | ||
| 1195 | (setq face-spec (cons ':background (cons background face-spec)))) | ||
| 1196 | (when bold-p | ||
| 1197 | (setq face-spec (append '(:weight bold) face-spec))) | ||
| 1198 | (when italic-p | ||
| 1199 | (setq face-spec (append '(:slant italic) face-spec))) | ||
| 1200 | (when underline-p | ||
| 1201 | (setq face-spec (append '(:underline t) face-spec))) | ||
| 1202 | (face-spec-set face (list (list t face-spec)) nil))))))) | ||
| 1203 | |||
| 1204 | ;; If parameter have been changed in the init file which influence | 1172 | ;; If parameter have been changed in the init file which influence |
| 1205 | ;; face realization, clear the face cache so that new faces will | 1173 | ;; face realization, clear the face cache so that new faces will |
| 1206 | ;; be realized. | 1174 | ;; be realized. |