# HG changeset patch # User Glenn Morris # Date 1283961758 25200 # Node ID b2cc1d56be0f6e80823fecc0e3377a685f242b55 # Parent bd6932be9441a17cfbb0b8038a3b1685702ca3a0 Very minor bytecomp fix. * lisp/emacs-lisp/bytecomp.el (byte-compile-report-ops): Error if not compiled with -DBYTE_CODE_METER. diff -r bd6932be9441 -r b2cc1d56be0f lisp/ChangeLog --- 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 + * 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. diff -r bd6932be9441 -r b2cc1d56be0f lisp/emacs-lisp/bytecomp.el --- 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)