all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Point stuck with adjacent overlays and invisibility spec
@ 2006-03-01  5:05 Chong Yidong
  2006-03-04 17:38 ` Chong Yidong
  0 siblings, 1 reply; 3+ messages in thread
From: Chong Yidong @ 2006-03-01  5:05 UTC (permalink / raw)


(This is based on Ralf Angeli's bug report of Feb 21)

The problem seems to be that adjust_point_for_property fails when we
have invisible text with ellipsis immediately after a 'display string.
I modified Ralf's test case slightly:

  (progn
    (pop-to-buffer (get-buffer-create "*foo*"))
    (erase-buffer)
    (insert "1234567")
    (goto-char (point-min))
    (add-to-invisibility-spec '(outline . t))
    (let ((ov1 (make-overlay 4 5))
          (ov2 (make-overlay 5 6)))
      (overlay-put ov1 'display "xxx"))
      (overlay-put ov2 'invisible 'outline))

This creates a buffer with the contents 1234567, where 4 is overlaid
with the display string "xxx" and 5 is invisible with an ellispis:

123xxx...67

With point on 1, do C-f.  When point reaches 4, I get a Lisp error:

  Debugger entered--Lisp error: (args-out-of-range 5 5)

with no backtrace.  The buffer's redisplay then becomes screwed up.

Everything works as expected if we use '(outline . nil) for the
invisiblity spec, i.e. with no ellipsis.

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

end of thread, other threads:[~2006-03-06  0:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-01  5:05 Point stuck with adjacent overlays and invisibility spec Chong Yidong
2006-03-04 17:38 ` Chong Yidong
2006-03-06  0:50   ` Richard Stallman

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.