Skip to content

Commit e4fd2cf

Browse files
committed
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.
1 parent 9744f8d commit e4fd2cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lisp/emacs-lisp/float-sup.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
;; Provide an easy hook to tell if we are running with floats or not.
2929
;; Define pi and e via math-lib calls (much less prone to killer typos).
3030
(defconst float-pi (* 4 (atan 1)) "The value of Pi (3.1415926...).")
31-
(defconst pi float-pi
32-
"Obsolete since Emacs-23.3. Use `float-pi' instead.")
31+
(with-suppressed-warnings ((lexical pi))
32+
(defconst pi float-pi
33+
"Obsolete since Emacs-23.3. Use `float-pi' instead."))
3334
(internal-make-var-non-special 'pi)
3435

3536
(defconst float-e (exp 1) "The value of e (2.7182818...).")

0 commit comments

Comments
 (0)