GNU bug report logs - #16495
problems emacs emacs 24.3.50 with mumamo and nxhtml modes

Previous Next

Package: emacs;

Reported by: Jonathan Payne <jonathan <at> payne-family.org>

Date: Sun, 19 Jan 2014 16:09:02 UTC

Severity: normal

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16495 in the body.
You can then email your comments to 16495 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16495; Package emacs. (Sun, 19 Jan 2014 16:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Payne <jonathan <at> payne-family.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 19 Jan 2014 16:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Payne <jonathan <at> payne-family.org>
To: bug-gnu-emacs <at> gnu.org
Subject: problems emacs emacs 24.3.50 with mumamo and nxhtml modes
Date: Sun, 19 Jan 2014 16:08:30 +0000
Here are some issues I have had editing Django templates using MuMaMo nXhtml/django-nxhtml mode. This works fine in emacs 24.3.1.

1) When first loading a file a jit-lock issue causes an exception and we end up NOT in html mode:

> ad-handle-definition: `rng-validate-mode' got redefined
> Loading nxhtml-mode...done
> File mode specification error: (wrong-type-argument timerp [t nil nil nil nil nil nil nil])
> Error running timer `jit-lock-stealth-fontify': (wrong-type-argument timerp [t nil nil nil nil nil nil nil]) [4 times]


if I revisit the same file I end up in "MuMaMo border/django-nxhtml" mode, and the buffer is properly fontified. But I still get errors about jit-lick-stealth-fontify. Also these are appearing in *Compile-Log* but I am not sure why because I just loaded a file, not tried to compile emacs lisp files:

> Warning: `comment-use-global-state' is an obsolete variable (as of 24.4); use
> `comment-use-syntax' instead.


2) In the html file in a CSS section, I pressed C-o to do "open-line" and the line was opened but the cursor moved down a line as though I had pressed Return to insert a line. There's a new set of emacs errors that occurred including one which might explain why open-line failed:

> Error running timer `jit-lock-stealth-fontify': (wrong-type-argument timerp [t nil nil nil nil nil nil nil]) [2 times]
> ESC C-M-p is undefined
> Beginning of buffer [7 times]
> Mark set
> Error running timer `jit-lock-stealth-fontify': (wrong-type-argument timerp [t nil nil nil nil nil nil nil])
> Using vacuous schema
> Using schema /Applications/My Applications/Emacs (save).app/Contents/Resources/etc/schema/xhtml.rnc
> Internal error in rng-validate-mode triggered at buffer position 165. Symbol's function definition is void: rng-mark-xmltok-dependent-regions
> self-insert-command: Wrong number of arguments: (2 . 2), 3


Meanwhile, performing "open-line" inside a bit of HTML section works as expected.

3) Stepping *with Control-N" into a JavaScript section of the file produced more jit-lock errors with timerp as described above. More of these as well:

> Internal error in rng-validate-mode triggered at buffer position 7417. Symbol's function definition is void: rng-mark-xmltok-dependent-regions
> self-insert-command: Wrong number of arguments: (2 . 2), 3


4) I had issues indenting code in JavaScript. It gets some things wrong which it didn't used to get wrong. AND sometimes (but this is intermittent which makes no sense to me) it displays an error when I try to indent some lines. It's possible it was just the jit-lock-stealth-fontify bug, which happens in the background periodically ... but I think ... Wait - here it is. If I reload the file and then go straight into some JavaScript code and press tab to indent I get this:

> Using schema /Applications/My Applications/Emacs (save).app/Contents/Resources/etc/schema/xhtml.rnc
> Internal error in rng-validate-mode triggered at buffer position 165. Symbol's function definition is void: rng-mark-xmltok-dependent-regions
> mumamo-indent-line-in-mirror: Wrong number of arguments: (2 . 2), 3







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16495; Package emacs. (Sun, 06 Dec 2020 15:06:01 GMT) Full text and rfc822 format available.

Message #8 received at 16495 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jonathan Payne <jonathan <at> payne-family.org>
Cc: 16495 <at> debbugs.gnu.org
Subject: Re: bug#16495: problems emacs emacs 24.3.50 with mumamo and nxhtml
 modes
Date: Sun, 06 Dec 2020 16:04:54 +0100
Jonathan Payne <jonathan <at> payne-family.org> writes:

> Here are some issues I have had editing Django templates using MuMaMo
> nXhtml/django-nxhtml mode. This works fine in emacs 24.3.1.
>
> 1) When first loading a file a jit-lock issue causes an exception and
> we end up NOT in html mode:
>
>> ad-handle-definition: `rng-validate-mode' got redefined
>> Loading nxhtml-mode...done
>> File mode specification error: (wrong-type-argument timerp [t nil
>> nil nil nil nil nil nil])
>> Error running timer `jit-lock-stealth-fontify': (wrong-type-argument
>> timerp [t nil nil nil nil nil nil nil]) [4 times]

(This bug report unfortunately got no response at the time.)

I'm guessing this is a problem with mumamo, and not in Emacs?  So the
bug report should probably go to the mumamo people.

> 3) Stepping *with Control-N" into a JavaScript section of the file
> produced more jit-lock errors with timerp as described above. More of
> these as well:
>
>> Internal error in rng-validate-mode triggered at buffer position
>> 7417. Symbol's function definition is void:
>> rng-mark-xmltok-dependent-regions
>> self-insert-command: Wrong number of arguments: (2 . 2), 3

This also looks like a mumamo issue.

Since this doesn't seem to be an Emacs bug, I'm closing this bug
report.  If that's wrong, please respond to the debbugs address and
we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 16495 <at> debbugs.gnu.org and Jonathan Payne <jonathan <at> payne-family.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 06 Dec 2020 15:06:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 04 Jan 2021 12:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.