[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23.0.50; face-problems with multy-tty
From: |
Johan Bockgård |
Subject: |
Re: 23.0.50; face-problems with multy-tty |
Date: |
Fri, 07 Sep 2007 02:59:32 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) |
Dan Nicolaescu <address@hidden> writes:
> Here a simplified test case:
>
> set TERM to vt100 (so that the frame background is considered to be 'dark by
> default)
>
> Save this as test.el:
> (custom-set-faces
> '(font-lock-string-face ((((class color) (min-colors 88) (background light))
> (:foreground "RosyBrown4")))))
>
> run:
> emacs -nw -q -l test.el
> M-x server-start RET
>
> Now run:
>
> emacsclient
>
> look in the emacsclient frame at font-lock-string face, the foreground
> will be nil.
>
> Somehow the faces are not initialized correctly. My suspicion is that
> when the faces are computed the background mode might no be set
> correctly.
>
> Can somebody that knows how these things are supposed to work take a
> look ?
Is this the right fix?
--- cus-face.el 29 Aug 2007 16:12:24 +0200 1.48
+++ cus-face.el 07 Sep 2007 02:55:49 +0200
@@ -342,7 +342,8 @@
(unless (facep face)
(make-empty-face face))
(put face 'face-comment comment)
- (face-spec-set face spec))
+ (dolist (frame (frame-list))
+ (face-spec-set face spec frame)))
(setq args (cdr args)))
;; Old format, a plist of FACE SPEC pairs.
(let ((face (nth 0 args))
--
Johan Bockgård
- 23.0.50; face-problems with multy-tty, Tassilo Horn, 2007/09/06
- Re: 23.0.50; face-problems with multy-tty, Dan Nicolaescu, 2007/09/06
- Re: 23.0.50; face-problems with multy-tty, Dan Nicolaescu, 2007/09/06
- Re: 23.0.50; face-problems with multy-tty,
Johan Bockgård <=
- Re: 23.0.50; face-problems with multy-tty, Tassilo Horn, 2007/09/07
- Re: 23.0.50; face-problems with multy-tty, Johan Bockgård, 2007/09/07
- Re: 23.0.50; face-problems with multy-tty, Tassilo Horn, 2007/09/07
- Re: 23.0.50; face-problems with multy-tty, Johan Bockgård, 2007/09/07
- Re: 23.0.50; face-problems with multy-tty, Tassilo Horn, 2007/09/07
- Re: 23.0.50; face-problems with multy-tty, Romain Francoise, 2007/09/07
- Re: 23.0.50; face-problems with multy-tty, Johan Bockgård, 2007/09/07
- Re: 23.0.50; face-problems with multy-tty, Romain Francoise, 2007/09/07
- Re: 23.0.50; face-problems with multy-tty, Richard Stallman, 2007/09/08
- Re: 23.0.50; face-problems with multy-tty, Tassilo Horn, 2007/09/08