emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Range striding over charsets error in nxml-mode


From: Clifford Wulfman
Subject: Range striding over charsets error in nxml-mode
Date: Mon, 23 Jan 2006 14:09:25 -0500

Invoking nxml-validate-mode on certain xml files causes the following error:

Internal error in rng-validate-mode triggered at buffer position 7427. Invalid regexp: "Range striding over charsets"

(The buffer position varies depending on the file; I can send a sample file if you wish.)

The behavior showed up recently (within the past two weeks, I think), and persists in the latest build from cvs.

nXML mode version: 20041004 (the latest); has worked without this error until recently.

Grepping the nxml-mode code suggests the error is happening in in rng- do-some-validation, defined in rng-valid.el:

(defun rng-do-some-validation (&optional continue-p-function)
  "Do some validation work. Return t if more to do, nil otherwise."
  (save-excursion
    (save-restriction
      (widen)
      (nxml-with-invisible-motion
        (condition-case err
            (and (rng-validate-prepare)
                 (let ((rng-dt-namespace-context-getter '(nxml-ns-get-context)))
                   (nxml-with-unmodifying-text-property-changes
                     (rng-do-some-validation-1 continue-p-function))))
          ;; errors signalled from a function run by an idle timer
          ;; are ignored; if we don't catch them, validation
          ;; will get mysteriously stuck at a single place
          (rng-compile-error
           (message "Incorrect schema. %s" (nth 1 err))
           (rng-validate-mode 0)
           nil)
          (error
(message "Internal error in rng-validate-mode triggered at buffer position %d. %s"
                    (point)
                    (error-message-string err))
           (rng-validate-mode 0)
           nil))))))

Let me know if I can provide any additional information,

--Cliff Wulfman

If emacs crashed, and you have the emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/22.0.50/etc/DEBUG for instructions.


In GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.4.0)
of 2006-01-23 on Freia.local
X server distributor `Apple Computers', version 10.4.4
configured using `configure '--enable-carbon-app''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: iso-8859-1
  default-enable-multibyte-characters: t

Major mode: nXML

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t

Recent input:
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <escape> > <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
C-p C-p C-p C-p C-p C-p C-p C-SPC C-SPC C-n C-n C-n
C-n C-n C-n C-n <escape> w C-x b C-g C-x k <return>
<C-down-mouse-1> C-x 1 C-c C-v <menu-bar> <help-menu>
<report-emacs-bug>

Recent messages:
Mark saved where search started
Internal error in rng-validate-mode triggered at buffer position 7427. Invalid regexp: "Range striding over charsets"
Mark set [3 times]
Loading emacsbug...done
Mark set [5 times]
Auto-saving...done
Mark set [2 times]
Transient-mark-mode temporarily enabled
Quit
Internal error in rng-validate-mode triggered at buffer position 7427. Invalid regexp: "Range striding over charsets"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]