]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-compiling-files-p): New function.
authorGerd Moellmann <gerd@gnu.org>
Thu, 9 Nov 2000 23:01:40 +0000 (23:01 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 9 Nov 2000 23:01:40 +0000 (23:01 +0000)
lisp/emacs-lisp/bytecomp.el
lisp/simple.el

index 928d3fe4db43fe3a050706dd67a3484a4abfe5a4..fd42f6bcf97890512a9af6ebb37f74062a201310 100644 (file)
@@ -10,7 +10,7 @@
 
 ;;; This version incorporates changes up to version 2.10 of the
 ;;; Zawinski-Furuseth compiler.
-(defconst byte-compile-version "$Revision: 2.79.1.1 $")
+(defconst byte-compile-version "$Revision: 2.80 $")
 
 ;; This file is part of GNU Emacs.
 
@@ -793,9 +793,7 @@ Each function's symbol gets marked with the `byte-compile-noruntime' property."
 
 (defvar byte-compile-current-form nil)
 (defvar byte-compile-dest-file nil)
-
-;; Don't actually bind this.
-(defvar byte-compile-current-file)
+(defvar byte-compile-current-file nil)
 
 (defmacro byte-compile-log (format-string &rest args)
   (list 'and
index 55e0460751e4e964ac31e26048e71143951de221..155f8468d5aacdb18512a9207119ad5e8c141c5f 100644 (file)
@@ -3966,4 +3966,12 @@ corresponing syntax code as it is stored in a syntax cell, and
 can be used as value of a `syntax-table' property.
 DESCRIPTION is the descriptive string for the syntax.")
 
+\f
+;;; Misc
+
+(defun byte-compiling-files-p ()
+  "Return t if currently byte-compiling files."
+  (and (boundp 'byte-compile-current-file)
+       (stringp byte-compile-current-file)))
+   
 ;;; simple.el ends here