[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: w3m - external browse
From: |
Hadron Quark |
Subject: |
Re: w3m - external browse |
Date: |
Sun, 14 Jan 2007 17:44:24 +1300 |
David Hansen <david.hansen@gmx.net> writes:
> On Sun, 14 Jan 2007 09:38:22 +1300 Hadron Quark wrote:
>
>> I have ma default "return" browsing inside a w3m buffer. In addition I
>> have this:
>>
>> (global-set-key (quote [f4]) 'browse-url-firefox)
>>
>>
>> In order to browse links in an external firefox.
>>
>> The problem is that when using this inside a w3m page, the code picks up
>> the hyperlink description text instead of the hidden link itself.
>>
>> e.g I hit f4 over a hotlink saying "Visit my Page" and I get a url of
>>
>> http://Visit My Page
>>
>> Any suggestions on how to get the underlying hyperlink?
>
>
> ,----
> | M runs the command w3m-view-url-with-external-browser
> | which is an interactive compiled Lisp function in `w3m.el'.
> | It is bound to M.
> | (w3m-view-url-with-external-browser &optional URL)
> |
> | Launch the external browser and display the same web page.
> | If the cursor points to a link, it visits the url of the link instead
> | of the url currently displayed. The browser is defined in
> | `w3m-content-type-alist' for every type of a url.
> `----
>
> David
>
>
>
I dont suppose some clever sod could provide the lisp I use on F4 to
call the w3m function if its a w3m buffer or browse-url-firefox if not?
(global-set-key (quote [f4]) 'browse-url-firefox)
need to call
w3m-view-url-with-external-browser
if its a w3m buffer.
Or would I be better off mapping f4 seperately to a w3m keyboard map? I
dont want that as it would duplicate the existin "M" command.
- w3m - external browse, Hadron Quark, 2007/01/13
- Message not available
- Re: w3m - external browse,
Hadron Quark <=