X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fsound.el;h=2857165bbc7e69f9da736df86a01926bcc1a6ac0;hb=a0532ab033c0895e03ca85d032bebea29a7d32f3;hp=af52042dd79cc371b2c2fb2fdf6fe89376fd6228;hpb=cb9f6f4eadc44f1becb32cbbd1db26449e347755;p=chise%2Fxemacs-chise.git diff --git a/lisp/sound.el b/lisp/sound.el index af52042..2857165 100644 --- a/lisp/sound.el +++ b/lisp/sound.el @@ -105,6 +105,7 @@ :type 'directory ) +;; #### This should really be a list. --hniksic (defcustom sound-extension-list (if (or (eq system-type 'cygwin32) (eq system-type 'windows-nt)) ".wav:" ".au:") @@ -144,7 +145,8 @@ nVolume (0 for default): ") (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-extension-list))) (unless file (error "Couldn't load sound file %s" filename)) (unwind-protect @@ -161,12 +163,11 @@ nVolume (0 for default): ") ;; some conses in sound-alist might have been dumped with emacs. (if old (setq sound-alist (delq old (copy-sequence sound-alist))))) (setq sound-alist (cons - (purecopy - (nconc (list sound-name) - (if (and volume (not (eq 0 volume))) - (list ':volume volume)) - (list ':sound data))) - sound-alist))) + (nconc (list sound-name) + (if (and volume (not (eq 0 volume))) + (list ':volume volume)) + (list ':sound data)) + sound-alist))) sound-name) ;;;###autoload