diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2022-08-23 04:54:57 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2022-08-23 04:54:57 +0200 |
commit | b7e867b841f47dcff3aeaef9b5608a237386ce70 (patch) | |
tree | 57154cb336fcfdf9fbf80e4c6bb24b07a0432b66 /lisp/dired.el | |
parent | e425b7d231d02e76ec3e3790418121fc07877e70 (diff) | |
download | emacs-b7e867b841f47dcff3aeaef9b5608a237386ce70.tar.gz |
Make point-at-eol and point-at-bol obsolete
* lisp/subr.el (point-at-eol, point-at-bol): Make XEmacs compat
aliases obsolete in favor of `pos-bol'/'line-beginning-position' or
'pos-eol'/'line-end-position'. Update callers.
Ref: https://lists.gnu.org/r/emacs-devel/2022-08/msg00853.html
Diffstat (limited to 'lisp/dired.el')
-rw-r--r-- | lisp/dired.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 01098fdf891..f45d215ed60 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1262,13 +1262,13 @@ The return value is the target column for the file names." (dired-goto-next-file) ;; Use point difference instead of `current-column', because ;; the former works when `dired-hide-details-mode' is enabled. - (let* ((first (- (point) (point-at-bol))) + (let* ((first (- (point) (line-beginning-position))) (target first)) (while (and (not (eobp)) (progn (forward-line) (dired-move-to-filename))) - (when-let* ((distance (- (point) (point-at-bol))) + (when-let* ((distance (- (point) (line-beginning-position))) (higher (> distance target))) (setq target distance))) (and (/= first target) target)))) @@ -1284,7 +1284,7 @@ The return value is the target column for the file names." (while (dired-move-to-filename) ;; Use point difference instead of `current-column', because ;; the former works when `dired-hide-details-mode' is enabled. - (let ((distance (- target (- (point) (point-at-bol)))) + (let ((distance (- target (- (point) (line-beginning-position)))) (inhibit-read-only t)) (unless (zerop distance) (re-search-backward regexp nil t) |