From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Wordingham Newsgroups: gmane.emacs.bugs Subject: bug#20128: 24.4; Bad regex in composition-function-table hangs Emacs Date: Tue, 17 Mar 2015 19:45:04 +0000 Message-ID: <20150317194504.7a0fca78@JRWUBU2> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1426621585 13316 80.91.229.3 (17 Mar 2015 19:46:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2015 19:46:25 +0000 (UTC) To: 20128@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 17 20:46:13 2015 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 1YXxRM-0003Fx-F1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Mar 2015 20:46:12 +0100 Original-Received: from localhost ([::1]:56798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXxRL-0000Ad-Ua for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Mar 2015 15:46:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXxRG-00006o-2p for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 15:46:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXxRC-0007Eq-OE for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 15:46:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXxRC-0007El-KO for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 15:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YXxRC-0008Cy-0l for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 15:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Wordingham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Mar 2015 19:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142662151531486 (code B ref -1); Tue, 17 Mar 2015 19:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Mar 2015 19:45:15 +0000 Original-Received: from localhost ([127.0.0.1]:50374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXxQQ-0008Bm-Ss for submit@debbugs.gnu.org; Tue, 17 Mar 2015 15:45:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37673) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXxQO-0008Be-UF for submit@debbugs.gnu.org; Tue, 17 Mar 2015 15:45:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXxQN-0006kp-Iv for submit@debbugs.gnu.org; Tue, 17 Mar 2015 15:45:12 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXxQN-0006kP-Gr for submit@debbugs.gnu.org; Tue, 17 Mar 2015 15:45:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXxQM-0007pf-M6 for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 15:45:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXxQJ-0006ea-Cg for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 15:45:10 -0400 Original-Received: from know-smtprelay-omc-10.server.virginmedia.net ([80.0.253.74]:37014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXxQJ-0006Yg-3E for bug-gnu-emacs@gnu.org; Tue, 17 Mar 2015 15:45:07 -0400 Original-Received: from JRWUBU2 ([81.103.224.4]) by know-smtprelay-10-imp with bizsmtp id 4jl51q00t06JmVd01jl59C; Tue, 17 Mar 2015 19:45:05 +0000 X-Originating-IP: [81.103.224.4] X-Spam: 0 X-Authority: v=2.1 cv=dY0O3Bne c=1 sm=1 tr=0 a=pLuj3OkTrmEUIJBpyvkqVg==:117 a=pLuj3OkTrmEUIJBpyvkqVg==:17 a=kj9zAlcOel0A:10 a=NLZqzBF-AAAA:8 a=FXRV2orG-g6AZUaOqv8A:9 a=CjuIK1q_8ugA:10 X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:100604 Archived-At: Loading an Emacs lisp file (e.g. by load-file in .emacs) containing the commands: (defvar tai-tham-composable-pattern (let ((table '( ("C" . "[\u1A20-\u1A54") ; Missing ']'! ("M" . "[\u1A55-\u1A5E\u1A61-\u1A7C\u1A7F]"); Mark ("H" . "\u1A60") ; sakot ("N" . "\u1A58"))) ; mai kang lai (regexp "C\\(M|HC\\)*\\(NC\\(M|HC\\)*\\)*N?")) (let ((case-fold-search nil)) (dolist (elt table) (setq regexp (replace-regexp-in-string (car elt) (cdr elt) regexp t t)))) regexp)) (let ((elt (list (vector tai-tham-composable-pattern 0 'font-shape-gstring) (vector "." 0 'font-shape-gstring) ))) (set-char-table-range composition-function-table '(#x1A20 . #x1AAD) elt)) causes Emacs to hang when a character in the range U+1A20 to U+1AAD needs to be rendered. Now, the value of tai-tham-composable-pattern is an unbalanced regex, so that may be the cause of the problem. The problem also occurs in Emacs 23.3.