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: "Invalid face reference" msg logged to *Messages* (but no error) Date: Tue, 05 May 2009 21:25:21 -0400 Message-ID: References: <002c01c9cdb2$ec215510$0200a8c0@us.oracle.com> <006d01c9cddf$622ae830$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241573144 2275 80.91.229.12 (6 May 2009 01:25:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 May 2009 01:25:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 06 03:25:34 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M1Vt6-0007Wl-73 for ged-emacs-devel@m.gmane.org; Wed, 06 May 2009 03:25:32 +0200 Original-Received: from localhost ([127.0.0.1]:50979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1Vt5-0003In-8O for ged-emacs-devel@m.gmane.org; Tue, 05 May 2009 21:25:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1Vt0-0003IK-TR for emacs-devel@gnu.org; Tue, 05 May 2009 21:25:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1Vsw-0003Dv-Ct for emacs-devel@gnu.org; Tue, 05 May 2009 21:25:26 -0400 Original-Received: from [199.232.76.173] (port=54162 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1Vsw-0003Ds-7c for emacs-devel@gnu.org; Tue, 05 May 2009 21:25:22 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:59159) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1Vsv-0004Fc-Uj for emacs-devel@gnu.org; Tue, 05 May 2009 21:25:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUFAMuDAErO+IYe/2dsb2JhbACBUM4dhAEFhU4 X-IronPort-AV: E=Sophos;i="4.40,300,1238990400"; d="scan'208";a="38047885" Original-Received: from 206-248-134-30.dsl.teksavvy.com (HELO ceviche.home) ([206.248.134.30]) by ironport2-out.teksavvy.com with ESMTP; 05 May 2009 21:25:21 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 1C026B523F; Tue, 5 May 2009 21:25:21 -0400 (EDT) In-Reply-To: <006d01c9cddf$622ae830$0200a8c0@us.oracle.com> (Drew Adams's message of "Tue, 5 May 2009 17:12:44 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:110698 Archived-At: > (add-text-properties 99 111 (face (quote some-face))) This code isn't correct, because it calls `face' as a function. So I guess you mean (add-text-properties 99 111 '(face (quote some-face))) in which case the fix is to use (add-text-properties 99 111 '(face some-face)) aka (put-text-property 99 111 'face 'some-face) > N is incremented thereafter, with seemingly each event. My guess is > that it is redisplay that is logging/updating the message - it doesn't > seem to be related to the code being evaluated. The add-text-property > call seems only to be what initiates it. Yes, the message comes from redisplay. Stefan