Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HTML Display failed

1 view
Skip to first unread message

Kyle

unread,
Sep 12, 2002, 6:39:54 PM9/12/02
to

Ok, I know this isn't a VM problem, but I was hoping you guys would
let that slide...

When viewing text/html in vm (iso-8859-1 charset), I'm getting a lot of:
Inline HTML Display Failed: (wrong-type-argument char-or-string-p 8211)

This is from the html "–" which I guess should be an apostrophe.
The problem is the Presentation fails, so I get shown the raw html --
which is from Outlook (did you have to guess that one?) and
unreadable. Editing the mail and deleting the sequence fixes it.

It'd be great if unknown html chars were simply skipped, or anything
really, just don't show me the raw html. I'm using w3 version 1.25
and vm 7.07. Any ideas on what to do on this one?

Thanks,
Kyle
k...@pi.com
replace pi w/ patentinvestor when replying

Kevin Rodgers

unread,
Sep 12, 2002, 7:07:54 PM9/12/02
to
Kyle wrote:

> I'm using w3 version 1.25

I doubt it. What does `C-h v w3-version RET' display? I'm still using

WWW 4.0pre.46 1999/10/01 20:22:11

Perhaps you're using emacs-w3m. What does `C-h v emacs-w3m-version RET'
display? I'm using 1.2.6 -- perhaps you're using 1.2.5? Note that
1.3.2 was released on Sept. 3rd and announced on Sept. 11; you can get
it at http://emacs-w3m.namazu.org/

--
Kevin Rodgers <kev...@ihs.com>

Kyle

unread,
Sep 13, 2002, 1:25:03 PM9/13/02
to

M-x w3-version shows:
WWW 4.0pre.46, URL p4.0pre.46, MM 1.96

w3-version-date is the same as yours. I assumed that the w3 version
from M-x list-packages was the version number.

Kyle Jones

unread,
Sep 13, 2002, 7:23:11 PM9/13/02
to
It's looking like supporting text/html internally is more trouble
than it's worth. Suppose I ripped out all the w3 support. Your
response? Howls of protest? Jubilation? Or ... ?

Krishnakumar B

unread,
Sep 13, 2002, 8:08:23 PM9/13/02
to

Yes. It is slow and is ugly (maybe my font choice is screwed up). I have to
go through a lot of loops to get VM to not use inline html. I usually
prefer an external converter like w3m. It would be good if I can somehow
strip all the HTML junk but retain all the hyperlinks. Is there any vm-hook
that I can use or is it done by browse-url ? Also VM seems to have problems
with highlighting URLs which span multiple lines.

-kitty.

Kyle Jones

unread,
Sep 13, 2002, 10:28:00 PM9/13/02
to
Krishnakumar B <ki...@cs.wustl.edu> wrote:
> On Friday, 13 September 2002, kyle_...@wonderworks.com (Kyle Jones)wrote:
> > It's looking like supporting text/html internally is more trouble
> > than it's worth. Suppose I ripped out all the w3 support. Your
> > response? Howls of protest? Jubilation? Or ... ?
>
> Yes. It is slow and is ugly (maybe my font choice is screwed up). I have to
> go through a lot of loops to get VM to not use inline html. I usually
> prefer an external converter like w3m. It would be good if I can somehow
> strip all the HTML junk but retain all the hyperlinks.

Converting to text/plain with Lynx is pretty good in this
respect. Links are replaced with footnote numbers and you can
click on the corresponding URL at the bottom of the document.

> Is there any vm-hook that I can use or is it done by browse-url
> ? Also VM seems to have problems with highlighting URLs which
> span multiple lines.

URLs can't span multiple lines.

pjf

unread,
Sep 14, 2002, 10:30:52 AM9/14/02
to
howdy,

i'm with those who would rather see this passed off to lynx or just
not done at all. it just doesn't look nice and takes too long to be
drawn.

-patrick

Krishnakumar B

unread,
Sep 14, 2002, 3:22:04 PM9/14/02
to
On Saturday, 14 September 2002, kyle_...@wonderworks.com (Kyle Jones)wrote:
>
> Converting to text/plain with Lynx is pretty good in this
> respect. Links are replaced with footnote numbers and you can
> click on the corresponding URL at the bottom of the document.

Hmm...I will try it out. Last time I tried, I had some problems.

> > Is there any vm-hook that I can use or is it done by browse-url
> > ? Also VM seems to have problems with highlighting URLs which
> > span multiple lines.
>
> URLs can't span multiple lines.

I meant lengthy URLs getting wrapped and continuing on more than a line.

-kitty.

Kyle Jones

unread,
Sep 14, 2002, 9:33:12 PM9/14/02
to
> > > Also VM seems to have problems with highlighting URLs
> > > which span multiple lines.
> >
> > URLs can't span multiple lines.
>
> I meant lengthy URLs getting wrapped and continuing on more than a line.

"This message has extra line breaks, click here to rmeove them." Yuck.

Mark A. Flacy

