GNU bug report logs - #7769
Void variable nxml-mode-map when running nXhtml tests

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Sun, 2 Jan 2011 09:31:01 UTC

Severity: minor

Tags: notabug, wontfix

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#7769: closed (Void variable nxml-mode-map when running nXhtml
 tests)
Date: Sat, 08 Jan 2011 00:01:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 7 Jan 2011 19:08:06 -0500
with message-id <19751.43750.183583.536809 <at> fencepost.gnu.org>
and subject line Re: Void variable nxml-mode-map when running nXhtml tests
has caused the GNU bug report #7769,
regarding Void variable nxml-mode-map when running nXhtml tests
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
7769: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7769
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Emacs Bugs <bug-gnu-emacs <at> gnu.org>
Subject: Void variable nxml-mode-map when running nXhtml tests
Date: Sun, 2 Jan 2011 10:36:55 +0100
I found a problem with nxml-mode.el when testing nXhtml. If nXhtml is
not byte compiled it works fine, but when it is byte compiled some
tests fails with "void variable nxml-mode-map".

With an Emacs checkout from 2010-11-23 all tests pass, but with a
checkout from 2010-12-15 some tests fail as above.

I think the problem is caused by a small part of this change:

  2010-12-03  Glenn Morris  <rgm <at> gnu.org>

	* nxml/nxml-mode.el: Require rng-nxml.
	(rng-nxml-mode-init, nxml-enable-unicode-char-name-sets):
	Remove declarations.

This change moved the (provide 'nxml-mode) statement to the beginning
of nxml-mode.el. Since eval-after-load is run at the provide the
statement

(eval-after-load 'nxml-mode
  '(progn
     (define-key nxml-mode-map [C-M-left]  'nxml-backward-element)
     (define-key nxml-mode-map [C-M-right] 'nxml-forward-element)
     (define-key nxml-mode-map [C-M-up]    'nxml-backward-up-element)
     (define-key nxml-mode-map [C-M-down]  'nxml-down-element)))

in the nXhtml file nxhtml-mode.el will now be run before nxml-mode-map
is defined.


[Message part 3 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 7769-done <at> debbugs.gnu.org
Subject: Re: Void variable nxml-mode-map when running nXhtml tests
Date: Fri, 7 Jan 2011 19:08:06 -0500
This kind of thing is explained in the doc-string of eval-after-load.
Use a string instead of a symbol for the FILE argument.


This bug report was last modified 14 years and 129 days ago.

Previous Next


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