From unknown Sat Jun 14 03:54:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7769: Void variable nxml-mode-map when running nXhtml tests Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Jan 2011 09:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7769 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7769@debbugs.gnu.org X-Debbugs-Original-To: Emacs Bugs Received: via spool by submit@debbugs.gnu.org id=B.129396061929410 (code B ref -1); Sun, 02 Jan 2011 09:31:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jan 2011 09:30:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZKGZ-0007eI-HT for submit@debbugs.gnu.org; Sun, 02 Jan 2011 04:30:19 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZKGX-0007e5-RD for submit@debbugs.gnu.org; Sun, 02 Jan 2011 04:30:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZKNL-0001xE-Uc for submit@debbugs.gnu.org; Sun, 02 Jan 2011 04:37:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:40568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZKNL-0001xA-SP for submit@debbugs.gnu.org; Sun, 02 Jan 2011 04:37:19 -0500 Received: from [140.186.70.92] (port=42449 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZKNK-0008MU-Rv for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2011 04:37:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZKNJ-0001wm-A8 for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2011 04:37:18 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:63087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZKNJ-0001wg-3S for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2011 04:37:17 -0500 Received: by eyh6 with SMTP id 6so2615769eyh.0 for ; Sun, 02 Jan 2011 01:37:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=zyZVOSeJKgL1AnuItEUIvRwEcIpt6O1SyhScA3Oq/Ig=; b=LmLTnC+L+AJBCegHGUJLeSgfHPEiS1gOEyekHxjU/rPEHNA7PjrYMDPS3bf83IYhzA KFSsv5IlYuKOrqNuvx8x5pcl05n3O9MpwJkmGC+/JuyDUpmtRcPRe9aBqc7cQGSmFuvY qpgFIXGYilHwnw7HXRk9Grt9lanLzb0RWSdEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=VN2fT8GF73gxV0ATSZd0ZWlvDMcylM3sdaCzepAkV28oKoOQIkV1FoV2YZ0Ff+8B0m mVRgHb3DHHhNU0dqv3aLyswOOTSZUt5HhvR53Xyw+ns1DMoYbwgcptlF80XrxBrnF3Tw B7RydHfVFYH/+FG9t8FIsJryvBZNovQpTjWxk= Received: by 10.213.28.12 with SMTP id k12mr4113393ebc.84.1293961035989; Sun, 02 Jan 2011 01:37:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.20.148 with HTTP; Sun, 2 Jan 2011 01:36:55 -0800 (PST) From: Lennart Borgman Date: Sun, 2 Jan 2011 10:36:55 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -4.7 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) 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 * 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. From unknown Sat Jun 14 03:54:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Lennart Borgman Subject: bug#7769: closed (Re: Void variable nxml-mode-map when running nXhtml tests) Message-ID: References: <19751.43750.183583.536809@fencepost.gnu.org> X-Gnu-PR-Message: they-closed 7769 X-Gnu-PR-Package: emacs Reply-To: 7769@debbugs.gnu.org Date: Sat, 08 Jan 2011 00:01:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1294444862-1045-1" This is a multi-part message in MIME format... ------------=_1294444862-1045-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7769: Void variable nxml-mode-map when running nXhtml tests which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 7769@debbugs.gnu.org. --=20 7769: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7769 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1294444862-1045-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7769-done) by debbugs.gnu.org; 8 Jan 2011 00:00:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbMEn-0000GR-5H for submit@debbugs.gnu.org; Fri, 07 Jan 2011 19:00:53 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbMEl-0000GE-NK for 7769-done@debbugs.gnu.org; Fri, 07 Jan 2011 19:00:51 -0500 Received: from localhost ([127.0.0.1]:39939) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbMLm-0005r3-Gi; Fri, 07 Jan 2011 19:08:06 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19751.43750.183583.536809@fencepost.gnu.org> Date: Fri, 7 Jan 2011 19:08:06 -0500 From: Glenn Morris To: 7769-done@debbugs.gnu.org Subject: Re: Void variable nxml-mode-map when running nXhtml tests In-Reply-To: References: X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: magenta X-Ran: lpGmq"ACq?,15dG>Lktar*~#_wrDY|pON#6d X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 7769-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) 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. ------------=_1294444862-1045-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Jan 2011 09:30:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZKGZ-0007eI-HT for submit@debbugs.gnu.org; Sun, 02 Jan 2011 04:30:19 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PZKGX-0007e5-RD for submit@debbugs.gnu.org; Sun, 02 Jan 2011 04:30:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZKNL-0001xE-Uc for submit@debbugs.gnu.org; Sun, 02 Jan 2011 04:37:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:40568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZKNL-0001xA-SP for submit@debbugs.gnu.org; Sun, 02 Jan 2011 04:37:19 -0500 Received: from [140.186.70.92] (port=42449 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZKNK-0008MU-Rv for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2011 04:37:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZKNJ-0001wm-A8 for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2011 04:37:18 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:63087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZKNJ-0001wg-3S for bug-gnu-emacs@gnu.org; Sun, 02 Jan 2011 04:37:17 -0500 Received: by eyh6 with SMTP id 6so2615769eyh.0 for ; Sun, 02 Jan 2011 01:37:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=zyZVOSeJKgL1AnuItEUIvRwEcIpt6O1SyhScA3Oq/Ig=; b=LmLTnC+L+AJBCegHGUJLeSgfHPEiS1gOEyekHxjU/rPEHNA7PjrYMDPS3bf83IYhzA KFSsv5IlYuKOrqNuvx8x5pcl05n3O9MpwJkmGC+/JuyDUpmtRcPRe9aBqc7cQGSmFuvY qpgFIXGYilHwnw7HXRk9Grt9lanLzb0RWSdEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=VN2fT8GF73gxV0ATSZd0ZWlvDMcylM3sdaCzepAkV28oKoOQIkV1FoV2YZ0Ff+8B0m mVRgHb3DHHhNU0dqv3aLyswOOTSZUt5HhvR53Xyw+ns1DMoYbwgcptlF80XrxBrnF3Tw B7RydHfVFYH/+FG9t8FIsJryvBZNovQpTjWxk= Received: by 10.213.28.12 with SMTP id k12mr4113393ebc.84.1293961035989; Sun, 02 Jan 2011 01:37:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.20.148 with HTTP; Sun, 2 Jan 2011 01:36:55 -0800 (PST) From: Lennart Borgman Date: Sun, 2 Jan 2011 10:36:55 +0100 Message-ID: Subject: Void variable nxml-mode-map when running nXhtml tests To: Emacs Bugs Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -4.7 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) 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 * 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. ------------=_1294444862-1045-1-- From unknown Sat Jun 14 03:54:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7769: Void variable nxml-mode-map when running nXhtml tests Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jan 2011 03:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7769 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix To: 7769@debbugs.gnu.org Cc: rgm@gnu.org Received: via spool by 7769-submit@debbugs.gnu.org id=B7769.129471581621143 (code B ref 7769); Tue, 11 Jan 2011 03:17:02 +0000 Received: (at 7769) by debbugs.gnu.org; 11 Jan 2011 03:16:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PcUjA-0005Ux-4E for submit@debbugs.gnu.org; Mon, 10 Jan 2011 22:16:56 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PcUj7-0005Un-Qf for 7769@debbugs.gnu.org; Mon, 10 Jan 2011 22:16:54 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcFAKJcK01FxIbi/2dsb2JhbACWJ44PdLtPhUwEhGeOJA X-IronPort-AV: E=Sophos;i="4.60,304,1291611600"; d="scan'208";a="87585739" Received: from 69-196-134-226.dsl.teksavvy.com (HELO ceviche.home) ([69.196.134.226]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 10 Jan 2011 22:24:19 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 332DE660DC; Mon, 10 Jan 2011 22:24:19 -0500 (EST) From: Stefan Monnier Message-ID: References: <19751.43750.183583.536809@fencepost.gnu.org> Date: Mon, 10 Jan 2011 22:24:19 -0500 In-Reply-To: <19751.43750.183583.536809@fencepost.gnu.org> (Glenn Morris's message of "Fri, 7 Jan 2011 19:08:06 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > 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. BTW, I've just installed a change in the trunk to fix this problem (i.e. so that eval-after-load evals *after-load* even for features that are provided at the beginning (or in the middle) of the file). Stefan