unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16495: problems emacs emacs 24.3.50 with mumamo and nxhtml modes
@ 2014-01-19 16:08 Jonathan Payne
  2020-12-06 15:04 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Payne @ 2014-01-19 16:08 UTC (permalink / raw)
  To: 16495

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








^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#16495: problems emacs emacs 24.3.50 with mumamo and nxhtml modes
  2014-01-19 16:08 bug#16495: problems emacs emacs 24.3.50 with mumamo and nxhtml modes Jonathan Payne
@ 2020-12-06 15:04 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-06 15:04 UTC (permalink / raw)
  To: Jonathan Payne; +Cc: 16495

Jonathan Payne <jonathan@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-06 15:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-19 16:08 bug#16495: problems emacs emacs 24.3.50 with mumamo and nxhtml modes Jonathan Payne
2020-12-06 15:04 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).