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: Bug in emacsbug.el Date: Wed, 06 Dec 2006 09:22:52 +0900 Message-ID: <87u00950v7.fsf@catnip.gol.com> References: <457597D8.9090401@student.lu.se> <87r6vez4l3.fsf@lrde.org> <4575FB91.5090405@student.lu.se> <874ps9zz5r.fsf@lrde.org> Reply-To: Miles Bader NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1165364623 1109 80.91.229.10 (6 Dec 2006 00:23:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Dec 2006 00:23:43 +0000 (UTC) Cc: Lennart Borgman , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 06 01:23:42 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 1GrkZT-000571-LQ for ged-emacs-devel@m.gmane.org; Wed, 06 Dec 2006 01:23:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GrkZT-0006cF-2Y for ged-emacs-devel@m.gmane.org; Tue, 05 Dec 2006 19:23:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GrkZ0-0006RW-UT for emacs-devel@gnu.org; Tue, 05 Dec 2006 19:23:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GrkYz-0006Qh-22 for emacs-devel@gnu.org; Tue, 05 Dec 2006 19:23:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GrkYy-0006QL-Gd for emacs-devel@gnu.org; Tue, 05 Dec 2006 19:23:04 -0500 Original-Received: from [203.216.5.72] (helo=smtp02.dentaku.gol.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GrkYx-00054Q-Bj; Tue, 05 Dec 2006 19:23:03 -0500 Original-Received: from 203-216-98-080.dsl.gol.ne.jp ([203.216.98.80] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1GrkYp-0000WN-AR; Wed, 06 Dec 2006 09:22:55 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 722D92F43; Wed, 6 Dec 2006 09:22:53 +0900 (JST) Original-To: michael@cadilhac.name (=?utf-8?Q?Micha=C3=ABl?= Cadilhac) System-Type: i686-pc-linux-gnu In-Reply-To: <874ps9zz5r.fsf@lrde.org> (=?utf-8?Q?Micha=C3=ABl?= Cadilhac's message of "Wed\, 06 Dec 2006 00\:44\:00 +0100") Original-Lines: 23 X-Abuse-Complaints: abuse@gol.com 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:63335 Archived-At: michael@cadilhac.name (Micha=C3=ABl Cadilhac) writes: >> (put-text-property pos (point) 'face 'highlight) >> >> They does not seem to work. > > Well, AFAICT, it works but mail-mode does not seem to allow it. If you > call text-mode after (compose-mail), the highlight will be there (for > whatever reason I don't have the time to investigate). They work, but font-lock (used by mail-mode/message-mode) overrides such manually-added face properties. I think the right fix is to change 'face to 'font-lock-face. That will make the highlighting work iff font-lock is enabled -- which it is by default. [If those highlights are deemed so important that they must be seen regardless of whether font-lcok is enabled, one could add _both_ 'face and 'font-lock-face properties.] -Miles --=20 `Cars give people wonderful freedom and increase their opportunities. But they also destroy the environment, to an extent so drastic that they kill all social life' (from _A Pattern Language_)