From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#4835: 23.1; Improper `Invalid face reference' messages. Performance degraded. Date: Sat, 31 Oct 2009 17:04:16 -0700 Message-ID: References: <87ws2bfkyt.fsf@stupidchicken.com><87iqdvmk1j.fsf@stupidchicken.com><6ABF3195EEF74EB780205758FA68D61B@us.oracle.com><87pr83th6b.fsf@stupidchicken.com><8F2C3E771C104B03B9926AB1AAFD02A5@us.oracle.com><87zl7743tj.fsf@stupidchicken.com><5101E088BA774F93BCA9BA30DF7C826F@us.oracle.com> <877hubku5o.fsf@stupidchicken.com> Reply-To: Drew Adams , 4835@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1257035255 27997 80.91.229.12 (1 Nov 2009 00:27:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Nov 2009 00:27:35 +0000 (UTC) Cc: 4835@emacsbugs.donarmstrong.com To: "'Chong Yidong'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 01 01:27:28 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N4OI3-0002ub-F7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Nov 2009 01:27:27 +0100 Original-Received: from localhost ([127.0.0.1]:50741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4OI2-0000O3-M6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Oct 2009 20:27:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4OHy-0000Nw-CA for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2009 20:27:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4OHt-0000NN-Pv for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2009 20:27:21 -0400 Original-Received: from [199.232.76.173] (port=36820 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4OHt-0000NE-Jv for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2009 20:27:17 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55296) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N4OHt-00066b-4p for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2009 20:27:17 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA10RFot028264; Sat, 31 Oct 2009 17:27:15 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nA10A4o7025996; Sat, 31 Oct 2009 17:10:04 -0700 Resent-Date: Sat, 31 Oct 2009 17:10:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 01 Nov 2009 00:10:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4835 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4835-submit@emacsbugs.donarmstrong.com id=B4835.125703387624572 (code B ref 4835); Sun, 01 Nov 2009 00:10:04 +0000 Original-Received: (at 4835) by emacsbugs.donarmstrong.com; 1 Nov 2009 00:04:36 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from acsinet11.oracle.com (acsinet11.oracle.com [141.146.126.233]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA104Z9I024569 for <4835@emacsbugs.donarmstrong.com>; Sat, 31 Oct 2009 17:04:36 -0700 Original-Received: from rgminet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nA1054tL004312 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 1 Nov 2009 00:05:05 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9VNiRW6030122; Sun, 1 Nov 2009 00:05:05 GMT Original-Received: from abhmt018.oracle.com by acsmt358.oracle.com with ESMTP id 20744543991257033859; Sat, 31 Oct 2009 19:04:19 -0500 Original-Received: from dradamslap1 (/24.5.185.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 31 Oct 2009 17:04:19 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acpag8xnCcGiX+fVRu2lU35ZF8vAuAAAN/tw In-Reply-To: <877hubku5o.fsf@stupidchicken.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt356.oracle.com [141.146.40.156] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4AECD08A.0019:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 31 Oct 2009 20:27:21 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32333 Archived-At: > > You haven't given one reason why this should be limited to > > a symbol. Show why `functionp' is problematic, and you > > might have an argument. > > I'm afraid I don't have time to wade through the sea of > words, but I've stated that it would be nice if a lambda > expression can be used. But I doubt it's worthwhile to > change this for 23.2. Why? Why wouldn't it be worthwhile to change `fboundp' to `functionp'? > Assuming there's no third-party code relying on using a > lambda expression (which does not work properly), for > now we should simply document the case that works. Then please consider fixing this to allow all functions for 23.3, if you don't want to fix it now. Do I need to file another bug report for that? In any case, _this_ bug is about the `Invalid face reference' messages and performance degradation. I get those messages even when using a symbol function, so this bug is not fixed by simply adding a restriction to symbols. If I'm mistaken and have missed something, please advise. I will be happy if I can get the function to work without provoking those bizarre error messages and slowing Emacs to a crawl. I don't have a problem with using a symbol function instead of a lambda. IOW, for Emacs generally, I agree with you that "it would be nice if a lambda expression can be used" at some point. But my concern now is the `Invalid face reference' messages. I corrected the code to use a symbol, not a lambda, but the problem remains. Again, if I missed something, please let me know. I'm no expert on font-lock. I'm hoping that I simply messed up somewhere, and there is not some bug in the font-lock code that is causing this behavior. The latter would mean that I won't be able to make this work in other Emacs versions, even after the bug is fixed. The former would mean I would learn something; thank you; and be on my way.