* HowTo: Setup EWW To Handle mp3 urls
@ 2016-07-10 22:19 raman
2016-07-12 23:17 ` Michael Heerdegen
0 siblings, 1 reply; 6+ messages in thread
From: raman @ 2016-07-10 22:19 UTC (permalink / raw
To: emacs-devel
I'd like to hand off content-type
audio/x-mpegurl and friends to mplayer --- preferably to an elisp
function I write to handle these via mplayer.
How/Where do I set this up to tell eww to hand me those content-types?
/etc/mailcap maps media type audio/x-mpegurl to totem, but when I
follow those links in EWW, it hands them off to Mozilla by default.
--
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: HowTo: Setup EWW To Handle mp3 urls
2016-07-10 22:19 HowTo: Setup EWW To Handle mp3 urls raman
@ 2016-07-12 23:17 ` Michael Heerdegen
2016-07-12 23:49 ` T.V Raman
0 siblings, 1 reply; 6+ messages in thread
From: Michael Heerdegen @ 2016-07-12 23:17 UTC (permalink / raw
To: raman; +Cc: emacs-devel
raman@google.com writes:
> I'd like to hand off content-type
> audio/x-mpegurl and friends to mplayer --- preferably to an elisp
> function I write to handle these via mplayer.
>
> How/Where do I set this up to tell eww to hand me those content-types?
I guess it's not possible (yet). `shr-browse-url' calls `browse-url',
and that typically opens a browser. I guess you need to advice one of
these.
Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: HowTo: Setup EWW To Handle mp3 urls
2016-07-12 23:17 ` Michael Heerdegen
@ 2016-07-12 23:49 ` T.V Raman
2016-07-12 23:54 ` T.V Raman
0 siblings, 1 reply; 6+ messages in thread
From: T.V Raman @ 2016-07-12 23:49 UTC (permalink / raw
To: michael_heerdegen; +Cc: emacs-devel, raman
:-) advice is usually the answer to most things that are not available yet
Michael Heerdegen writes:
> raman@google.com writes:
>
> > I'd like to hand off content-type
> > audio/x-mpegurl and friends to mplayer --- preferably to an elisp
> > function I write to handle these via mplayer.
> >
> > How/Where do I set this up to tell eww to hand me those content-types?
>
> I guess it's not possible (yet). `shr-browse-url' calls `browse-url',
> and that typically opens a browser. I guess you need to advice one of
> these.
>
>
> Michael.
--
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: HowTo: Setup EWW To Handle mp3 urls
2016-07-12 23:49 ` T.V Raman
@ 2016-07-12 23:54 ` T.V Raman
2016-07-13 1:30 ` Michael Heerdegen
0 siblings, 1 reply; 6+ messages in thread
From: T.V Raman @ 2016-07-12 23:54 UTC (permalink / raw
To: raman; +Cc: michael_heerdegen, emacs-devel
Actually eww calls eww-browse-url -- not shr-browse-url.
T.V Raman writes:
> :-) advice is usually the answer to most things that are not available yet
>
> Michael Heerdegen writes:
> > raman@google.com writes:
> >
> > > I'd like to hand off content-type
> > > audio/x-mpegurl and friends to mplayer --- preferably to an elisp
> > > function I write to handle these via mplayer.
> > >
> > > How/Where do I set this up to tell eww to hand me those content-types?
> >
> > I guess it's not possible (yet). `shr-browse-url' calls `browse-url',
> > and that typically opens a browser. I guess you need to advice one of
> > these.
> >
> >
> > Michael.
>
> --
>
> --
--
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: HowTo: Setup EWW To Handle mp3 urls
2016-07-12 23:54 ` T.V Raman
@ 2016-07-13 1:30 ` Michael Heerdegen
2016-07-13 2:15 ` raman
0 siblings, 1 reply; 6+ messages in thread
From: Michael Heerdegen @ 2016-07-13 1:30 UTC (permalink / raw
To: T.V Raman; +Cc: emacs-devel
raman@google.com (T.V Raman) writes:
> Actually eww calls eww-browse-url -- not shr-browse-url.
I tested with a wikipedia file that linked to an audio file. That link
was propertized with a keymap property that mapped RET to
`shr-browse-url'.
Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: HowTo: Setup EWW To Handle mp3 urls
2016-07-13 1:30 ` Michael Heerdegen
@ 2016-07-13 2:15 ` raman
0 siblings, 0 replies; 6+ messages in thread
From: raman @ 2016-07-13 2:15 UTC (permalink / raw
To: Michael Heerdegen; +Cc: emacs-devel
You're right. I read the code in eww.el by following the call chain for
eww-follow-link and missed the local keymap property.
--
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-07-13 2:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-10 22:19 HowTo: Setup EWW To Handle mp3 urls raman
2016-07-12 23:17 ` Michael Heerdegen
2016-07-12 23:49 ` T.V Raman
2016-07-12 23:54 ` T.V Raman
2016-07-13 1:30 ` Michael Heerdegen
2016-07-13 2:15 ` raman
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.