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

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

bug#46317: 27.1; format may return string with wrong text property posit


From: Eli Zaretskii
Subject: bug#46317: 27.1; format may return string with wrong text property positions
Date: Sat, 06 Feb 2021 11:55:35 +0200

> From: ynyaaa@gmail.com
> Date: Fri, 05 Feb 2021 14:14:57 +0900
> 
> 
> The strings in the list retruned by the form below should have same text
> property positions. But for '%3s' and '%3S', strings have wrong text
> property positions.
> 
> (let ((s (propertize "X" 'prop "val")))
>   (list (format (concat "%3s/" s) 12)
>         (format (concat "%3S/" s) 12)
>         (format (concat "%3d/" s) 12)
>         (format (concat "%-3s/" s) 12)
>         (format (concat "%-3S/" s) 12)
>         (format (concat "%-3d/" s) 12)
>         ))
> =>(#(" 12/X" 1 2 (prop "val"))
>    #(" 12/X" 1 2 (prop "val"))
>    #(" 12/X" 4 5 (prop "val"))
>    #("12 /X" 4 5 (prop "val"))
>    #("12 /X" 4 5 (prop "val"))
>    #("12 /X" 4 5 (prop "val")))

Thanks, I hope I fixed this now on the master branch.





reply via email to

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