[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 Krehel |
Subject: |
bug#16753: 24.3.50; format function doesn't pad properly when given a fontified string |
Date: |
Fri, 14 Feb 2014 16:34:28 +0100 |
Nevermind the previous message. I figured it out.
Turns out org.el has code indented with both tabs and spaces.
On 14 February 2014 16:17, Oleh <o.krehel@tue.nl> wrote:
> 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
>
>
>