|
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:41:33 +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)))))
Sorry, the progn is unnecessary: (defun my/current-column () (- (point) (save-excursion (beginning-of-line) (point))))
[Prev in Thread] | Current Thread | [Next in Thread] |