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: [mmaug@yahoo.com: font-lock applied to comint prompts] Date: Wed, 20 Dec 2006 17:09:07 -0500 Message-ID: References: <20061219063111.16365.qmail@web62502.mail.re1.yahoo.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1166652590 1047 80.91.229.10 (20 Dec 2006 22:09:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Dec 2006 22:09:50 +0000 (UTC) Cc: rms@gnu.org, Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 20 23:09:47 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gx9cz-0008Oi-Cj for ged-emacs-devel@m.gmane.org; Wed, 20 Dec 2006 23:09:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gx9cy-00037A-OK for ged-emacs-devel@m.gmane.org; Wed, 20 Dec 2006 17:09:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gx9ce-0002yy-2N for emacs-devel@gnu.org; Wed, 20 Dec 2006 17:09:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gx9cd-0002xr-2G for Emacs-devel@gnu.org; Wed, 20 Dec 2006 17:09:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gx9cc-0002xQ-PI for Emacs-devel@gnu.org; Wed, 20 Dec 2006 17:09:10 -0500 Original-Received: from [83.228.193.151] (helo=alfajor.home) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gx9ca-00062A-Mb; Wed, 20 Dec 2006 17:09:09 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id DC3FC1C621; Wed, 20 Dec 2006 17:09:07 -0500 (EST) Original-To: Michael Mauger In-Reply-To: <20061219063111.16365.qmail@web62502.mail.re1.yahoo.com> (Michael Mauger's message of "Mon\, 18 Dec 2006 22\:31\:11 -0800 \(PST\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (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:64029 Archived-At: >> If you can put the `face' property on the overlay >> only when the text it is over has a `face' property, >> then I think it will be correct, because when Font-Lock is off >> it won't do anything. Could you do it that way? > I tried this and it's no-go. The face due to font-lock isn't getting > applied until after the prompt is processed in the output filter. I'm far > beyond my expertise here so I'll drop this. Why not do the opposite: check the presence of a font-lock-face char property before returning a non-nil face in font-lock-keywords. Stefan