Gnus development mailing list
 help / color / mirror / Atom feed
* text/html clickable links fail in p0.63+w3-4.0pre31
@ 1998-12-04 18:14 Karl Kleinpaste
  1998-12-05 16:06 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Karl Kleinpaste @ 1998-12-04 18:14 UTC (permalink / raw)


A forwarded text/html article in a local newsgroup contains numerous
<a href>'s.  Merely passing the mouse over these links induces this
stack trace:

Signaling: (args-out-of-range #<buffer "*Summary jprc.support.linux*"> #<marker at 1068 in *Article* 0x8947334> #<marker at 1080 in *Article* 0x88e6ec4>)
  buffer-substring-no-properties(#<marker at 1068 in *Article* 0x8947334> #<marker at 1080 in *Article* 0x88e6ec4>)
  w3-widget-echo((link :button-extent #<extent (1068, 1080) H keymap help-echo balloon-help button-or-field button 0x8fc3814 in buffer *Article*> :to #<marker at 1080 in *Article* 0x88e6ec4> :class (":link") :href "http://www.excite.com/" :emacspeak-help w3-widget-echo :help-echo w3-widget-echo :from #<marker at 1068 in *Article* 0x8947334> :visited-face #<face w3-style-face-00021 "An Emacs-W3 face... don't edit by hand."> :active-face #<face w3-style-face-00020 "An Emacs-W3 face... don't edit by hand."> :button-face (nil) :action w3-follow-hyperlink :tag "" :value "" :args nil :end 1083 :start 1071 :delete widget-leave-text))
  widget-echo-this-extent(#<extent (1068, 1080) H keymap help-echo balloon-help button-or-field button 0x8fc3814 in buffer *Article*>)
  default-mouse-motion-handler(#<motion-event 847, 533>)

(I'm experimenting with XEmacs 21.2-b4, so if that's part of the
problem, I suppose this should be ignored...)


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

* Re: text/html clickable links fail in p0.63+w3-4.0pre31
  1998-12-04 18:14 text/html clickable links fail in p0.63+w3-4.0pre31 Karl Kleinpaste
@ 1998-12-05 16:06 ` Lars Magne Ingebrigtsen
  1998-12-12 19:50   ` William M. Perry
  1998-12-28 21:43   ` William M. Perry
  0 siblings, 2 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-12-05 16:06 UTC (permalink / raw)


Karl Kleinpaste <karl@justresearch.com> writes:

> A forwarded text/html article in a local newsgroup contains numerous
> <a href>'s.  Merely passing the mouse over these links induces this
> stack trace:
> 
> Signaling: (args-out-of-range #<buffer "*Summary jprc.support.linux*"> #<marker at 1068 in *Article* 0x8947334> #<marker at 1080 in *Article* 0x88e6ec4>)

[...]

> (I'm experimenting with XEmacs 21.2-b4, so if that's part of the
> problem, I suppose this should be ignored...)

I get the same thing (XEmacs 21.2; newest w3).  The backtrace looks
like it's trying to do a buffer-substring on the summary buffer with
two marks from the article buffer.  Perhaps w3 looked at the selected
window instead of the current buffer when creating the callback
function thingies?  (Because the summary buffer is normally the
selected window when rendering the article buffer.)

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


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

* Re: text/html clickable links fail in p0.63+w3-4.0pre31
  1998-12-05 16:06 ` Lars Magne Ingebrigtsen
@ 1998-12-12 19:50   ` William M. Perry
  1998-12-28 21:43   ` William M. Perry
  1 sibling, 0 replies; 5+ messages in thread
From: William M. Perry @ 1998-12-12 19:50 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Karl Kleinpaste <karl@justresearch.com> writes:
> 
> > A forwarded text/html article in a local newsgroup contains numerous
> > <a href>'s.  Merely passing the mouse over these links induces this
> > stack trace:
> > 
> > Signaling: (args-out-of-range #<buffer "*Summary jprc.support.linux*"> #<marker at 1068 in *Article* 0x8947334> #<marker at 1080 in *Article* 0x88e6ec4>)
> 
> [...]
> 
> > (I'm experimenting with XEmacs 21.2-b4, so if that's part of the
> > problem, I suppose this should be ignored...)
> 
> I get the same thing (XEmacs 21.2; newest w3).  The backtrace looks
> like it's trying to do a buffer-substring on the summary buffer with
> two marks from the article buffer.  Perhaps w3 looked at the selected
> window instead of the current buffer when creating the callback
> function thingies?  (Because the summary buffer is normally the
> selected window when rendering the article buffer.)

  I cannot repro this with XEmacs 21.0 + newest w3 + v0.61 - will upgrade
to the latest right now and see what I can see.

-bp


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

* Re: text/html clickable links fail in p0.63+w3-4.0pre31
  1998-12-05 16:06 ` Lars Magne Ingebrigtsen
  1998-12-12 19:50   ` William M. Perry
@ 1998-12-28 21:43   ` William M. Perry
  1999-01-03 12:51     ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 5+ messages in thread
From: William M. Perry @ 1998-12-28 21:43 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Karl Kleinpaste <karl@justresearch.com> writes:
> 
> > A forwarded text/html article in a local newsgroup contains numerous
> > <a href>'s.  Merely passing the mouse over these links induces this
> > stack trace:
> > 
> > Signaling: (args-out-of-range #<buffer "*Summary jprc.support.linux*"> #<marker at 1068 in *Article* 0x8947334> #<marker at 1080 in *Article* 0x88e6ec4>)
> 
> [...]
> 
> > (I'm experimenting with XEmacs 21.2-b4, so if that's part of the
> > problem, I suppose this should be ignored...)
> 
> I get the same thing (XEmacs 21.2; newest w3).  The backtrace looks like
> it's trying to do a buffer-substring on the summary buffer with two marks
> from the article buffer.  Perhaps w3 looked at the selected window
> instead of the current buffer when creating the callback function
> thingies?  (Because the summary buffer is normally the selected window
> when rendering the article buffer.)

  The widget-echo stuff was not being careful about where it looked for the 
text of the link for echoing purposes.  Try this patch.

-Bill P.

Index: w3-display.el
===================================================================
RCS file: /gd/gnu/cvsroot/w3/lisp/w3-display.el,v
retrieving revision 1.7
diff -c -w -c -w -r1.7 w3-display.el
*** w3-display.el	1998/12/28 16:38:40	1.7
--- w3-display.el	1998/12/28 21:42:37
***************
*** 496,502 ****
--- 496,512 ----
  	    (setq w3-cookie-cache (cons (cons href fname) w3-cookie-cache))))
        (cookie fname st nd))))
  
+ (defun w3-widget-buffer (widget)
+   (let ((overlay (or (widget-get widget :button-overlay)
+ 		     (widget-get widget :field-overlay)))
+ 	(extent (or (widget-get widget :button-extent)
+ 		    (widget-get widget :field-extent))))
+     (or (and overlay (overlay-buffer overlay))
+ 	(and extent (extent-buffer extent)))))
+ 
  (defun w3-widget-echo (widget &rest ignore)
+   (save-excursion
+     (set-buffer (or (w3-widget-buffer widget) (current-buffer)))
      (let* ((url (widget-get widget :href))
  	   (name (widget-get widget :name))
  	   (text (buffer-substring-no-properties (widget-get widget :from)
***************
*** 516,522 ****
  	     (stringp (symbol-value (car check)))
  	     (> (length (symbol-value (car check))) 0)
  	     (throw 'exit (symbol-value (car check))))
! 	(pop check)))))
  
  (defun w3-follow-hyperlink (widget &rest ignore)
    (let* ((target (or (widget-get widget :target) w3-base-target))
--- 526,532 ----
  	       (stringp (symbol-value (car check)))
  	       (> (length (symbol-value (car check))) 0)
  	       (throw 'exit (symbol-value (car check))))
! 	  (pop check))))))
  
  (defun w3-follow-hyperlink (widget &rest ignore)
    (let* ((target (or (widget-get widget :target) w3-base-target))


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

* Re: text/html clickable links fail in p0.63+w3-4.0pre31
  1998-12-28 21:43   ` William M. Perry
@ 1999-01-03 12:51     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-01-03 12:51 UTC (permalink / raw)


wmperry@aventail.com (William M. Perry) writes:

>   The widget-echo stuff was not being careful about where it looked for the 
> text of the link for echoing purposes.  Try this patch.

Thanks; this fixes the problem.

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


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

end of thread, other threads:[~1999-01-03 12:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-04 18:14 text/html clickable links fail in p0.63+w3-4.0pre31 Karl Kleinpaste
1998-12-05 16:06 ` Lars Magne Ingebrigtsen
1998-12-12 19:50   ` William M. Perry
1998-12-28 21:43   ` William M. Perry
1999-01-03 12: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).