|
From: | Gregory Heytings |
Subject: | Re: PROPOSAL: Repurpose one key and reserve it for third-party packages |
Date: | Tue, 09 Feb 2021 13:01:39 +0000 |
For a long time I have been using such logic bound to `C-a': (if (bolp) (beginning-of-line-text arg) ;; or (back-to-indentation) (if (fboundp 'move-beginning-of-line) (move-beginning-of-line arg) (beginning-of-line arg)))But I don't remember the difference between beginning-of-line-text and back-to-indentation and which one is better, neither the difference between beginning-of-line and move-beginning-of-line.
The main difference between back-to-indentation and beginning-of-line-text is that back-to-indentation ignores the fill-prefix. With a buffer with the following two lines:
1234
5678
with point on "4: - move-beginning-of-line moves point to the beginning of the line - back-to-indentation moves point to "1" - beginning-of-line-text moves point to "1" with point on "8": - move-beginning-of-line moves point to the beginning of the line - back-to-indentation moves point to the beginning of the line - beginning-of-line-text moves point to "5"
[Prev in Thread] | Current Thread | [Next in Thread] |