aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-12 17:40:42 +0200
committerLars Ingebrigtsen2019-06-12 17:46:06 +0200
commite4fd2cfc72dcecfd458ecaca334b79d7e4448545 (patch)
treeafbff569c0071e2286b581a83c31f3c6bf364eb8
parent9744f8df04ac396610d44754e816691b54cbc9f9 (diff)
downloademacs-e4fd2cfc72dcecfd458ecaca334b79d7e4448545.tar.gz
emacs-e4fd2cfc72dcecfd458ecaca334b79d7e4448545.zip
Suppress warning about pi not having a prefix
* lisp/emacs-lisp/float-sup.el (pi): Suppress warning about this obsolete variable not having a prefix.
-rw-r--r--lisp/emacs-lisp/float-sup.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/float-sup.el b/lisp/emacs-lisp/float-sup.el
index 54c8afe62b4..48ffaaab367 100644
--- a/lisp/emacs-lisp/float-sup.el
+++ b/lisp/emacs-lisp/float-sup.el
@@ -28,8 +28,9 @@
28;; Provide an easy hook to tell if we are running with floats or not. 28;; Provide an easy hook to tell if we are running with floats or not.
29;; Define pi and e via math-lib calls (much less prone to killer typos). 29;; Define pi and e via math-lib calls (much less prone to killer typos).
30(defconst float-pi (* 4 (atan 1)) "The value of Pi (3.1415926...).") 30(defconst float-pi (* 4 (atan 1)) "The value of Pi (3.1415926...).")
31(defconst pi float-pi 31(with-suppressed-warnings ((lexical pi))
32 "Obsolete since Emacs-23.3. Use `float-pi' instead.") 32 (defconst pi float-pi
33 "Obsolete since Emacs-23.3. Use `float-pi' instead."))
33(internal-make-var-non-special 'pi) 34(internal-make-var-non-special 'pi)
34 35
35(defconst float-e (exp 1) "The value of e (2.7182818...).") 36(defconst float-e (exp 1) "The value of e (2.7182818...).")