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: Gregory Heytings
Subject: Re: How to get the current column regardless of the content of the current line?
Date: Thu, 15 Dec 2022 21:37:52 +0000



Which function could I use to obtain the column of the current position that would work for any line regardless of its content?


(defun my/current-column ()
  (- (point) (progn (save-excursion (beginning-of-line) (point)))))




reply via email to

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