[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hard to understand code for the representation of tab
From: |
Eli Zaretskii |
Subject: |
Re: hard to understand code for the representation of tab |
Date: |
Sat, 12 Oct 2024 22:41:20 +0300 |
> Date: Sat, 12 Oct 2024 21:15:10 +0200
> From: Patrice Dumas <pertusus@free.fr>
>
> This is not important, but in the info code, in info/util.c in the
> printed_representation function, which returns a pointer to string that
> is the printed representation of character (or other logical unit) if it
> were printed at a given screen column.
>
> l 226 for tab there is a code that I do not understand at all,
> *pchars = ((pl_chars + 8) & 0xf8) - pl_chars;
AFAIU, it computes the number of columns to the next tab stop.
I suggest to try this with different values of pl_chars.