emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r101385: Very minor bytecomp fix.


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r101385: Very minor bytecomp fix.
Date: Wed, 08 Sep 2010 09:02:38 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 101385
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Wed 2010-09-08 09:02:38 -0700
message:
  Very minor bytecomp fix.
  * lisp/emacs-lisp/bytecomp.el (byte-compile-report-ops):
  Error if not compiled with -DBYTE_CODE_METER.
modified:
  lisp/ChangeLog
  lisp/emacs-lisp/bytecomp.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2010-09-08 15:59:10 +0000
+++ b/lisp/ChangeLog    2010-09-08 16:02:38 +0000
@@ -1,5 +1,8 @@
 2010-09-08  Glenn Morris  <address@hidden>
 
+       * 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.
 

=== modified file 'lisp/emacs-lisp/bytecomp.el'
--- a/lisp/emacs-lisp/bytecomp.el       2010-09-08 15:59:10 +0000
+++ b/lisp/emacs-lisp/bytecomp.el       2010-09-08 16:02:38 +0000
@@ -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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]