Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
w3m-mode and images
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Raymond Scholz  
View profile  
 More options Jun 30 2001, 6:28 pm
Newsgroups: gnu.emacs.help
From: Raymond Scholz <ray-2...@zonix.de>
Date: Sun, 01 Jul 2001 00:13:05 +0200
Local: Sat, Jun 30 2001 6:13 pm
Subject: w3m-mode and images
Hi!

I just discovered w3m-mode (version 1.0).  How do I display images
with an external viewer (like xv)?  This is my current setup:

(autoload 'w3m "w3m" "Interface for w3m on Emacs." t)
(setq w3m-coding-system 'iso-8859-1
      w3m-input-coding-system 'iso-8859-1
      w3m-output-coding-system 'iso-8859-1
      w3m-arrived-file-coding-system 'iso-8859-1
      w3m-mailto-url-function 'compose-mail
      w3m-default-save-directory "~/tmp/down/")

Saying `I' on an image (<IMG SRC="..."> or <A HREF="..."> makes no
difference) offers me to save the image.  

There is a variable called `w3m-display-inline-image' but setting it
to `t' doesn't make any difference.  Perhaps this setting does only
make sense for XEmacs and Emacs 21.

Cheers, Ray
--
"I heard if you play the NT-4.0-CD  backwards, you get a satanic message."
  "Thats nothing, if you play it forward, it installs NT-4.0"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dirk Meyer  
View profile  
 More options Jul 17 2001, 4:29 am
Newsgroups: gnu.emacs.help
From: Dirk Meyer <dis...@tzi.de>
Date: 17 Jul 2001 10:29:18 +0200
Local: Tues, Jul 17 2001 4:29 am
Subject: Re: w3m-mode and images

Raymond Scholz wrote:
> There is a variable called `w3m-display-inline-image' but setting it
> to `t' doesn't make any difference.  Perhaps this setting does only
> make sense for XEmacs and Emacs 21.

Yes, with Emacs 21 you will get inline images -- very nice. w3m.el is
a nice browser, how can I use this mode in Gnus for rendering
html-Mails?

Dirk

--
A morning without coffee is like something without something else.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kai Großjohann  
View profile  
 More options Jul 17 2001, 6:04 am
Newsgroups: gnu.emacs.help
From: Kai.Grossjoh...@CS.Uni-Dortmund.DE (Kai Großjohann)
Date: Tue, 17 Jul 2001 11:49:27 +0200
Local: Tues, Jul 17 2001 5:49 am
Subject: Re: w3m-mode and images
On 17 Jul 2001, Dirk Meyer wrote:

> Yes, with Emacs 21 you will get inline images -- very nice. w3m.el
> is a nice browser, how can I use this mode in Gnus for rendering
> html-Mails?

Various variables might have to be looked at.  See mailcap-mime-data
and the output of M-x apropos RET ^mm.*inlin RET

kai
--
~/.signature: No such file or directory


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Faux_Pseudo  
View profile  
 More options Jul 17 2001, 6:25 am
Newsgroups: gnu.emacs.help
From: Faux_Pse...@24.177.56.253 (Faux_Pseudo)
Date: Tue, 17 Jul 2001 10:25:14 GMT
Local: Tues, Jul 17 2001 6:25 am
Subject: Re: w3m-mode and images
--(Once apon a time, in gnu.emacs.help,)--
                --(Dirk Meyer said it like only they can.)--

> Raymond Scholz wrote:
> > There is a variable called `w3m-display-inline-image' but setting it
> > to `t' doesn't make any difference.  Perhaps this setting does only
> > make sense for XEmacs and Emacs 21.

> Yes, with Emacs 21 you will get inline images -- very nice. w3m.el is
> a nice browser, how can I use this mode in Gnus for rendering
> html-Mails?

How will this work for the console?
Will it try to launch an external viewer much like links or w3m does?
/me has visions of a framebufferd gnuemacs graphical w3 browser
floating in his head.
/me smackes himself upside the head

--
 --(t...@faux.local|04:45|/home/faux)-- cat .sig
GUI's are for slackers.  Get ibpconf.sh 6.1 on freshmeat.net  
 --(t...@faux.local|04:45|/home/faux)-- export UIN=66618055

It's a damn poor mind that can only think of one way to spell a word.
        - Andrew Jackson


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Wiegley  
View profile  
 More options Jul 17 2001, 1:09 pm
Newsgroups: gnu.emacs.help
From: John Wiegley <jo...@gnu.org>
Date: Tue, 17 Jul 2001 10:05:51 -0700
Local: Tues, Jul 17 2001 1:05 pm
Subject: Re: w3m-mode and images

>>>>> On Tue Jul 17, Dirk writes:
> Yes, with Emacs 21 you will get inline images -- very nice. w3m.el
> is a nice browser, how can I use this mode in Gnus for rendering
> html-Mails?

Add this to your .gnus file:

(defadvice mm-inline-text (around use-w3m-instead (handle) activate)
  (let ((type (mm-handle-media-subtype handle)))
    (if (not (equal type "html"))
        ad-do-it
      (let ((text (mm-get-part handle))
            (b (point)))
        (save-excursion
          (insert text)
          (save-restriction
            (narrow-to-region b (point))
            (goto-char (point-min))
            (w3m-region (point-min) (point-max)))
          (mm-handle-set-undisplayer
           handle
           `(lambda ()
              (let (buffer-read-only)
                (if (functionp 'remove-specifier)
                    (mapcar (lambda (prop)
                              (remove-specifier
                               (face-property 'default prop)
                               (current-buffer)))
                            '(background background-pixmap foreground)))
                (delete-region ,(point-min-marker)
                               ,(point-max-marker))))))))))


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Woolley  
View profile  
 More options Jul 18 2001, 8:51 am
