]> code.delx.au - gnu-emacs/blobdiff - lisp/emacs-lisp/float-sup.el
Fix breakage from previous change.
[gnu-emacs] / lisp / emacs-lisp / float-sup.el
index 375704ab6df40cb74ec7ba041b8e6d9a575b29ee..a3d89e4f3a1431e601a9e010bc0cf2ee11d3e6df 100644 (file)
@@ -1,8 +1,8 @@
 ;;; float-sup.el --- define some constants useful for floating point numbers.
 
-;; Copyright (C) 1985-1987, 2001-201 Free Software Foundation, Inc.
+;; Copyright (C) 1985-1987, 2001-2016 Free Software Foundation, Inc.
 
-;; Maintainer: FSF
+;; Maintainer: emacs-devel@gnu.org
 ;; Keywords: internal
 ;; Package: emacs
 
 ;; Provide an easy hook to tell if we are running with floats or not.
 ;; Define pi and e via math-lib calls (much less prone to killer typos).
 (defconst float-pi (* 4 (atan 1)) "The value of Pi (3.1415926...).")
-(progn
-  ;; Simulate a defconst that doesn't declare the variable dynamically bound.
-  (setq-default pi float-pi)
-  (put 'pi 'variable-documentation
-       "Obsolete since Emacs-23.3.  Use `float-pi' instead.")
-  (put 'pi 'risky-local-variable t)
-  (push 'pi current-load-list))
+(defconst pi float-pi
+  "Obsolete since Emacs-23.3.  Use `float-pi' instead.")
+(internal-make-var-non-special 'pi)
 
 (defconst float-e (exp 1) "The value of e (2.7182818...).")