Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Cannot start w3m-el from within a document, except newsfeeds
@ 2009-02-12 14:00 Hermann
  2009-02-12 22:40 ` Katsumi Yamaoka
  0 siblings, 1 reply; 5+ messages in thread
From: Hermann @ 2009-02-12 14:00 UTC (permalink / raw)
  To: info-gnus-english

Hi,
the subject almost says it:
When I open a link from within a news feed, w3m-el starts as expected.
However: When I try to open a link from any other document (post/email),
I get the message:
Mozilla starting...
and of course nothing happens; I use Gnus from a text console.
My .gnus reads the following, regarding w3m-el:

  (eval-after-load "w3"
    '(progn
      (fset 'w3-fetch-orig (symbol-function 'w3-fetch))
      (defun w3-fetch (&optional url target)
        (interactive (list (w3-read-url-with-default)))
        (if (eq major-mode 'gnus-article-mode)
            (browse-url url)
          (w3-fetch-orig url target)))))

So what do I have to insert in .gnus or in .emacs?
Hermann

-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot start w3m-el from within a document, except newsfeeds
  2009-02-12 14:00 Cannot start w3m-el from within a document, except newsfeeds Hermann
@ 2009-02-12 22:40 ` Katsumi Yamaoka
  2009-02-13  9:53   ` Hermann
  0 siblings, 1 reply; 5+ messages in thread
From: Katsumi Yamaoka @ 2009-02-12 22:40 UTC (permalink / raw)
  To: info-gnus-english

>>>>> Hermann wrote:
> Hi,
> the subject almost says it:
> When I open a link from within a news feed, w3m-el starts as expected.
> However: When I try to open a link from any other document (post/email),
> I get the message:
> Mozilla starting...
> and of course nothing happens; I use Gnus from a text console.
> My .gnus reads the following, regarding w3m-el:

>   (eval-after-load "w3"
>     '(progn
>       (fset 'w3-fetch-orig (symbol-function 'w3-fetch))
>       (defun w3-fetch (&optional url target)
>         (interactive (list (w3-read-url-with-default)))
>         (if (eq major-mode 'gnus-article-mode)
>             (browse-url url)
>           (w3-fetch-orig url target)))))

> So what do I have to insert in .gnus or in .emacs?
> Hermann

First of all, don't you mix up w3m (emacs-w3m, or the so-called
w3m-el in some Linux distribution) with w3 (Emacs/W3) ?
Try: M-x locate-library RET w3m RET
and: M-x locate-library RET w3 RET

If you wish to use emacs-w3m along with Gnus, see:
(info "(emacs-w3m)Gnus") <- type `C-x C-e' here

