Gnus development mailing list
 help / color / mirror / Atom feed
* mime/w3/html/images/agent support
@ 1998-09-18 16:03 Wes Hardaker
  1998-09-18 17:28 ` William M. Perry
  0 siblings, 1 reply; 6+ messages in thread
From: Wes Hardaker @ 1998-09-18 16:03 UTC (permalink / raw)



(and if that doesn't indicate a complex issue...)

Ok, (ha ha ha, solve this one Lars):

I finally got a text/html message (I was going to try and generate
one to mail myself figuring this issue would pop up, but I realized as 
I started the composition process that since dropping TM I could no
longer *write* mime messages...  (unless I missed something)).

Anyway, I figured this would happen:  you get a text/html part that is 
displayed with w3 (which is, simply *way* too cool) but it trys to
download the images.  This is a problem when you're in off-line agent
mode (like I was) and it brought by my ISDN connection (not a big
deal, but it shouldn't and would fail under many hand-dialed modem
cases).  Anyway, is there anyway to put w3 into an off-line mode
telling it to only look in its cache (if it has one, its been a while
since I've looked into it) that could be dependent on the
plugged/unplugged status of gnus?

To make matters worse (and I know this is a known .30 problem) the
URL buttons didn't work.  To make things *much* worse (and this
problem is unknown), I did that connection for no reason, as the gifs
appeared *blank* in my buffer.  Doesn't make any sense, since I used
netscape to verify the gif still existed on the web...

-- 
"Ninjas aren't dangerous.  They're more afraid of you than you are of them."


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

* Re: mime/w3/html/images/agent support
  1998-09-18 16:03 mime/w3/html/images/agent support Wes Hardaker
@ 1998-09-18 17:28 ` William M. Perry
  1998-09-18 17:41   ` Wes Hardaker
  0 siblings, 1 reply; 6+ messages in thread
From: William M. Perry @ 1998-09-18 17:28 UTC (permalink / raw)
  Cc: ding

Wes Hardaker <wjhardaker@ucdavis.edu> writes:

> (and if that doesn't indicate a complex issue...)
> 
> Ok, (ha ha ha, solve this one Lars):
> 
> I finally got a text/html message (I was going to try and generate one to
> mail myself figuring this issue would pop up, but I realized as I started
> the composition process that since dropping TM I could no longer *write*
> mime messages...  (unless I missed something)).

  You can use the TM composition stuff without using the reading hooks.
Somehow - I can't remember off the top of my head, it's been a while.

> Anyway, I figured this would happen: you get a text/html part that is
> displayed with w3 (which is, simply *way* too cool) but it trys to
> download the images.  This is a problem when you're in off-line agent
> mode (like I was) and it brought by my ISDN connection (not a big deal,
> but it shouldn't and would fail under many hand-dialed modem cases).
> Anyway, is there anyway to put w3 into an off-line mode telling it to
> only look in its cache (if it has one, its been a while since I've looked
> into it) that could be dependent on the plugged/unplugged status of gnus?

  You could do:

(let ((url-standalone-mode (not gnus-plugged)))
   (do-w3-stuff-here))

-Bill P.


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

* Re: mime/w3/html/images/agent support
  1998-09-18 17:28 ` William M. Perry
@ 1998-09-18 17:41   ` Wes Hardaker
  1998-09-18 17:46     ` William M. Perry
  0 siblings, 1 reply; 6+ messages in thread
From: Wes Hardaker @ 1998-09-18 17:41 UTC (permalink / raw)
  Cc: Wes Hardaker, ding

>>>>> On 18 Sep 1998 12:28:00 -0500, wmperry@aventail.com (William M. Perry) said:

William> You can use the TM composition stuff without using the
William> reading hooks.  Somehow - I can't remember off the top of my
William> head, it's been a while.

Yeah, I actually meant to go strip it out.  It's just not as easy as
calling (load "mime-setup").  I'll have to go pull the appropriate
parts out of there.

William> (let ((url-standalone-mode (not gnus-plugged)))
William> (do-w3-stuff-here))

True.  The question is, can you tell w3 to format the region and don't 
go online based on the variable you defined above?  IE, does w3 have
an offline (cache only) type mode?

-- 
"Ninjas aren't dangerous.  They're more afraid of you than you are of them."


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

