Subject: bug#1176: redisplay bugs

From: Glenn Morris <[email-masked]>
Date: Tue, 21 Oct 2008 21:55:07 -0400

Glenn Morris wrote (on Tue, 21 Oct 2008 at 21:43 -0400):

> > 2. When a substring of a before-string beginning at offset O has a
> >    display property which is a string S, the first O characters of S
> >    are not displayed.  If S is not at least O+1 characters long, then
> >    disastrous things start to happen.
> 
> I have difficulty understanding this ("the first 0 characters" are not
> displayed?), but as I said before it seems to be fixed.

Oh, that is "O" the letter, not "0" the number. This example proves it
is fixed in 22.2 and up:

(let ((buff (generate-new-buffer "overlay test"))
      o)
  (with-current-buffer buff
    (insert "text")
    (setq o (make-overlay (point-min) (point-max)))
    (overlay-put o 'before-string
                 (concat "be"
                  (propertize "fore" 'display "FORE")))
    (pop-to-buffer buff)))

In 22.1, one sees "beREtext", in 22.2 "beFOREtext".