* bug#16753: 24.3.50; format function doesn't pad properly when given a fontified string
@ 2014-02-14 15:17 Oleh
2014-02-14 15:34 ` Oleh Krehel
0 siblings, 1 reply; 2+ messages in thread
From: Oleh @ 2014-02-14 15:17 UTC (permalink / raw)
To: 16753
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#16753: 24.3.50; format function doesn't pad properly when given a fontified string
2014-02-14 15:17 bug#16753: 24.3.50; format function doesn't pad properly when given a fontified string Oleh
@ 2014-02-14 15:34 ` Oleh Krehel
0 siblings, 0 replies; 2+ messages in thread
From: Oleh Krehel @ 2014-02-14 15:34 UTC (permalink / raw)
To: 16753
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
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-14 15:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-14 15:17 bug#16753: 24.3.50; format function doesn't pad properly when given a fontified string Oleh
2014-02-14 15:34 ` Oleh Krehel
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.