Newsgroups: gnu.emacs.help
From: Mike Woolley <m...@ariel.co.uk>
Date: 18 Jul 2001 13:48:51 +0100
Local: Wed, Jul 18 2001 8:48 am
Subject: Re: w3m-mode and images

John Wiegley <jo...@gnu.org> writes:
> >>>>> On Tue Jul 17, Dirk writes:

> > Yes, with Emacs 21 you will get inline images -- very nice. w3m.el
> > is a nice browser, how can I use this mode in Gnus for rendering
> > html-Mails?

> Add this to your .gnus file:

> (defadvice mm-inline-text (around use-w3m-instead (handle) activate)
>   ...

Wow, that works great - much better and faster than W3!

The only problem is that it does nothing when you mouse-2 on links
(although they are still highlighted).
Is there any way of getting it to invoke browse-url (or equivalent)?

Cheers,
Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
those who know me have no need of my name  
View profile  
 More options Jul 18 2001, 2:40 pm
Newsgroups: gnu.emacs.help
From: those who know me have no need of my name <not-a-real-addr...@usa.net>
Date: 18 Jul 2001 17:22:11 GMT
Local: Wed, Jul 18 2001 1:22 pm
Subject: Re: w3m-mode and images
<ug0buh07g....@ariel.co.uk> divulged:

>The only problem is that it does nothing when you mouse-2 on links
>(although they are still highlighted).
>Is there any way of getting it to invoke browse-url (or equivalent)?

isn't w3m-mode just w3m running in a term-mode buffer?  if so it's unlikely
that you can invoke emacs functions, though you might be able to convince
w3m to use the mouse itself.

--
okay, have a sig then


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hannu Koivisto  
View profile  
 More options Jul 18 2001, 3:23 pm
Newsgroups: gnu.emacs.help
From: Hannu Koivisto <az...@iki.fi>
Date: 18 Jul 2001 22:23:53 +0300
Local: Wed, Jul 18 2001 3:23 pm
Subject: Re: w3m-mode and images
those who know me have no need of my name <not-a-real-addr...@usa.net> writes:

| <ug0buh07g....@ariel.co.uk> divulged:
|
| >The only problem is that it does nothing when you mouse-2 on links
| >(although they are still highlighted).
| >Is there any way of getting it to invoke browse-url (or equivalent)?
|
| isn't w3m-mode just w3m running in a term-mode buffer?  if so it's unlikely

Definitely not.  I'm sure John's emacs-w3m washing could be
modified (well, actually it is emacs-w3m's rendering code that has
to be modified/augmented/adviced/whateva) to do the same thing the
default W3 washing does, but I don't really have any need to read
HTML mails so I won't be doing that :)

--
Hannu


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
greg  
View profile  
 More options Jul 19 2001, 4:05 am
Newsgroups: gnu.emacs.help
From: g...@visiontech-dml.com
Date: 19 Jul 2001 10:59:19 +0300
Local: Thurs, Jul 19 2001 3:59 am
Subject: Re: w3m-mode and images

Mike Woolley (m...@ariel.co.uk) writes:
> John Wiegley <jo...@gnu.org> writes:

> > Add this to your .gnus file:

> > (defadvice mm-inline-text (around use-w3m-instead (handle) activate)
> >   ...

> Wow, that works great - much better and faster than W3!

> The only problem is that it does nothing when you mouse-2 on links
> (although they are still highlighted).
> Is there any way of getting it to invoke browse-url (or equivalent)?

try this.

(defvar gnus-w3m-minor-mode nil)

(make-variable-buffer-local 'gnus-w3m-minor-mode)
(add-to-list 'minor-mode-alist '(gnus-w3m-minor-mode " w3m"))
(add-to-list 'minor-mode-map-alist (cons 'gnus-w3m-minor-mode w3m-mode-map))

(defadvice mm-inline-text (around use-w3m-instead (handle) activate)
  (let ((type (mm-handle-media-subtype handle)))
    (if (not (equal type "html"))
        ad-do-it
      (let ((text (mm-get-part handle))
            (b (point)))
        (save-excursion
          (insert text)
          (save-restriction
            (narrow-to-region b (point))
            (goto-char (point-min))
            (w3m-region (point-min) (point-max))
+           (setq gnus-w3m-minor-mode t))
          (mm-handle-set-undisplayer
           handle
           `(lambda ()
              (let (buffer-read-only)
+               (setq gnus-w3m-minor-mode nil)
                (if (functionp 'remove-specifier)
                    (mapcar (lambda (prop)
                              (remove-specifier
                               (face-property 'default prop)
                               (current-buffer)))
                            '(background background-pixmap foreground)))
                (delete-region ,(point-min-marker)
                               ,(point-max-marker))))))))))


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Woolley  
View profile  
 More options Jul 20 2001, 5:31 am
Newsgroups: gnu.emacs.help
From: Mike Woolley <m...@ariel.co.uk>
Date: 20 Jul 2001 10:28:47 +0100
Local: Fri, Jul 20 2001 5:28 am
Subject: Re: w3m-mode and images

That does what I want, thanks!

Cheers,
Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jay Belanger  
View profile  
 More options Jul 20 2001, 5:20 pm
Newsgroups: gnu.emacs.help
From: Jay Belanger <belan...@truman.edu>
Date: 20 Jul 2001 15:57:30 -0500
Local: Fri, Jul 20 2001 4:57 pm
Subject: Re: w3m-mode and images

Mike Woolley <m...@ariel.co.uk> writes:
> g...@visiontech-dml.com writes:
...
> > try this.

> > (defvar gnus-w3m-minor-mode nil)
> >   ...

> That does what I want, thanks!

That works great here, too.
But if I haven't started emacs-w3m before I start gnus, I get an error
complaining about w3m-region (which I can fix with
(autoload 'w3m-region "w3m") )
and about an unbound variable, w3m-mode-map.
What's the best way to handle that?

Jay


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
those who know me have no need of my name  
View profile  
 More options Jul 20 2001, 10:40 pm
Newsgroups: gnu.emacs.help
From: those who know me have no need of my name <not-a-real-addr...@usa.net>
Date: 21 Jul 2001 01:29:15 GMT
Local: Fri, Jul 20 2001 9:29 pm
Subject: Re: w3m-mode and images
<m3itgn71z9....@vh213601.truman.edu> divulged:

>But if I haven't started emacs-w3m before I start gnus, I get an error
>complaining about w3m-region (which I can fix with
>(autoload 'w3m-region "w3m") )
>and about an unbound variable, w3m-mode-map.
>What's the best way to handle that?

as long as it's somewhere in your load-path either (load-library "w3m") or
(require 'w3m).

--
warning: i hate typing uppercase and will do my utmost to avoid it.  hence
where the emacs norm is to use M-, \M-, C-, \C-, RET, SPC, i use \m-, \m-,
\c-, \c-, <ret>, and <spc>.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jay Belanger  
View profile  
 More options Jul 20 2001, 11:20 pm
Newsgroups: gnu.emacs.help
From: Jay Belanger <belan...@truman.edu>
Date: 20 Jul 2001 21:54:33 -0500
Local: Fri, Jul 20 2001 10:54 pm
Subject: Re: w3m-mode and images

those who know me have no need of my name <not-a-real-addr...@usa.net> writes:
...

> as long as it's somewhere in your load-path either (load-library "w3m") or
> (require 'w3m).

Ah, I had been loading the individual functions that I used.

Thanks!

Jay


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »