Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188112 - app-emacs/nxml-mode-20041004: Range striding over charsets
Summary: app-emacs/nxml-mode-20041004: Range striding over charsets
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-08 14:26 UTC by Martin von Gagern
Modified: 2011-03-12 21:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch nxml-mode-20041004 to apply fix (188112.patch,794 bytes, patch)
2007-08-08 14:33 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2007-08-08 14:26:16 UTC
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.
Comment 1 Martin von Gagern 2007-08-08 14:33:15 UTC
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?
Comment 2 Ulrich Müller gentoo-dev 2007-08-15 07:39:20 UTC
Fixed in -r1, thanks for reporting.
Comment 3 Ulrich Müller gentoo-dev 2011-03-12 09:46:15 UTC
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)?
Comment 4 Martin von Gagern 2011-03-12 21:19:06 UTC
(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.
Comment 5 Ulrich Müller gentoo-dev 2011-03-12 21:36:26 UTC
(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.
Comment 6 Martin von Gagern 2011-03-12 21:56:57 UTC
(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.