]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a check for whether Emacs can play sounds in eudc-bob
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Aug 2020 16:37:18 +0000 (18:37 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Aug 2020 16:37:18 +0000 (18:37 +0200)
* lisp/net/eudc-bob.el (eudc-bob-sound-menu)
(eudc-bob-play-sound-at-point): Check for play-sound-internal
instead of play-sound, because the latter is always defined.

lisp/net/eudc-bob.el

index 20a5c5f607598a9058c657c197ba59d57028e583..b248c88d49dfe66f7a091ad67bd5f5955f7ab7f1 100644 (file)
@@ -71,7 +71,7 @@
   `("EUDC Sound Menu"
     ["---" nil nil]
     ["Play sound" eudc-bob-play-sound-at-point
-     (fboundp 'play-sound)]
+     (fboundp 'play-sound-internal)]
     ,@(cdr (cdr eudc-bob-generic-menu))))
 
 (defun eudc-jump-to-event (event)
@@ -197,7 +197,7 @@ display a button."
   (let (sound)
     (if (null (setq sound (eudc-bob-get-overlay-prop 'object-data)))
        (error "No sound data available here")
-      (unless (fboundp 'play-sound)
+      (unless (fboundp 'play-sound-internal)
        (error "Playing sounds not supported on this system"))
       (play-sound (list 'sound :data sound)))))