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#14595: Erroneous composition of lambda in emacs-lisp buffers with prog-prettify-symbols enabled Date: Sat, 15 Jun 2013 12:12:51 +0300 Message-ID: <83ehc3viss.fsf@gnu.org> References: <83fvwjvje3.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1371288819 4514 80.91.229.3 (15 Jun 2013 09:33:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Jun 2013 09:33:39 +0000 (UTC) Cc: Juanma Barranquero To: 14595@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 15 11:33:38 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 1UnmrZ-0004Yo-Ey for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jun 2013 11:33:37 +0200 Original-Received: from localhost ([::1]:48052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnmrZ-0002U5-36 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jun 2013 05:33:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnmrV-0002TL-MN for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 05:33:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnmYQ-0001J3-IH for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 05:13:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnmXe-00019M-7L for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 05:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UnmXd-0000Oj-R1 for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2013 05:13:01 -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 09:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14595 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14595-submit@debbugs.gnu.org id=B14595.13712875651462 (code B ref 14595); Sat, 15 Jun 2013 09:13:01 +0000 Original-Received: (at 14595) by debbugs.gnu.org; 15 Jun 2013 09:12:45 +0000 Original-Received: from localhost ([127.0.0.1]:45638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnmXN-0000NW-GA for submit@debbugs.gnu.org; Sat, 15 Jun 2013 05:12:45 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:59403) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UnmXL-0000N0-Bo for 14595@debbugs.gnu.org; Sat, 15 Jun 2013 05:12:44 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MOF00L00G6YGE00@a-mtaout20.012.net.il> for 14595@debbugs.gnu.org; Sat, 15 Jun 2013 12:12:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOF00L7PG906L60@a-mtaout20.012.net.il>; Sat, 15 Jun 2013 12:12:37 +0300 (IDT) In-reply-to: <83fvwjvje3.fsf@gnu.org> 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:75148 Archived-At: > Date: Sat, 15 Jun 2013 12:00:04 +0300 > From: Eli Zaretskii > > > From: Ted Zlatanov > > Date: Sat, 15 Jun 2013 04:21:44 -0400 > > > > On Wed, 12 Jun 2013 05:18:59 +0200 Juanma Barranquero wrote: > > > > JB> If I visit lambda.el as in the example above, and scroll down the > > JB> buffer, I get 26 such failures, always at the same lines (168, 280, > > JB> 364, 432, 489, 538, 581, 619, 654, 686, 715, 742, 767, 791, 813, 834, > > JB> 854, 873, 891, 908, 924, 940, 955, 970, 984 and 998); however, if upon > > JB> visiting the file I go to the end of the buffer and scroll up, I get > > JB> many more failures (about 60) at diferent lines, but also consistently > > JB> the same lines. > > > > Ouch. I don't think I'm doing anything strange in the fontification > > keywords that implement the new prettification functionality, but why > > wasn't this seen before? The scroll behavior probably indicates a > > display engine issue. > > What issue would that be? > > The problem here is that the composition rule is generated > incorrectly. And here's why: The incorrect display happens when the underlined part below (compose-region start end (cdr (assoc (match-string 0) alist))))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ is nil. When that happens, (match-string 0) is "(", the left parenthesis, not the expected "lambda". I hope fontification gurus will be able to tell us why this could happen.