4

I am referring the documentation for truncate-string-to-width from here.

It says,

(truncate-string-to-width "\tab\t" 12 4)

will output,

ab

But what i get in my machine (emacs versioned 25.1.50.1) is one tab character with no alphabets printed. And similarly, when i do

(message "%s"
                 (truncate-string-to-width "\tab\t" 12 4 ?\s))

my mac shows, one tab character plus six space chars. But the documentation quotes,

⇒ " ab "

Why does truncate-string-to-width truncate the alphabets in my machine?

Madhavan
  • 1,957
  • 12
  • 28

0 Answers0