[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can emacs-w3m open links in browser
From: |
Thamer Mahmoud |
Subject: |
Re: Can emacs-w3m open links in browser |
Date: |
Tue, 21 Sep 2004 03:37:37 GMT |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
David Hanak <dhanakDONT@isisSEND.vanderbiltME.eduSPAM> writes:
[snipped]
> (defun my-w3m-browse-url-at-point ()
> (interactive)
> (let ((url (w3m-url-at-point)))
> (if url
> (browse-url url)
> (message "No URL under point."))))
>
> And it works, it's better than ever!
Just today, I've started using w3m and I'm having a similar problem. I
want to open all link and image *buttons* rendered by w3m in Firefox.
I've tried your solution, but for some reason, the w3m-url-at-point
only works for URL's (i.e http://...) and returns nil for the buttons
rendered in w3m.
Anyways, I'm not sure if there is an easy way to get the same
behavior (e.g some variable that I need to set), here is what I
ended up having in my .gnus file. This works for both links and
images:
(require 'w3m)
(eval-after-load "w3m"
'(progn
(defun w3m-safe-view-this-url ()
(interactive)
(if (not (setq url (w3m-url-valid (w3m-anchor))))
(setq url (w3m-url-valid (w3m-image))))
(if url
(browse-url url)
(message "No URL at point")))))
Hope this might help someone.
- Thamer Mahmoud
- Can emacs-w3m open links in browser, David Hanak, 2004/09/16
- Re: Can emacs-w3m open links in browser, Katsumi Yamaoka, 2004/09/17
- Re: Can emacs-w3m open links in browser, David Hanak, 2004/09/17
- Re: Can emacs-w3m open links in browser, Xavier Maillard, 2004/09/18
- Message not available
- Re: Can emacs-w3m open links in browser, David Hanak, 2004/09/20
- Re: Can emacs-w3m open links in browser, Jose A. Ortega Ruiz, 2004/09/20
- Re: Can emacs-w3m open links in browser, David Hanak, 2004/09/20
- Re: Can emacs-w3m open links in browser,
Thamer Mahmoud <=
- Re: Can emacs-w3m open links in browser, David Hanak, 2004/09/21