[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get the current column regardless of the content of the curre
From: |
Emanuel Berg |
Subject: |
Re: How to get the current column regardless of the content of the current line? |
Date: |
Fri, 16 Dec 2022 22:43:02 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Gregory Heytings wrote:
>>> (defun my/current-column ()
>>> (- (point) (pos-bol)))
>>
>> It's not entirely correct to call this a "column", though...
>
> That's what the OP wanted, indeed it's not a "column" in the
> visual sense anymore (e.g. a TAB counts for 1), but it's
> still a "column" in a "number of characters" sense.
One shouldn't use tabs anyway ...
--
underground experts united
https://dataswamp.org/~incal
Re: How to get the current column regardless of the content of the current line?, Jean Louis, 2022/12/16