unread,
Sep 15, 2002, 5:00:24 AM9/15/02
to
Well, that would push me a lot closer to using Gnus for mail instead.

How does Gnus display HMTL? It seems to do a pretty bang-up job.

Kevin Rodgers

unread,
Sep 16, 2002, 11:40:04 AM9/16/02
to
Kyle Jones wrote:

> Krishnakumar B <ki...@cs.wustl.edu> wrote:
> > On Friday, 13 September 2002, kyle_...@wonderworks.com (Kyle Jones)wrote:
> > > It's looking like supporting text/html internally is more trouble
> > > than it's worth. Suppose I ripped out all the w3 support. Your
> > > response? Howls of protest? Jubilation? Or ... ?
> >
> > Yes. It is slow and is ugly (maybe my font choice is screwed up). I have to
> > go through a lot of loops to get VM to not use inline html. I usually
> > prefer an external converter like w3m. It would be good if I can somehow
> > strip all the HTML junk but retain all the hyperlinks.
>
> Converting to text/plain with Lynx is pretty good in this
> respect. Links are replaced with footnote numbers and you can
> click on the corresponding URL at the bottom of the document.

I don't fault VM for w3's performance or rendering problems, but my gripe is

that VM doesn't inherit the keybindings provided by the inline method, whether
its w3 or emacs-w3m.

--
Kevin Rodgers <kev...@ihs.com>

Ronald Cole

unread,
Sep 16, 2002, 11:57:42 AM9/16/02
to
pjf <p...@pjf.net> writes:
> i'm with those who would rather see this passed off to lynx or just
> not done at all. it just doesn't look nice and takes too long to be
> drawn.

amen! html-ized email has been pretty much unreadable under VM for a
very long time. Those that aren't spam, I usually end up just saving
to a file and then browsing the file anyway.

So, do it right or not at all (and I'm ok with not at all).

--
Forte International, P.O. Box 1412, Ridgecrest, CA 93556-1412
Ronald Cole <ron...@forte-intl.com> Phone: (760) 499-9142
President, CEO Fax: (760) 499-9152
My GPG fingerprint: C3AF 4BE9 BEA6 F1C2 B084 4A88 8851 E6C8 69E3 B00B

pf...@dflmail.itg.ti.com

unread,
Sep 17, 2002, 12:56:45 AM9/17/02
to
Date: Fri, 13 Sep 2002 23:23:11 +0000 (UTC)
From: kyle_...@wonderworks.com (Kyle Jones)

It's looking like supporting text/html internally is more trouble
than it's worth. Suppose I ripped out all the w3 support. Your
response? Howls of protest? Jubilation? Or ... ?

I've only in the last few months bitten the bullet and let vm show me
the HTML side of multipart/alternative messages, and I actually prefer
w3 to the alternatives.

I'm stuck with HTML, given the number of people here who use Outlook and
Netscape, and given the settings on the internal mail relays. Sure, w3
is slow (though some of that is my fault for sticking with xemacs 19.16
which has an old w3) and fails sometimes, but it does a better job of
rendering than lynx or links or the text side of multipart/alternative,
all of which also fail sometimes. It also shows colors and fonts, which
none of the others do. And I'd rather read my mail in VM than have half
of it pop up in some browser window from which I can't do Emacs things.

So if VM lost its w3 support, I'd probably stand pat at the last version
that kept it.

Paul Fuqua
Texas Instruments, Dallas, Texas

Chris McMahan

unread,
Sep 17, 2002, 8:59:32 AM9/17/02
to
I would like to see an option to integrate w3m_el as an option to view
html.

pf...@dflmail.itg.ti.com writes:

--
(. .)
=ooO=(_)=Ooo========================
Chris McMahan | cmcmahan-AT-one.net
====================================

John Covici

unread,
Sep 17, 2002, 2:17:49 PM9/17/02
to
My problem is that I am not using x, and I have not found a way to
display with an external application except to write its output to a
file and find it in emacs. Lynx does seem more robust than w3 -- I
get a message sometimes about something being confused and no
default. I use gnus also )(that's how I am posting now), and I have
never gotten external things to display correctly in emacs.

--
John Covici
cov...@ccs.covici.com


-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----

Edward O'Connor

unread,
Sep 17, 2002, 8:23:24 PM9/17/02
to
>>>>> "Chris" == Chris McMahan <cmcma...@one.net> writes:

Chris> I would like to see an option to integrate w3m_el as an
Chris> option to view html.

When I used VM, I just `defalias'ed such that it called
`w3m-region' instead of `w3-region'. Does that help?

--
Edward O'Connor
t...@oconnor.cx

Chris McMahan

unread,
Sep 18, 2002, 9:33:44 AM9/18/02
to
I've got w3m displaying the inline html ok (patched vm-mime.el), but
the hyperlinks are static. The w3m.el mode would follow the hyperlinks
correctly, but w3m-region doesn't.

I may be missing something obvious here, however.

- Chris

--

Edward O'Connor

unread,
Sep 18, 2002, 7:51:36 PM9/18/02
to
>>>>> "Chris" == Chris McMahan <cmcma...@one.net> writes:

Chris> I've got w3m displaying the inline html ok (patched
Chris> vm-mime.el), but the hyperlinks are static. The w3m.el
Chris> mode would follow the hyperlinks correctly, but w3m-region
Chris> doesn't.

