unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs, w3m and wav files
@ 2008-04-17  2:11 Richard G Riley
  2008-04-17  4:37 ` Richard G Riley
  0 siblings, 1 reply; 2+ messages in thread
From: Richard G Riley @ 2008-04-17  2:11 UTC (permalink / raw)
  To: help-gnu-emacs


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).


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: emacs, w3m and wav files
  2008-04-17  2:11 emacs, w3m and wav files Richard G Riley
@ 2008-04-17  4:37 ` Richard G Riley
  0 siblings, 0 replies; 2+ messages in thread
From: Richard G Riley @ 2008-04-17  4:37 UTC (permalink / raw)
  To: help-gnu-emacs

Richard G Riley <rileyrgdev@gmail.com> 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?




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-17  4:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-17  2:11 emacs, w3m and wav files Richard G Riley
2008-04-17  4:37 ` Richard G Riley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).