* Re: mime/w3/html/images/agent support
  1998-09-18 17:41   ` Wes Hardaker
@ 1998-09-18 17:46     ` William M. Perry
  1998-09-18 18:04       ` Wes Hardaker
  0 siblings, 1 reply; 6+ messages in thread
From: William M. Perry @ 1998-09-18 17:46 UTC (permalink / raw)
  Cc: ding

Wes Hardaker <wjhardaker@ucdavis.edu> writes:

> >>>>> On 18 Sep 1998 12:28:00 -0500, wmperry@aventail.com (William M. Perry) said:
> 
> William> You can use the TM composition stuff without using the
> William> reading hooks.  Somehow - I can't remember off the top of my
> William> head, it's been a while.
> 
> Yeah, I actually meant to go strip it out.  It's just not as easy as
> calling (load "mime-setup").  I'll have to go pull the appropriate
> parts out of there.
> 
> William> (let ((url-standalone-mode (not gnus-plugged)))
> William> (do-w3-stuff-here))
> 
> True.  The question is, can you tell w3 to format the region and don't 
> go online based on the variable you defined above?  IE, does w3 have
> an offline (cache only) type mode?

  That's what url-standalone-mode controls.  If that is non-nil, then it
will not do any network traffic - it will just pull stuff from the cache.

-Bill P.


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

* Re: mime/w3/html/images/agent support
  1998-09-18 17:46     ` William M. Perry
@ 1998-09-18 18:04       ` Wes Hardaker
  1998-09-19 20:51         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Wes Hardaker @ 1998-09-18 18:04 UTC (permalink / raw)
  Cc: Wes Hardaker, ding

>>>>> On 18 Sep 1998 12:46:18 -0500, wmperry@aventail.com (William M. Perry) said:

William> That's what url-standalone-mode controls.  If that is
William> non-nil, then it will not do any network traffic - it will
William> just pull stuff from the cache.

OOOOHHHHHhhhh....

I didn't realize that was a real variable...  Sorry...

Lars?  The following completely-untested (ha ha) patch should do the trick:

*** /users/hardaker/tmp/mm-view.el      Fri Sep 18 11:03:06 1998
--- /users/hardaker/pgnus/lisp/mm-view.el       Mon Sep 14 14:16:00 1998
***************
*** 71,87 ****
                 ,(set-marker (make-marker) (point-max)))))))))
       ((equal type "html")
        (save-excursion
!       (let ((url-standalone-mode (not gnus-plugged)))
!         (w3-do-setup)
!         (mm-with-unibyte-buffer
!           (insert-buffer-substring (mm-handle-buffer handle))
!           (mm-decode-content-transfer-encoding (mm-handle-encoding handle))
!           (require 'url)
!           (save-window-excursion
!             (w3-region (point-min) (point-max))
!             (setq text (buffer-string))))
!         (mm-insert-inline handle text))))
!       ((or (equal type "enriched")
          (equal type "richtext"))
        (save-excursion
        (mm-with-unibyte-buffer
--- 71,86 ----
                 ,(set-marker (make-marker) (point-max)))))))))
       ((equal type "html")
        (save-excursion
!       (w3-do-setup)
!       (mm-with-unibyte-buffer
!         (insert-buffer-substring (mm-handle-buffer handle))
!         (mm-decode-content-transfer-encoding (mm-handle-encoding handle))
!         (require 'url)
!         (save-window-excursion
!           (w3-region (point-min) (point-max))
!           (setq text (buffer-string))))
!       (mm-insert-inline handle text)))
!      ((or (equal type "enriched")
          (equal type "richtext"))
        (save-excursion
        (mm-with-unibyte-buffer


-- 
"Ninjas aren't dangerous.  They're more afraid of you than you are of them."


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

* Re: mime/w3/html/images/agent support
  1998-09-18 18:04       ` Wes Hardaker
@ 1998-09-19 20:51         ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-09-19 20:51 UTC (permalink / raw)


Wes Hardaker <wjhardaker@ucdavis.edu> writes:

> *** /users/hardaker/tmp/mm-view.el      Fri Sep 18 11:03:06 1998

[...]

> !       (let ((url-standalone-mode (not gnus-plugged)))

Well, gnus-plugged is a Gnus variable, so I'd rather not use that in
mm-view.  I've bound it from the Gnus commands in 0.32, though.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

end of thread, other threads:[~1998-09-19 20:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-18 16:03 mime/w3/html/images/agent support Wes Hardaker
1998-09-18 17:28 ` William M. Perry
1998-09-18 17:41   ` Wes Hardaker
1998-09-18 17:46     ` William M. Perry
1998-09-18 18:04       ` Wes Hardaker
1998-09-19 20:51         ` Lars Magne Ingebrigtsen

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