From 5a972c365f4431d75bf3a8d29a938cf89ccac8db Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 8 Sep 2010 09:02:38 -0700 Subject: [PATCH] Very minor bytecomp fix. * lisp/emacs-lisp/bytecomp.el (byte-compile-report-ops): Error if not compiled with -DBYTE_CODE_METER. --- lisp/ChangeLog | 3 +++ lisp/emacs-lisp/bytecomp.el | 2 ++ 2 files changed, 5 insertions(+) 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) -- 2.39.2