bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16753: 24.3.50; format function doesn't pad properly when given a fo


From: Oleh
Subject: bug#16753: 24.3.50; format function doesn't pad properly when given a fontified string
Date: Fri, 14 Feb 2014 16:17:02 +0100

Reproducible with emacs -q.
Here's the code, each line is followed by its result of evaluation in *scratch*:

    (setq foo #("overlay-put org-speedbar-restriction-lock-overlay          
..." 12 49 (fontified t) 50 55 (fontified t)))
    #("overlay-put org-speedbar-restriction-lock-overlay            ..." 12 49 
(fontified t) 50 55 (fontified t))
    
    (length foo)
    58
    
    (insert (format "%-60s %s" foo "foo"))
    overlay-put org-speedbar-restriction-lock-overlay       ... foonil
    
    (insert (format "%-61s %s" foo "foo"))
    overlay-put org-speedbar-restriction-lock-overlay       ... foonil
    
    (insert (format "%-62s %s" foo "foo"))
    overlay-put org-speedbar-restriction-lock-overlay       ... foonil

    (insert (format "%-66s %s" foo "foo"))
    overlay-put org-speedbar-restriction-lock-overlay       ...  foonil

Expected behavior is that lines should get consecutively larger, but
they don't until "%-66s %s".

regards,
Oleh








reply via email to

[Prev in Thread] Current Thread [Next in Thread]