branch: externals/tmr
commit 80007165bbdb980823ea4ea51f8bf0e6a3adbc7b
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Use local variable in function
---
 tmr.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tmr.el b/tmr.el
index 61b237c960..f20a683a2d 100644
--- a/tmr.el
+++ b/tmr.el
@@ -90,7 +90,7 @@ such notifications."
 (defun tmr--play-sound ()
   "Play `tmr-sound-file' using the 'ffplay' executable (ffmpeg)."
   (let ((sound tmr-sound-file))
-    (when (file-exists-p tmr-sound-file)
+    (when (file-exists-p sound)
       (unless (executable-find "ffplay")
         (user-error "Cannot play %s without `ffplay'" sound))
       (call-process-shell-command

Reply via email to