Chris> I may be missing something obvious here, however.

I just posted a function to follow such links to g.e.s the other
day. See Message ID <831y7sw...@oconnor.cx>.


Ted

Chris McMahan

unread,
Sep 19, 2002, 8:27:32 AM9/19/02
to
Got it!

Works like a champ too! Do you know any way to map it to a specific
key when over hyperlink (the enter key specifically), but default to
previous bindings when outside the hyperlink.

- Chris

Edward O'Connor <t...@oconnor.cx> writes:

--

Edward O'Connor

unread,
Sep 21, 2002, 2:54:35 AM9/21/02
to
>>>>> "Chris" == Chris McMahan <cmcma...@one.net> writes:

Chris> Works like a champ too! Do you know any way to map it to a
Chris> specific key when over hyperlink (the enter key
Chris> specifically), but default to previous bindings when
Chris> outside the hyperlink.

Well, you could something like this...

(defun chris-follow-link-at-point (point)
"Try to follow an HTML link at point.
This works for links created by w3-region and/or by w3m-region."
(interactive "d")
(let* ((props (text-properties-at point))
(w3-h-i (plist-get props 'w3-hyperlink-info))
(w3m-h-a (plist-get props 'w3m-href-anchor)))
(cond (w3-h-i
(browse-url (plist-get w3-h-i :href)))
(w3m-h-a
(browse-url w3m-h-a))
(t
nil))))

(define-key the-map-you-want-this-in (kbd "RET") 'chris-follow-link-at-point)

pf...@dflmail.itg.ti.com

unread,
Sep 26, 2002, 10:58:58 AM9/26/02
to
Date: Sat, 21 Sep 2002 06:54:35 GMT
From: Edward O'Connor <t...@oconnor.cx>

(defun chris-follow-link-at-point (point)
"Try to follow an HTML link at point.
This works for links created by w3-region and/or by w3m-region."

I extended VM's mouse command to also look for the links created by w3,
as shown below (look for +++pf); I don't have w3m so didn't do anything
for it. This way, I can click middle on a link whether it was created
by VM's URL highlighting, or by w3.

pf


(defun vm-mouse-popup-or-select (event)
(interactive "e")
(cond ((vm-mouse-fsfemacs-mouse-p)
(set-buffer (window-buffer (posn-window (event-start event))))
(goto-char (posn-point (event-start event)))
(let (o-list (found nil))
(setq o-list (overlays-at (point)))
(while (and o-list (not found))
(cond ((overlay-get (car o-list) 'vm-url)
(setq found t)
(vm-mouse-send-url-at-event event))
((overlay-get (car o-list) 'vm-mime-function)
(setq found t)
(funcall (overlay-get (car o-list) 'vm-mime-function)
(car o-list))))
(setq o-list (cdr o-list)))
(and (not found) (vm-menu-popup-context-menu event))))
;; The XEmacs code is not actually used now, since all
;; selectable objects are handled by an extent keymap
;; binding that points to a more specific function. But
;; this might come in handy later if I want selectable
;; objects that don't have an extent keymap attached.
((vm-mouse-xemacs-mouse-p)
(set-buffer (window-buffer (event-window event)))
(and (event-point event) (goto-char (event-point event)))
(let (e url)
(cond ((or (extent-at (point) (current-buffer) 'vm-url)
(extent-at (point) (current-buffer) 'button)) ; +++pf
(vm-mouse-send-url-at-event event))
((setq e (extent-at (point) nil 'vm-mime-function))
(funcall (extent-property e 'vm-mime-function) e))
(t (vm-menu-popup-context-menu event)))))))


(defun vm-mouse-send-url-at-position (pos &optional browser)
(save-restriction
(widen)
(cond ((vm-mouse-xemacs-mouse-p)
(let ((e (extent-at pos (current-buffer) 'vm-url))
url)
(if (null e)
(if (and (fboundp 'widget-at) ; +++pf
(setq url (getf (cdr (widget-at pos)) 'href)))
(vm-mouse-send-url url browser)
nil)
(setq url (buffer-substring (extent-start-position e)
(extent-end-position e)))
(vm-mouse-send-url url browser))))
((vm-mouse-fsfemacs-mouse-p)
(let (o-list url o)
(setq o-list (overlays-at pos))
(while (and o-list (null (overlay-get (car o-list) 'vm-url)))
(setq o-list (cdr o-list)))
(if (null o-list)
nil
(setq o (car o-list))
(setq url (vm-buffer-substring-no-properties
(overlay-start o)
(overlay-end o)))
(vm-mouse-send-url url browser)))))))

0 new messages