diff lisp/sound.el @ 371:cc15677e0335 r21-2b1

Import from CVS: tag r21-2b1
author cvs
date Mon, 13 Aug 2007 11:03:08 +0200
parents 03446687b7cc
children 6240c7796c7a
line wrap: on
line diff
--- a/lisp/sound.el	Mon Aug 13 11:01:58 2007 +0200
+++ b/lisp/sound.el	Mon Aug 13 11:03:08 2007 +0200
@@ -82,7 +82,7 @@
 				       (const :format "" :value :duration)
 				       (integer :tag "Duration"))))))
 
-(defcustom sound-load-list
+(defcustom sound-load-alist
   '((load-sound-file "drum-beep"	'drum)
     (load-sound-file "quiet-beep"	'quiet)
     (load-sound-file "bass-snap"	'bass 80)
@@ -105,15 +105,15 @@
   :type 'directory
   )
 
-(defcustom sound-extension-list (if (or (eq system-type 'cygwin32)
-					(eq system-type 'windows-nt))
-				    ".wav:" ".au:")
+(defcustom sound-ext (if (or (eq system-type 'cygwin32)
+			     (eq system-type 'windows-nt))
+			 ".wav:" ".au:")
   "Filename extensions to complete sound file name with. If more than one
    extension is used, they should be separated by \":\". "
   :group 'sound
   :type 'string)
 
-(defcustom default-sound-directory-list (locate-data-directory-list "sounds")
+(defcustom default-sound-directory-list ( list default-sound-directory )
 
   "List of directories which to search for sound files"
   :group 'sound
@@ -144,7 +144,7 @@
     (error "volume not an integer or nil"))
   (let (buf
 	data
-	(file (locate-file filename  default-sound-directory-list  sound-extension-list)))
+	(file (locate-file filename  default-sound-directory-list  sound-ext)))
     (unless file
       (error "Couldn't load sound file %s" filename))
     (unwind-protect
@@ -180,7 +180,7 @@
   (message "Loading sounds...")
   (setq sound-alist nil)
   ;; this is where the calls to load-sound-file get done
-  (mapc 'eval sound-load-list)
+  (mapc 'eval sound-load-alist)
   (setq sound-alist
 	(append sound-default-alist
 		sound-alist))