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: [Fwd: Re: more on mumamo/php mode] Date: Tue, 24 Jul 2007 16:02:15 -0400 Message-ID: References: <46A3367A.6010000@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185307355 29616 80.91.229.12 (24 Jul 2007 20:02:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jul 2007 20:02:35 +0000 (UTC) Cc: "Lennart Borgman \(gmail\)" , Emacs Devel To: Claus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 24 22:02:32 2007 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 1IDQaS-0007zM-63 for ged-emacs-devel@m.gmane.org; Tue, 24 Jul 2007 22:02:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDQaR-0001V4-Mt for ged-emacs-devel@m.gmane.org; Tue, 24 Jul 2007 16:02:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDQaN-0001Um-59 for emacs-devel@gnu.org; Tue, 24 Jul 2007 16:02:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDQaL-0001Td-3I for emacs-devel@gnu.org; Tue, 24 Jul 2007 16:02:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDQaL-0001TV-0B for emacs-devel@gnu.org; Tue, 24 Jul 2007 16:02:21 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IDQaK-0002Tu-H5 for emacs-devel@gnu.org; Tue, 24 Jul 2007 16:02:20 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 19B952CF06B; Tue, 24 Jul 2007 16:02:20 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id BFC243FE0; Tue, 24 Jul 2007 16:02:15 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id ACBF46C8C5; Tue, 24 Jul 2007 16:02:15 -0400 (EDT) In-Reply-To: (Claus's message of "Tue\, 24 Jul 2007 20\:37\:35 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: Linux 2.6 (newer, 3) 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:75481 Archived-At: > "I found why this error happens. In the recent CVS Emacs, as > utf-translate-cjk-mode is on by default, some Unicode characters will > be decoded into one of CJK character set. But, as > xsdre-range-list-to-char-alternative (xsd-regexp.el) simply do > something like this to generate a character range: (format "%c-%c" > (decode-char 'ucs FROM) (decode-char 'ucs TO)) the resulting regexp > causes the above error." What it should do instead is to loop over all chars between FROM and TO and add them one by one. Character-ranges in regexps work rather poorly in such cases. > The patch below is supposingly fixing this issue (and is working for > me). It works around the problem, but will most likely break the use of those CJK chars. Stefan