diff options
| author | Richard M. Stallman <rms@gnu.org> | 2005-08-25 10:57:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 2005-08-25 10:57:38 +0000 |
| commit | 5a3232180faad7ac8fd6bf551f38b0419fd37bbc (patch) | |
| tree | 0e48206a018228f67d5fe92129b594ccb06626f5 | |
| parent | 2ae12bb0da30acb3ac81ccc7e93af92435401d15 (diff) | |
| download | emacs-5a3232180faad7ac8fd6bf551f38b0419fd37bbc.tar.gz | |
(play-sound): Rearrange to avoid warning.
| -rw-r--r-- | lisp/subr.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index e87db94beea..290f8c54610 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -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) |
