From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Changing mode-line-inactive Date: Tue, 12 Feb 2002 08:24:39 -0700 (MST) Message-ID: <200202121524.g1CFOdP07412@aztec.santafe.edu> References: Reply-To: rms@gnu.org NNTP-Posting-Host: quimby2.netfonds.no X-Trace: quimby2.netfonds.no 1013528281 11789 195.204.10.66 (12 Feb 2002 15:38:01 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 12 Feb 2002 15:38:01 GMT Cc: keichwa@gmx.net, emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16af0K-000343-00 for ; Tue, 12 Feb 2002 16:38:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16aepw-0005Uv-00; Tue, 12 Feb 2002 10:27:16 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16aenR-0005Fl-00; Tue, 12 Feb 2002 10:24:42 -0500 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.9.3/8.9.3) with ESMTP id IAA26901; Tue, 12 Feb 2002 08:24:39 -0700 (MST) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g1CFOdP07412; Tue, 12 Feb 2002 08:24:39 -0700 (MST) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: eliz@is.elta.co.il In-reply-to: (message from Eli Zaretskii on Mon, 11 Feb 2002 08:45:25 +0200 (IST)) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1038 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1038 I think this change should arrange to update display immediately whenever face attributes are changed. Does it work? *** xfaces.c.~1.249.~ Sat Feb 9 04:06:22 2002 --- xfaces.c Tue Feb 12 06:54:47 2002 *************** *** 3687,3692 **** --- 3687,3700 ---- else lface = global_lface; + /* Changing a named face means that all realized faces depending on + that face are invalid. Since we cannot tell which realized faces + depend on the face, make sure they are all removed. This is done + by incrementing face_change_count. The next call to + init_iterator will then free realized faces. */ + ++face_change_count; + ++windows_or_buffers_changed; + xassert (LFACEP (lface)); check_lface (lface); return lface; *************** *** 3754,3759 **** --- 3762,3775 ---- bcopy (XVECTOR (lface)->contents, XVECTOR (copy)->contents, LFACE_VECTOR_SIZE * sizeof (Lisp_Object)); + /* Changing a named face means that all realized faces depending on + that face are invalid. Since we cannot tell which realized faces + depend on the face, make sure they are all removed. This is done + by incrementing face_change_count. The next call to + init_iterator will then free realized faces. */ + ++face_change_count; + ++windows_or_buffers_changed; + return to; } *************** *** 4263,4268 **** --- 4279,4292 ---- face-set-after-frame-defaults. */ if (NILP (f->face_alist)) return; + + /* Changing a named face means that all realized faces depending on + that face are invalid. Since we cannot tell which realized faces + depend on the face, make sure they are all removed. This is done + by incrementing face_change_count. The next call to + init_iterator will then free realized faces. */ + ++face_change_count; + ++windows_or_buffers_changed; if (EQ (param, Qforeground_color)) { _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel