Re: hard to understand code for the representation of tab

2024-10-13 Thread Patrice Dumas
On Sat, Oct 12, 2024 at 08:51:08PM +0100, Gavin Smith wrote: > Here's an attempt at explaining it: > > pl_chars is the current column. We want to find the next multiple of 8 > after the current column, assuming a tab is 8 spaces. We add 8 to the > current column, and then subtract the remainder

Re: hard to understand code for the representation of tab

2024-10-12 Thread Gavin Smith
On Sat, Oct 12, 2024 at 09:15:10PM +0200, Patrice Dumas wrote: > Hello, > > 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

Re: hard to understand code for the representation of tab

2024-10-12 Thread Eli Zaretskii
> Date: Sat, 12 Oct 2024 21:15:10 +0200 > From: Patrice Dumas > > 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

hard to understand code for the representation of tab

2024-10-12 Thread Patrice Dumas
Hello, 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