From xemacs-m  Thu Apr 24 17:39:51 1997
Received: from ns2.eds.com (ns2.eds.com [199.228.142.78])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA04312
	for <xemacs-beta@xemacs.org>; Thu, 24 Apr 1997 17:39:49 -0500 (CDT)
Received: from nnsp.eds.com (nnsp.eds.com [130.174.32.78])
	by ns2.eds.com (8.8.5/8.8.5) with ESMTP id SAA24753;
	Thu, 24 Apr 1997 18:39:40 -0400 (EDT)
Received: from kocrsv04.delcoelect.com (kocrsv04.delcoelect.com [144.250.100.205])
	by nnsp.eds.com (8.8.5/8.8.5) with ESMTP id NAA19849;
	Thu, 24 Apr 1997 13:12:29 -0400 (EDT)
Received: from kocrsw12.delcoelect.com (kocrsw12.delcoelect.com [144.250.106.18]) by kocrsv04.delcoelect.com (8.7.5/8.7.3) with SMTP id MAA25911; Thu, 24 Apr 1997 12:12:27 -0500 (EST)
Received: from kocrsw12 by kocrsw12.delcoelect.com (SMI-8.6/SMI-SVR4)
	id MAA24111; Thu, 24 Apr 1997 12:12:26 -0500
X-Mailer: exmh version 2.0gamma 1/27/97
To: Steven L Baur <steve@miranova.com>
cc: xemacs-beta@xemacs.org
Subject: Re: 20.2-b1 change in load-sound-file 
X-Attribution: mts
X-Face: 4tk3bJx]I+QTZ|=]*1+Z){9+;5u_hK*NBeZK6[+B+iB%bVuOJ%^uK~fIG}O-}%WLX*D
 ^aW>Gv8E3Xtz0\N&fQl^:pj<K{xM`:d>pPt:9lF-YXB%O)?@rd?*/jE!s94`?]:jJ#C5RDP:;M
 r.3lwo`0{vIT+<{%IRwe]vLd]7>\X|*z{TUX_t;?TPcOLBMIv8_V92!Vk(*DJVU~0M[`5D^PAW
 LniO1?YYWArMU*j9o+>?1MWi.lO?F-?aVt:qQ8OaG?R}B:I!7S_+KuzxZ.f9M@$z#n\bG2$Q2{od
Date: Thu, 24 Apr 1997 12:12:25 -0500
Message-ID: <24109.861901945@kocrsw12>
From: Mike Scheidler <c23mts@eng.delcoelect.com>

I ran into a different sound file loading problem.  Since sound.el has been
"custom"ized, the default search path has changed from `data-directory' to
`(concat data-directory "sounds/")'.  As a result, some of my sound
customizations (not "customize"ations, though) in my .emacs file were not
being found, resulting in a "Wrong type argument: stringp, nil" message.
Needless to say, it took me awhile to figure out what the real problem was.

Here's a small patch (against 20.2-b2) to 'load-sound-file' that gives a
more informative error message when a sound file can't be loaded:

-------------------------- cut here--------------------------
--- lisp/prim/sound.el.dist	Thu Apr 24 11:33:34 1997
+++ lisp/prim/sound.el	Thu Apr 24 12:09:27 1997
@@ -133,6 +133,8 @@
   (let (buf
 	data
 	(file (locate-file filename  default-sound-directory-list  sound-ext)))
+    (or file
+        (error "Couldn't load sound file %s" filename))
     (unwind-protect
 	(save-excursion
 	  (set-buffer (setq buf (get-buffer-create " *sound-tmp*")))
-------------------------- cut here--------------------------

-- 
Mike Scheidler                     c23mts@eng.delcoelect.com
Corporate Software Technology
Delco Electronics Corporation      PHONE:  (765) 451-0319
Kokomo, IN 46904-9005              GMNET:  8-322-0319


