From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: [sdl.web@gmail.com: Re: scroll-bar face gets changed in a new frame] Date: Sun, 11 Feb 2007 02:56:56 +0000 Message-ID: References: <878xfeoj3w.fsf@stupidchicken.com> <87abzqvrnb.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1171162610 1379 80.91.229.12 (11 Feb 2007 02:56:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Feb 2007 02:56:50 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 11 03:56:43 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HG4tO-0006UY-2z for ged-emacs-devel@m.gmane.org; Sun, 11 Feb 2007 03:56:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HG4tN-0007Oj-Pe for ged-emacs-devel@m.gmane.org; Sat, 10 Feb 2007 21:56:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HG4t9-0007NR-SW for emacs-devel@gnu.org; Sat, 10 Feb 2007 21:56:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HG4t7-0007Mq-P5 for emacs-devel@gnu.org; Sat, 10 Feb 2007 21:56:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HG4t7-0007Mf-DO for emacs-devel@gnu.org; Sat, 10 Feb 2007 21:56:25 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HG4t6-00083z-Nz for emacs-devel@gnu.org; Sat, 10 Feb 2007 21:56:25 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HG4t4-0002Np-Jh for emacs-devel@gnu.org; Sun, 11 Feb 2007 03:56:22 +0100 Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Feb 2007 03:56:22 +0100 Original-Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Feb 2007 03:56:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUzRVhbQj4eZqO6SjnT eWpxnMetm5b6/PmidmqrAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1F B9cBBwMLBfKABCMAAAFoSURBVCjPtZI9a8MwEIaFoc7aYDdelQMna0Em3tsSr0XUeE2Q6a22a+v+ fk8fSSBkbDUI6dHpfe9OEvRgiD+ApqKPJgJeB6iUUXWESjUe/ig38AJrhqqvaU2nTIXbNvOQ40fe qdry4kyGoVWsfCQalXpHnJGM01wjWdYbMlXNFdsZDO69m9aqNqxEJqTEgbM5OF7wlEfIoll1Ked4 LbM5X2EdILLokEdmI8z7g5cKED0cuTC930TYhy7ZDekkXVGw/L60TguJePPxcJF48lpsSUWEA/Ju jGFNgJOXc4Hz7TmAdBeu5Ve4AEjOi2/2jfd3cAJZ+IbNrvdjgBZY01b+HTuG3cLws6BJZqVOj/pp T0OqVwx3rFq+QmJwx3loK5JSLEhDIt62+mtC2C+SrAUxEbV6C6v2BRbd6pILBKFpepKZJHgGgrKF sptSUUoczpwg2pQ7ZH1tgs0ou/917mzz6Cs2//C978cv5l07L02orIEAAAAASUVORK5CYII= User-Agent: No Gnus v0.6, Emacs/22.0.93.6 (2007-02-08), Fedora 6 gnu/linux Cancel-Lock: sha1:CTFr0ZCgLILWCa50rS4rnpAl8EA= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:66251 Archived-At: --=-=-= Hello, Chong! On 2007-02-06, Chong Yidong said: > Chong Yidong writes: > >> The problem is in face-set-after-frame-default. The function >> merges in the X resources, then initializes attributes from frame >> parameters. However, if there is a scroll-bar X resource present, >> the call to make-face-x-resource-internal will chang the >> scroll-bar-* frame parameters in the process of changing the >> scroll-bar face. Therefore, any previously-applied frame >> parameters are lost. >> >> I think one fix is for face-set-after-frame-default to first >> construct a list of frame parameters to be applied (based on the >> new frame's frame-parameters and/or the face's value for new >> frames), then wait until after the call to >> make-face-x-resource-internal before applying these changes. > > I checked in the patch. It should be safe, but please keep an eye > out for any unexpected interaction between X resources and frame > parameters. Mode-line face has a similar bug. To reproduce: 1) emacs -Q -l ml 2) C-x 5 2 --=-=-= Content-Disposition: attachment; filename=ml Content-Description: ml ;;-*-Emacs-Lisp-*- (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(mode-line ((t (:background "#2e3436" :foreground "#eeeeec" :box (:line-width -1 :color "#555753")))))) --=-=-= regards, -- Leo (GPG Key: 9283AA3F) --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--