]> git.eshelyaron.com Git - emacs.git/commitdiff
Very minor bytecomp fix.
authorGlenn Morris <rgm@gnu.org>
Wed, 8 Sep 2010 16:02:38 +0000 (09:02 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 8 Sep 2010 16:02:38 +0000 (09:02 -0700)
* lisp/emacs-lisp/bytecomp.el (byte-compile-report-ops):
Error if not compiled with -DBYTE_CODE_METER.

lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el

index 78f6429b181950d4f875bc936eddd02cf69f6a84..683c6e6b688644be7b0f6c16422b3c23c5750fc4 100644 (file)
@@ -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.
 
index b1aa4a32b2598efecafde77a3c9584ee7bd77c08..cb1deb9a762fc86e1dd6f47bbc4133529ee4e39e 100644 (file)
@@ -4244,6 +4244,8 @@ and corresponding effects."
 
 (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)