Error fontifying JavaScript tag inside ASP JScript string

Bug #830807 reported by Nicholas Riley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nXhtml
New
Undecided
Unassigned

Bug Description

I upgraded my copy of nXhtml from 2.07 to the current bzr version. I'm using nXhtml to edit ASP JScript (yeah, yeah) and I now get an error when attempting to open a file with the following contents:

<% "<script language='JavaScript'>" %>

(of course, the original problem happened on a much larger file :-)

The error is:

mumamo-fontify-region: Wrong type argument: char-or-string-p, nil
** In buffer broken.asp
  backtrace()
  mumamo-display-error(mumamo-fontify-region "%s" "Wrong type argument: char-or-string-p, nil")
  byte-code("\301\302\303\304!#\207" [err mumamo-display-error mumamo-fontify-region "%s" error-message-string] 5)
  mumamo-fontify-region(1 44 nil)
  font-lock-fontify-region(1 44)
  run-hook-with-args(font-lock-fontify-region 1 44)
  byte-code("\302\303 #\207" [start next run-hook-with-args jit-lock-functions] 4)
  jit-lock-fontify-now(1 501)
  jit-lock-function(1)
  mumamo-jit-lock-function(1)

Afterwards the cursor gets stuck after the ">".

I have tested with stock Emacs (23.2 and 23.3) just running nXhtml and nothing more.

I cannot run M-x nxhtml-report-bug because I get "Symbol's function definition is void: recentf-save-list" when I run emacs-Q-nxhtml.

Thanks.

Revision history for this message
Nicholas Riley (njriley) wrote :

This still happens with the current nXhtml and Emacs 24.0.94.1. I found a workaround, which may not be the cleanest thing, but it seems to work OK. Patch is attached.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.