help-gnu-emacs
[Top][All Lists]
Advanced

[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: Thu, 15 Dec 2022 23:00:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Stefan Monnier via Users list for the GNU Emacs text editor wrote:

>> (defun my/current-column ()
>>   (- (point) (save-excursion (beginning-of-line) (point))))
>                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>                (line-beginning-position)

(pos-bol)?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]