From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Miles Bader" Newsgroups: gmane.emacs.devel Subject: Re: bind faces? Date: Sun, 14 May 2006 23:46:39 +0900 Message-ID: References: <87mzdkrbte.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1147618020 375 80.91.229.2 (14 May 2006 14:47:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 May 2006 14:47:00 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 14 16:46:57 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 1FfHry-0000PW-F3 for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 16:46:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfHry-0003CK-22 for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 10:46:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FfHrn-0003CF-3L for emacs-devel@gnu.org; Sun, 14 May 2006 10:46:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FfHrl-0003At-JJ for emacs-devel@gnu.org; Sun, 14 May 2006 10:46:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FfHrl-0003Aq-Ec for emacs-devel@gnu.org; Sun, 14 May 2006 10:46:41 -0400 Original-Received: from [64.233.162.206] (helo=nz-out-0102.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FfHtx-0008R6-Ss for emacs-devel@gnu.org; Sun, 14 May 2006 10:48:57 -0400 Original-Received: by nz-out-0102.google.com with SMTP id z3so774538nzf for ; Sun, 14 May 2006 07:46:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=hJHnmTVH0pv9FBHdt5bQlJGBHZ6qPiGLdID4umN2d9Dc2tV4oVG/AS43zgTL7hTUO8YSyefkCn8D5pDHiPokKdZjvA34eVP9q/em1/LhHTSkm4Wim55JErCFCbsnJiVdVnMNv+yAFKtFN2KOwrqHng80XKQ2rPl/AuyWq5tS0cI= Original-Received: by 10.36.148.1 with SMTP id v1mr4771574nzd; Sun, 14 May 2006 07:46:39 -0700 (PDT) Original-Received: by 10.36.220.71 with HTTP; Sun, 14 May 2006 07:46:39 -0700 (PDT) Original-To: "Drew Adams" In-Reply-To: Content-Disposition: inline X-Google-Sender-Auth: 2a302d375f7e3727 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:54444 Archived-At: On 5/14/06, Drew Adams wrote: > I'm guessing that you mean that put-text-property would make chars 1-5 ha= ve > font-lock-string-face (which would be defined at that point to have a red > background), but those chars wouldn't get redisplayed until after the let= is > exited. If that's the case, then I'd say that users can use let to bind t= he > face to a new definition, and they can use put-text-property to add that > (newly defined) face to text, but they also need to (do something to) for= ce > redisplay inside the let, if they want to see the effect. Reading this, it's extremely unclear what you actually want to happen. Again: Give a real world example of a UI problem using your proposed feature. Not only will that help justify it, it will clarify what exactly you think it should do. (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) -Miles --=20 Do not taunt Happy Fun Ball.