From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: 23.0.50; face-problems with multy-tty Date: Fri, 28 Sep 2007 15:04:52 -0400 Message-ID: References: <87ejhcmgp2.fsf@baldur.tsdh.de> <200709062116.l86LGWnO000262@oogie-boogie.ics.uci.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1191006513 12744 80.91.229.12 (28 Sep 2007 19:08:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2007 19:08:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 28 21:08:27 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 1IbLCM-0001CK-2x for ged-emacs-devel@m.gmane.org; Fri, 28 Sep 2007 21:08:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbLCI-0000VM-Jp for ged-emacs-devel@m.gmane.org; Fri, 28 Sep 2007 15:08:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbL9g-0006yM-1b for emacs-devel@gnu.org; Fri, 28 Sep 2007 15:05:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbL9f-0006xL-DH for emacs-devel@gnu.org; Fri, 28 Sep 2007 15:05:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbL9f-0006x3-0r for emacs-devel@gnu.org; Fri, 28 Sep 2007 15:05:39 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IbL9e-0000iq-J4 for emacs-devel@gnu.org; Fri, 28 Sep 2007 15:05:38 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IbL8u-000435-GO; Fri, 28 Sep 2007 15:04:52 -0400 In-reply-to: (bojohan+news@dd.chalmers.se) 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:80006 Archived-At: Does this patch fix it? *** faces.el 23 Sep 2007 05:07:20 -0400 1.377 --- faces.el 28 Sep 2007 10:55:28 -0400 *************** *** 1446,1453 **** FRAME is the frame whose frame-local face is set. FRAME nil means do it on all frames. See `defface' for information about SPEC. If SPEC is nil, do nothing." ! (if frame ! (let ((attrs (face-spec-choose spec frame))) (when spec (face-spec-reset-face face frame)) (while attrs --- 1446,1452 ---- FRAME is the frame whose frame-local face is set. FRAME nil means do it on all frames. See `defface' for information about SPEC. If SPEC is nil, do nothing." ! (let ((attrs (face-spec-choose spec frame))) (when spec (face-spec-reset-face face frame)) (while attrs *************** *** 1469,1474 **** --- 1468,1478 ---- ;; When we reset the face based on its spec, then it is unmodified ;; as far as Custom is concerned. (put (or (get face 'face-alias) face) 'face-modified nil) + ;; Clear all the new-frame defaults for this face. + (let ((facevec (cdr (assq face face-new-frame-defaults)))) + (dotimes (i (length facevec)) + (unless (= i 0) + (aset facevec i 'unspecified)))) ;; Set each frame according to the rules implied by SPEC. (dolist (frame (frame-list)) (face-spec-set face spec frame))))