changeset 110268:b2cc1d56be0f

Very minor bytecomp fix. * lisp/emacs-lisp/bytecomp.el (byte-compile-report-ops): Error if not compiled with -DBYTE_CODE_METER.
author Glenn Morris <rgm@gnu.org>
date Wed, 08 Sep 2010 09:02:38 -0700
parents bd6932be9441
children 39d3e1ba1931
files lisp/ChangeLog lisp/emacs-lisp/bytecomp.el
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Sep 08 08:59:10 2010 -0700
+++ b/lisp/ChangeLog	Wed Sep 08 09:02:38 2010 -0700
@@ -1,5 +1,8 @@
 2010-09-08  Glenn Morris  <rgm@gnu.org>
 
+	* emacs-lisp/bytecomp.el (byte-compile-report-ops):
+	Error if not compiled with -DBYTE_CODE_METER.
+
 	* emacs-lisp/bytecomp.el (byte-recompile-directory):
 	Ignore dir-locals-file.
 
--- a/lisp/emacs-lisp/bytecomp.el	Wed Sep 08 08:59:10 2010 -0700
+++ b/lisp/emacs-lisp/bytecomp.el	Wed Sep 08 09:02:38 2010 -0700
@@ -4244,6 +4244,8 @@
 
 (defvar byte-code-meter)
 (defun byte-compile-report-ops ()
+  (or (boundp 'byte-metering-on)
+      (error "You must build Emacs with -DBYTE_CODE_METER to use this"))
   (with-output-to-temp-buffer "*Meter*"
     (set-buffer "*Meter*")
     (let ((i 0) n op off)