aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2000-11-09 23:01:40 +0000
committerGerd Moellmann <[email protected]>2000-11-09 23:01:40 +0000
commit9985d3915e18f5a9881258036f224a8bcd05e923 (patch)
treed57c545ae7ae9cec3e51bb4bbf410296f745ef5e
parent651cd3dae29fa01b689e1c4de39001cfec9b3566 (diff)
(byte-compiling-files-p): New function.
-rw-r--r--lisp/emacs-lisp/bytecomp.el6
-rw-r--r--lisp/simple.el8
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 928d3fe4db..fd42f6bcf9 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -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
diff --git a/lisp/simple.el b/lisp/simple.el
index 55e0460751..155f8468d5 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -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.")
+
+;;; 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