unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4040: 23.1; before-string overlay causes error when scrolling
@ 2009-08-04 22:51 Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2009-08-04 22:51 UTC (permalink / raw)
  To: bug-gnu-emacs

Evaluating this form signals an error:

ELISP> (with-temp-buffer
	 (switch-to-buffer (current-buffer))
	 (insert-char ?x (1+ (window-width)))
	 (let ((ovl (make-overlay (1- (point)) (point))))
	   (overlay-put ovl 'before-string " "))
	 (goto-char 1)
	 (scroll-up 1))
*** Eval error ***  Args out of range: 0

It comes from get_char_property_and_overlay, which is called with
position == 0 by pos_visible_p.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."






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

* bug#4040: 23.1; before-string overlay causes error when scrolling
@ 2010-01-09 19:48 Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2010-01-09 19:48 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 4040

> Evaluating this form signals an error:
>
> ELISP> (with-temp-buffer
> 	 (switch-to-buffer (current-buffer))
> 	 (insert-char ?x (1+ (window-width)))
> 	 (let ((ovl (make-overlay (1- (point)) (point))))
> 	   (overlay-put ovl 'before-string " "))
> 	 (goto-char 1)
> 	 (scroll-up 1))
> *** Eval error ***  Args out of range: 0
>
> It comes from get_char_property_and_overlay, which is called with
> position == 0 by pos_visible_p.

Thanks, I've checked in a fix.






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

end of thread, other threads:[~2010-01-09 19:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-04 22:51 bug#4040: 23.1; before-string overlay causes error when scrolling Andreas Schwab
  -- strict thread matches above, loose matches on Subject: below --
2010-01-09 19:48 Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).