If you don't have the emacs-w3m Info manual, visit:
http://emacs-w3m.namazu.org/info/emacs-w3m_60.html
(But it is for the officially released version of emacs-w3m that
 is somewhat old.  You can obtain the latest one, including Info,
 from: http://cvs.namazu.org/emacs-w3m.tar.gz )

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot start w3m-el from within a document, except newsfeeds
  2009-02-12 22:40 ` Katsumi Yamaoka
@ 2009-02-13  9:53   ` Hermann
  2009-02-13 11:25     ` Katsumi Yamaoka
  0 siblings, 1 reply; 5+ messages in thread
From: Hermann @ 2009-02-13  9:53 UTC (permalink / raw)
  To: info-gnus-english

On 12.02.2009 at 23:40:25 Katsumi Yamaoka <yamaoka@jpl.org> wrote:

>> the subject almost says it:
>> When I open a link from within a news feed, w3m-el starts as expected.
>> However: When I try to open a link from any other document (post/email),
>> I get the message:
>> Mozilla starting...
>> and of course nothing happens; I use Gnus from a text console.
>> My .gnus reads the following, regarding w3m-el:
[...]
>> So what do I have to insert in .gnus or in .emacs?
> First of all, don't you mix up w3m (emacs-w3m, or the so-called
> w3m-el in some Linux distribution) with w3 (Emacs/W3) ?
> Try: M-x locate-library RET w3m RET
> and: M-x locate-library RET w3 RET
>
In fact you are right; I use emacs-w3m, which indeed is called w3m-el on
my distro (GRML).
So I commented out the entries refering to w3 in my .gnus.

> If you wish to use emacs-w3m along with Gnus, see:
> (info "(emacs-w3m)Gnus") <- type `C-x C-e' here
>
I inserted only one line in my .gnus:

(setq mm-text-html-renderer 'w3m)

which should be sufficient, (at least for basic needs) if I've understood the manuual.
But I don't see a different result: Links in news feeds were shown, in
all other cases I get that "Mozilla" message.

> If you don't have the emacs-w3m Info manual, visit:
> http://emacs-w3m.namazu.org/info/emacs-w3m_60.html
> (But it is for the officially released version of emacs-w3m that
>  is somewhat old.  You can obtain the latest one, including Info,
>  from: http://cvs.namazu.org/emacs-w3m.tar.gz )

My version is 1.4.4-8
Is this an old one?
Aptitude offers as an alternative w3m-el-snapshot; is this a rather new
one?
Hermann

-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot start w3m-el from within a document, except newsfeeds
  2009-02-13  9:53   ` Hermann
@ 2009-02-13 11:25     ` Katsumi Yamaoka
  2009-02-13 12:17       ` Hermann
  0 siblings, 1 reply; 5+ messages in thread
From: Katsumi Yamaoka @ 2009-02-13 11:25 UTC (permalink / raw)
  To: info-gnus-english

>>>>> Hermann wrote:
> In fact you are right; I use emacs-w3m, which indeed is called w3m-el on
> my distro (GRML).
> So I commented out the entries refering to w3 in my .gnus.
[...]
> I inserted only one line in my .gnus:

> (setq mm-text-html-renderer 'w3m)

> which should be sufficient, (at least for basic needs) if I've understood the manuual.
> But I don't see a different result: Links in news feeds were shown, in
> all other cases I get that "Mozilla" message.

Hm, could you try the RET key, or the `C-u RET' key on those links
in the article buffer?

,---- (info "(emacs-w3m)Gnus") ----
| On HTML parts of an article buffer, the `w3m-minor-mode' is turned
| on and you can use the same main keys as the keys of emacs-w3m, for
| instance, `<RET>' is for visiting a page which a link in the
| current position points to.  Those keys are defined in the
| `w3m-minor-mode-command-alist' variable.  Keep in mind that some...
`----

[...]

> My version is 1.4.4-8
> Is this an old one?
> Aptitude offers as an alternative w3m-el-snapshot; is this a rather new
> one?

I don't know, sorry (I'm using Fedora).  But such a basic feature
should work even in old ones, I think.

Regards,

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cannot start w3m-el from within a document, except newsfeeds
  2009-02-13 11:25     ` Katsumi Yamaoka
@ 2009-02-13 12:17       ` Hermann
  0 siblings, 0 replies; 5+ messages in thread
From: Hermann @ 2009-02-13 12:17 UTC (permalink / raw)
  To: info-gnus-english

On 13.02.2009 at 12:25:05 Katsumi Yamaoka <yamaoka@jpl.org> wrote:
[...]
>> In fact you are right; I use emacs-w3m, which indeed is called w3m-el on
>> my distro (GRML).
>> So I commented out the entries refering to w3 in my .gnus.
> [...]
>> I inserted only one line in my .gnus:
>
>> (setq mm-text-html-renderer 'w3m)
>
>> which should be sufficient, (at least for basic needs) if I've understood the manuual.
>> But I don't see a different result: Links in news feeds were shown, in
>> all other cases I get that "Mozilla" message.
>
> Hm, could you try the RET key, or the `C-u RET' key on those links
> in the article buffer?
>
I did both commands, no difference.
One observation: In the news feeds I see the word "link" instead of the
URL. Is this important for the explanation of this?
[...]
>> My version is 1.4.4-8
>> Is this an old one?
>> Aptitude offers as an alternative w3m-el-snapshot; is this a rather new
>> one?
>
> I don't know, sorry (I'm using Fedora).  But such a basic feature
> should work even in old ones, I think.
>
Could this be caused by settings of my system? If so, where to look.
Note: I don't use a GUI. 
Hermann

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-02-13 12:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-12 14:00 Cannot start w3m-el from within a document, except newsfeeds Hermann
2009-02-12 22:40 ` Katsumi Yamaoka
2009-02-13  9:53   ` Hermann
2009-02-13 11:25     ` Katsumi Yamaoka
2009-02-13 12:17       ` Hermann

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).