From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johannes Weiner Newsgroups: gmane.emacs.devel Subject: Re: [BUG] Dark/bright face detection problem Date: Sat, 29 Sep 2007 23:20:19 +0200 Message-ID: <20070929212019.GA11774@saeurebad.de> References: <20070928143833.GC26384@saeurebad.de> <20070928154629.GA8089@saeurebad.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1243009541==" X-Trace: sea.gmane.org 1191100843 21794 80.91.229.12 (29 Sep 2007 21:20:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Sep 2007 21:20:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 29 23:20:39 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 1Ibjjr-0001Qz-9K for ged-emacs-devel@m.gmane.org; Sat, 29 Sep 2007 23:20:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ibjjn-0003Am-FD for ged-emacs-devel@m.gmane.org; Sat, 29 Sep 2007 17:20:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ibjjj-00037f-13 for emacs-devel@gnu.org; Sat, 29 Sep 2007 17:20:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ibjjh-00035x-AD for emacs-devel@gnu.org; Sat, 29 Sep 2007 17:20:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ibjjh-00035j-2u for emacs-devel@gnu.org; Sat, 29 Sep 2007 17:20:29 -0400 Original-Received: from saeurebad.de ([85.214.36.134]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ibjjd-0002S4-Pk; Sat, 29 Sep 2007 17:20:26 -0400 Original-Received: by saeurebad.de (Postfix, from userid 1000) id 73E702F05A0; Sat, 29 Sep 2007 23:20:19 +0200 (CEST) Mail-Followup-To: Richard Stallman , emacs-devel@gnu.org In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-11) 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:80026 Archived-At: --===============1243009541== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Sat, Sep 29, 2007 at 12:10:55PM -0400, Richard Stallman wrote: > frame-set-background-mode should be called by setting the background colo= r, > and it ought to recompute all faces that are affected by the background m= ode. >=20 > Can you please investigate what happens inside frame-set-background-mode > so as to figure out the cause of this bug? I think I have found the problem, please correct me if I am wrong: Starting at lisp/faces.el, around the comment in line 1674. It says that a= ll faces that should be NOT updated are collected (negative list, presuming th= at most faces should be updated and just to collect the ones that do not). Now, I can not tell why the following happens since I am not into it very deeply, but almost all faces, excluding about 4 here, are pushed to this locally-modified list, which won't get updated through `face-spec-set' in l= ine 1695. The logic seems to be reversed; all faces that should get updated are left untouched and vice versa. `locally-modified' contains exactly the opposite set of items it should contain. I will dig deeper into it, but for perhaps this already helps someone who knows the code better. Hannes --=20 3BD8 AF56 11AF 205C 9DB6 B10F 76F1 0634 71A4 DCA0 --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFG/sGTdvEGNHGk3KARAuwQAJ0XjGddKrxpevhZxVQPvl3ErwqCTgCeKJX0 N+Hva37NZoVWl4ANTcbhxpM= =nBfl -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G-- --===============1243009541== 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 --===============1243009541==--