GNU bug report logs - #18463
play-sound crashes emacs if file does not exist

Previous Next

Package: emacs;

Reported by: Mario Valencia <mariovalspi <at> gmail.com>

Date: Fri, 12 Sep 2014 16:55:01 UTC

Severity: normal

Tags: unreproducible

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


Message #62 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18463 <at> debbugs.gnu.org, Mario Valencia <mariovalspi <at> gmail.com>
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Mon, 15 Sep 2014 17:23:12 +0200
> Can someone who is equipped to run Emacs under a debugger please try
> reproducing this on Windows 8, and report the results?  TIA.

On Windows 8, with the current trunk,
  emacs -Q
  Eval: (play-sound '(sound :file "c:/path/foo.wav"))

gives this if the file does not exist:
 * Return value = nil.
 * Side effect: Message [1] in the *Messages* buffer.

and this if the file does exist:
 * Return value = nil.
 * Side effect: The sound stored in the file is played as expected.

I've been unable to make the test with the latest version from the
emacs-24 brach, because it failed to build (reported to emacs-devel).

HTH.

----- Footnotes ----

[1] The open mciSendString command failed to open the specified sound file.
  Error: Cannot find the specified file.  Make sure the path and
filename are correct.


-- 
Dani Moncayo




This bug report was last modified 8 years and 358 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.