GNU bug report logs - #1176
redisplay bugs

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Thu, 16 Oct 2008 04:50:02 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: 1176-quiet <at> debbugs.gnu.org
Subject: bug#1176: redisplay bugs
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".




This bug report was last modified 16 years and 216 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.