From: Glenn Morris Date: Wed, 8 Sep 2010 16:02:38 +0000 (-0700) Subject: Very minor bytecomp fix. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~48^2~37 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a972c365f4431d75bf3a8d29a938cf89ccac8db;p=emacs.git Very minor bytecomp fix. * lisp/emacs-lisp/bytecomp.el (byte-compile-report-ops): Error if not compiled with -DBYTE_CODE_METER. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 78f6429b181..683c6e6b688 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index b1aa4a32b25..cb1deb9a762 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -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)