From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: bind faces? Date: Sun, 14 May 2006 09:13:15 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1147623293 14408 80.91.229.2 (14 May 2006 16:14:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 May 2006 16:14:53 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 14 18:14:51 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 1FfJF2-0003fW-7S for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 18:14:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfJF1-0006a0-Dt for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 12:14:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfJDn-0004xQ-0N for emacs-devel@gnu.org; Sun, 14 May 2006 12:13:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfJDj-0004sM-NN for emacs-devel@gnu.org; Sun, 14 May 2006 12:13:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfJDj-0004sA-Hz for emacs-devel@gnu.org; Sun, 14 May 2006 12:13:27 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FfJFx-00079B-3A for emacs-devel@gnu.org; Sun, 14 May 2006 12:15:45 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k4EGDNed018344 for ; Sun, 14 May 2006 11:13:23 -0500 Original-Received: from dradamslap (dhcp-amer-csvpn-gw1-141-144-64-240.vpn.oracle.com [141.144.64.240]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k4EGDKmp032173 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sun, 14 May 2006 10:13:22 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:54450 Archived-At: The example I gave causes the given face's display to change _during the binding_ -- I used a call to read-string in my example because that causes redisplay and user interaction within the binding; the display of the given face changes back again after the binding ceases to be active That's what I was saying also: the user (programmer) can do something (read-string is one possibility) to force redisplay within the scope of the binding. And the "face changes back again after the binding ceases to be active". The example I gave used `force-mode-line-update' to cause redisplay. I also mentioned (sit-for 0). You used `read-string'. There are many ways to cause redisplay, I believe. We seem to be saying the same thing about this aspect - you about what your feature does and I about what my requested feature would do. 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. The user would be responsible for doing something to cause redisplay, or else the face change wouldn't be manifested visually. I have no problem with the user taking responsibility for redisplay. Unless I misunderstand, that is no different from what happens now when you assign (not bind) new properties to a face and then put that face on some text. Without redisplay the change is not seen. Again, I'm no expert on faces and the display process - correct me if I'm wrong on this. I'm not saying that your implementation wouldn't satisfy my request. If it does, and if it's the best implementation for such a feature, then I'm all for it. I am not proposing any particular implementation, and I am not saying anything about your implementation. I didn't follow the thread about face remapping. If my request is nothing new, and this question has already been decided, then ignore my request.