From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bind faces? Date: Sun, 14 May 2006 13:49:38 -0400 Message-ID: <877j4oqz4t.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147629001 29925 80.91.229.2 (14 May 2006 17:50:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 May 2006 17:50:01 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 14 19:49:58 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FfKj6-00007y-HJ for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 19:49:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfKj5-0001xE-Mz for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 13:49:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfKiv-0001x7-G4 for emacs-devel@gnu.org; Sun, 14 May 2006 13:49:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfKiu-0001we-Sa for emacs-devel@gnu.org; Sun, 14 May 2006 13:49:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfKiu-0001wb-N7 for emacs-devel@gnu.org; Sun, 14 May 2006 13:49:44 -0400 Original-Received: from [209.226.175.54] (helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FfKl9-0005qm-3G for emacs-devel@gnu.org; Sun, 14 May 2006 13:52:03 -0400 Original-Received: from alfajor ([70.53.192.152]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060514174943.FWUA20622.tomts10-srv.bellnexxia.net@alfajor>; Sun, 14 May 2006 13:49:43 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 4E54DD7754; Sun, 14 May 2006 13:49:38 -0400 (EDT) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Sun, 14 May 2006 09:13:15 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:54451 Archived-At: > If I understand Stefan's point, it is that redisplay does not automatically > occur just because you've made a face binding and changed some text > properties. Yes, Emacs does redisplay automatically, but not while executing Lisp. Only when all execution is done and the control comes back to the toplevel. So in my example, the redisplay takes place after the `let' is finished. But even if you force redisplay within the `let', that doesn't mean that it won't be done again later (maybe because you (de)iconify windows, ...). In that case, would you want the subsequent auto-redisplay to take the let-face into account or is it OK if it reverts the display to the default definition of the face? Stefan