]> git.eshelyaron.com Git - emacs.git/commitdiff
(play-sound): Rearrange to avoid warning.
authorRichard M. Stallman <rms@gnu.org>
Thu, 25 Aug 2005 10:57:38 +0000 (10:57 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 25 Aug 2005 10:57:38 +0000 (10:57 +0000)
lisp/subr.el

index e87db94beea05cb1e3e843633acffcf072b489b5..290f8c5461091f2c1c57b43415492e7433653628 100644 (file)
@@ -2657,9 +2657,9 @@ don't change the volume setting of the sound device.
 
   :device DEVICE - play sound on DEVICE.  If not specified,
 a system-dependent default device name is used."
-  (unless (fboundp 'play-sound-internal)
-    (error "This Emacs binary lacks sound support"))
-  (play-sound-internal sound))
+  (if (fboundp 'play-sound-internal)
+      (play-sound-internal sound)
+    (error "This Emacs binary lacks sound support")))
 
 (defun define-mail-user-agent (symbol composefunc sendfunc
                                      &optional abortfunc hookvar)