all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard G Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs, w3m and wav files
Date: Thu, 17 Apr 2008 06:37:37 +0200	[thread overview]
Message-ID: <fu6k6l$i94$1@registered.motzarella.org> (raw)
In-Reply-To: fu6bjr$mrp$1@registered.motzarella.org

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?




      reply	other threads:[~2008-04-17  4:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-17  2:11 emacs, w3m and wav files Richard G Riley
2008-04-17  4:37 ` Richard G Riley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='fu6k6l$i94$1@registered.motzarella.org' \
    --to=rileyrgdev@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.