From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Claus Newsgroups: gmane.emacs.devel Subject: Re: [Fwd: Re: more on mumamo/php mode] Date: Tue, 24 Jul 2007 20:37:35 +0200 Message-ID: References: <46A3367A.6010000@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1185302270 4773 80.91.229.12 (24 Jul 2007 18:37:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jul 2007 18:37:50 +0000 (UTC) Cc: "Lennart Borgman \(gmail\)" To: "Emacs Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 24 20:37:45 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 1IDPGS-00074x-OU for ged-emacs-devel@m.gmane.org; Tue, 24 Jul 2007 20:37:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDPGQ-0008K3-6A for ged-emacs-devel@m.gmane.org; Tue, 24 Jul 2007 14:37:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDPGO-0008Jy-6e for emacs-devel@gnu.org; Tue, 24 Jul 2007 14:37:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDPGL-0008Jm-QG for emacs-devel@gnu.org; Tue, 24 Jul 2007 14:37:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDPGL-0008Jj-Ks for emacs-devel@gnu.org; Tue, 24 Jul 2007 14:37:37 -0400 Original-Received: from py-out-1112.google.com ([64.233.166.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IDPGL-0001im-77 for emacs-devel@gnu.org; Tue, 24 Jul 2007 14:37:37 -0400 Original-Received: by py-out-1112.google.com with SMTP id f31so4203297pyh for ; Tue, 24 Jul 2007 11:37:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aAULPGvC+rsDZLzfTln+eMfw5nTAUt7CfSu4GHzc2M8+NcMSIalHmm1EnyKhiCQcRsxhmgN9tqEJCROgBSqIHOw3jj7IuOQtoFrVVEpJ2HuznMchKKtGPtOvlGYVIelGlKxt2qUkgoB/q6ojSvxzGSW/ce9AchS6BOiW9PExigc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ngDgf8Olp3qJ3eUqvLd19sCaqq7URHmi08ldXmV0XL1QcrAj9wPuiYMV114vZ5/JPiAjt2eOQAde/De7Sow31zLpCTakt4ycIW6vKS3xmVTN0CQYZdXHMHjx6luEwgQt9kMYOnPmbHah7ftkYX4RKIpuHLXFbm0Weh3a6N2FuZw= Original-Received: by 10.35.72.1 with SMTP id z1mr8323156pyk.1185302255388; Tue, 24 Jul 2007 11:37:35 -0700 (PDT) Original-Received: by 10.35.14.10 with HTTP; Tue, 24 Jul 2007 11:37:34 -0700 (PDT) In-Reply-To: <46A3367A.6010000@gmail.com> Content-Disposition: inline X-detected-kernel: Linux 2.6 (newer, 2) 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:75473 Archived-At: Hello, all I could find about this issue was the explanation in the thread linked from my message. The description of the cause goes like this: "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." The patch below is supposingly fixing this issue (and is working for me). However, I guess we need someone to verify this since the original maintainer is currently not available. Could someone look into this and suggest whether this is the right solution? --- xsd-regexp.el.orig 2006-01-27 00:31:24.000000000 +0100 +++ xsd-regexp.el 2006-01-27 00:32:20.328529600 +0100 @@ -290,7 +290,8 @@ (defun xsdre-compile-single-char (ch) (if (memq ch '(?. ?* ?+ ?? ?\[ ?\] ?^ ?$ ?\\)) (string ?\\ ch) - (string (decode-char 'ucs ch)))) + (let ((utf-translate-cjk-mode nil)) + (string (decode-char 'ucs ch))))) (defun xsdre-char-class-to-range-list (cc) "Return a range-list for a symbolic char-class." @@ -403,7 +404,8 @@ (setq range-list (cdr range-list))) (setq chars (mapcar (lambda (c) - (decode-char 'ucs c)) + (let ((utf-translate-cjk-mode nil)) + (decode-char 'ucs c))) chars)) (when caret (setq chars (cons ?^ chars))) Thanks, Claus On 7/22/07, Lennart Borgman (gmail) wrote: > I got this report some days ago. Could please someone who understands > what utf-translate-cjk-mode does comment on this? > > > -------- Original Message -------- > Subject: Re: more on mumamo/php mode > Date: Thu, 19 Jul 2007 16:47:21 +0200 > From: Claus > To: Lennart Borgman (gmail) > > Hi Lennart, > > some status update and a question on nxhtml-mode: > > 1. Somebody reported an error in nxml-mode upon validation/parsing > ("Invalid regexp: Range striding over charsets") with Emacs 22 on the > nxml-mailing list (see e.g. > http://osdir.com/ml/emacs.nxml.general/2006-01/msg00039.html). Shortly > after Darkman posted a patch that seemed to work (at least for me): > > http://drkm-lib.sourceforge.net/nxml/xsd-regexp.el.2006-01-26.patch > > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel >