Trying to validate an certain XML document using app-emacs/nxml-mode I get this error: Internal error in rng-validate-mode triggered at buffer position 1809. Invalid regexp: "Range striding over charsets" There exists a patch to fix this, will attach a patch to the ebuild to apply it.
Created attachment 127289 [details, diff] patch nxml-mode-20041004 to apply fix Note that there should be a revision bump, as the installed files differ. If bug 188114 which I encountered after this is fixed soon, they might be combined into a single revision, but I guess there is no harm in doing multiple revision bumps, at least for ~ARCH, is there?
Fixed in -r1, thanks for reporting.
Looks like this patch hasn't been applied upstream, i.e. to the xsd-regexp.el that comes with app-editors/emacs-23.3. OTOH, variable utf-translate-cjk-mode doesn't exist in Emacs 23 any more. Does the original problem occur with Emacs 23 (and without app-emacs/nxml-mode installed, of course)?
(In reply to comment #3) > Does the original problem occur with Emacs 23 Don't remember what file caused the issue back then. Feel free to drop the patch, and I'll try to remember reopening this if I ever encounter that error message again. > (and without app-emacs/nxml-mode installed, of course)? Hadn't realized this had been merged into the Emacs distribution. Thanks.
(In reply to comment #4) > Don't remember what file caused the issue back then. (Yeah, that's why you should always include a recipe how to reproduce the bug. But I must also be blamed, because I hadn't insisted on one back then.) :-/ > Feel free to drop the patch, The plan is rather to remove the app-emacs/nxml-mode package entirely. It is included with Emacs proper, and its last stand-alone release was in 2004. Only thing that raises some doubts about its removal are the Gentoo specific additions, xmlschema.rnc and xlink.rnc (originating from bug 65836). Any opinion if these should be preserved? > and I'll try to remember reopening this if I ever encounter that error > message again. Yes, please do.
(In reply to comment #5) > (In reply to comment #4) > > Don't remember what file caused the issue back then. > > (Yeah, that's why you should always include a recipe how to reproduce the bug. > But I must also be blamed, because I hadn't insisted on one back then.) :-/ I know. I'd do so today, but obviously I hadn't learned that back then. > > Feel free to drop the patch, > > The plan is rather to remove the app-emacs/nxml-mode package entirely. It is > included with Emacs proper, and its last stand-alone release was in 2004. I gathered as much; I meant you probably won't have to include the patch in the nxml sources that ship with emacs. > Only thing that raises some doubts about its removal are the Gentoo specific > additions, xmlschema.rnc and xlink.rnc (originating from bug 65836). Any > opinion if these should be preserved? No string opinion, but unless they cause trouble, I'd keep them. xslt.rnc is the one I use most, personally. Currently I can't unmerge nxml-mode, as nxml-gentoo-schemas depends on it.