std-entab | ![]() |
(std-entab <str> <n>)
(std-entab8 <str>) ; = (std-entab <str> 8)
std-entab compresses a string to use tabulators instead of multiple spaces. The number n (mostly used with 8) gives the multiplicator at which positions the tabs jump to, based on 1.
n=8: => (1 9 17 ...)
Most used is probably entab8 which is defined as (defun entab8 (s) (std-entab s 8))
It is the complement to std-detab.
(std-entab " test" 8) => "\ttest"
str: a string.
n: a positive integer number >0.
A string.
None.
(std-require 'STDSTR)
Defined in STDSTR