From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14574: prog-prettify-symbols breaks font-locking Date: Sat, 15 Jun 2013 11:54:51 +0300 Message-ID: <83hagzvjms.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1371286572 17794 80.91.229.3 (15 Jun 2013 08:56:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Jun 2013 08:56:12 +0000 (UTC) Cc: 14574@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 15 10:56:11 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UnmHH-0006p6-CD for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jun 2013 10:56:07 +0200 Original-Received: from localhost ([::1]:42644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnmHG-0004Iy-Vd for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jun 2013 04:56:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnmHE-0004Ir-GL for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 04:56:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnmHC-0004Ow-NS for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 04:56:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnmHC-0004Om-JC for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 04:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UnmHC-0007oZ-2C for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 04:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jun 2013 08:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14574 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14574-submit@debbugs.gnu.org id=B14574.137128651129892 (code B ref 14574); Sat, 15 Jun 2013 08:56:02 +0000 Original-Received: (at 14574) by debbugs.gnu.org; 15 Jun 2013 08:55:11 +0000 Original-Received: from localhost ([127.0.0.1]:45605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnmGM-0007m1-4P for submit@debbugs.gnu.org; Sat, 15 Jun 2013 04:55:10 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:43319) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnmGI-0007lG-Ay for 14574@debbugs.gnu.org; Sat, 15 Jun 2013 04:55:07 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MOF00A00FBM4R00@a-mtaout22.012.net.il> for 14574@debbugs.gnu.org; Sat, 15 Jun 2013 11:54:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOF009RYFF0W750@a-mtaout22.012.net.il>; Sat, 15 Jun 2013 11:54:37 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75144 Archived-At: > From: Ted Zlatanov > Date: Sat, 15 Jun 2013 04:23:34 -0400 > > On Tue, 11 Jun 2013 23:50:18 +0200 Juanma Barranquero wrote: > > JB> On Tue, Jun 11, 2013 at 11:35 PM, Ted Zlatanov wrote: > >> Weird. I don't know what's happening, and it works well for me. Does > >> turning `font-lock-mode' off and back on fix it? > > JB> No. > > JB> BTW, shouldn't turning font-lock-mode off disable the pretiffication? > > They are entirely implemented by font-lock keywords, so I would assume so. > > At least for me, that works every time. >From Juanma's data, it is clear that the composition list is sometimes created incorrectly, to include the list of all the characters in "lambda". The way to debug this is to catch the circumstances when this happens. One possible way of doing that (a.k.a. "printf debugging") is to instrument prog--prettify-font-lock-compose-symbol so that it logs a message with values of important variables when the composition is incorrect, i.e. when the rule is (?l ?a ?m ?b ?d ?a). That should give enough hints to find the villain.