From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard G Riley Newsgroups: gmane.emacs.help Subject: Re: emacs, w3m and wav files Date: Thu, 17 Apr 2008 06:37:37 +0200 Organization: http://www.gnu.org/software/emacs/ Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208407282 16482 80.91.229.12 (17 Apr 2008 04:41:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Apr 2008 04:41:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 17 06:41:42 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JmLwK-0004LL-C0 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Apr 2008 06:41:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmLvf-0000Lp-HL for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Apr 2008 00:40:59 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-X-Trace: feeder.motzarella.org U2FsdGVkX1/Mcqq5F/rko4+baWPSv8UsFxrt+gMIWhaR80b+j8B4Mg9+2TMclxcdoI3d0yeA6LWhyIt5ajJBKqYtQoTMF/9o4j6LsDgA8PVRHdXUAq+10Q6EhlSp2ZITAwSU326Dpj6vU0ObGLyRBw== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Thu, 17 Apr 2008 04:37:41 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+yJ6zE91jVSWENqNX8YCfF9zqhywFhfUtkJTMoqxbp0A== Cancel-Lock: sha1:tzHJpmY7m2BBB1SW1QPAZiV5E3I= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:157981 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53347 Archived-At: Richard G Riley writes: > Could someone point out how to play wav files from w3m in emacs? I have > a mailcap entry in ~/.mailcap but how to tell w3m in emacs to play file > at the link http:/someplace/file.wav? Hitting enter (w3m-view-this-url) > just opens the file as a binary. e.g the alphabet here: > > http://german.about.com/library/anfang/blanfang_abc.htm > > Do I need to write a function to save the file and then invoke the mime > handler? I tried to add wav types to w3m-content-type-alist but hitting > enter on a wav file just gave me > > "Cannot run two w3m processes simultaneously (Type `C-c C-k' to stop asynchronous process)" > > (obviously a general solution would be nice). I answered my own question - the type was audio/x-wav and not audio/wav. Silly of me. Not that I understand why its x-wav :-; Unfortunately it then reloads the page after playing (I use esdplay) and I have to invoke "p" key (w3m-view-previous-page) to return to the previous point. I guess there might be a way to wrap this into a function which invokes the play command for that mime type and then calls command w3m-view-previous-page afterwards?