* gnus and nnrss html
@ 2008-06-06 22:32 Richard G Riley
2008-06-08 16:24 ` Richard G Riley
0 siblings, 1 reply; 3+ messages in thread
From: Richard G Riley @ 2008-06-06 22:32 UTC (permalink / raw)
To: info-gnus-english
I have the following in my .gnus.el
,----
| ;; Set the default value of `mm-discouraged-alternatives'.
| (add-to-list
| 'gnus-newsgroup-variables
| '(mm-discouraged-alternatives
| . '("text/html" "image/.*")))
|
| ;;Display `text/html' parts in `nnrss' groups.
| (add-to-list
| 'gnus-parameters
| '("\\`nnrss:" (mm-discouraged-alternatives nil)))
`----
The problem I have is that any links in the html are displayed as
"linkname" with the url hidden. I usually have a key bound to
(browse-url-firefox url &optional new-window) but this only works on
"visible" urls. How can I extract the underlying url in articles on nrss
folders which are being displayed as rendered html?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gnus and nnrss html
2008-06-06 22:32 gnus and nnrss html Richard G Riley
@ 2008-06-08 16:24 ` Richard G Riley
2008-06-08 17:35 ` Richard G Riley
0 siblings, 1 reply; 3+ messages in thread
From: Richard G Riley @ 2008-06-08 16:24 UTC (permalink / raw)
To: info-gnus-english
Richard G Riley <rileyrgdev@gmail.com> writes:
> I have the following in my .gnus.el
>
> ,----
> | ;; Set the default value of `mm-discouraged-alternatives'.
> | (add-to-list
> | 'gnus-newsgroup-variables
> | '(mm-discouraged-alternatives
> | . '("text/html" "image/.*")))
> |
> | ;;Display `text/html' parts in `nnrss' groups.
> | (add-to-list
> | 'gnus-parameters
> | '("\\`nnrss:" (mm-discouraged-alternatives nil)))
> `----
>
> The problem I have is that any links in the html are displayed as
> "linkname" with the url hidden. I usually have a key bound to
> (browse-url-firefox url &optional new-window) but this only works on
> "visible" urls. How can I extract the underlying url in articles on nrss
> folders which are being displayed as rendered html?
The following code did what I wanted without upsetting the default
"return" which uses w3m for me.
(global-set-key (quote [f4]) (lambda() (interactive)(browse-url-firefox (w3m-url-valid (w3m-anchor)))))
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gnus and nnrss html
2008-06-08 16:24 ` Richard G Riley
@ 2008-06-08 17:35 ` Richard G Riley
0 siblings, 0 replies; 3+ messages in thread
From: Richard G Riley @ 2008-06-08 17:35 UTC (permalink / raw)
To: info-gnus-english
Richard G Riley <rileyrgdev@gmail.com> writes:
> Richard G Riley <rileyrgdev@gmail.com> writes:
>
>> I have the following in my .gnus.el
>>
>> ,----
>> | ;; Set the default value of `mm-discouraged-alternatives'.
>> | (add-to-list
>> | 'gnus-newsgroup-variables
>> | '(mm-discouraged-alternatives
>> | . '("text/html" "image/.*")))
>> |
>> | ;;Display `text/html' parts in `nnrss' groups.
>> | (add-to-list
>> | 'gnus-parameters
>> | '("\\`nnrss:" (mm-discouraged-alternatives nil)))
>> `----
>>
>> The problem I have is that any links in the html are displayed as
>> "linkname" with the url hidden. I usually have a key bound to
>> (browse-url-firefox url &optional new-window) but this only works on
>> "visible" urls. How can I extract the underlying url in articles on nrss
>> folders which are being displayed as rendered html?
>
> The following code did what I wanted without upsetting the default
> "return" which uses w3m for me.
>
> (global-set-key (quote [f4]) (lambda()
> (interactive)(browse-url-firefox (w3m-url-valid (w3m-anchor)))))
And a slightly more robust one which prompts for a URL if there are w3m
ones under the cursor:
,----
| (global-set-key
| (quote [f4])
| (lambda()
| (interactive)
| (cond
| ((setq url (w3m-url-valid (w3m-anchor)))
| (browse-url-firefox url))
| (t (command-execute 'browse-url-firefox)))))
`----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-08 17:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-06 22:32 gnus and nnrss html Richard G Riley
2008-06-08 16:24 ` Richard G Riley
2008-06-08 17:35 ` 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 NNTP newsgroup(s).