diff options
| author | Stefan Kangas | 2022-08-23 04:54:57 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-08-23 04:54:57 +0200 |
| commit | b7e867b841f47dcff3aeaef9b5608a237386ce70 (patch) | |
| tree | 57154cb336fcfdf9fbf80e4c6bb24b07a0432b66 /admin/gitmerge.el | |
| parent | e425b7d231d02e76ec3e3790418121fc07877e70 (diff) | |
| download | emacs-b7e867b841f47dcff3aeaef9b5608a237386ce70.tar.gz emacs-b7e867b841f47dcff3aeaef9b5608a237386ce70.zip | |
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 'admin/gitmerge.el')
| -rw-r--r-- | admin/gitmerge.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/gitmerge.el b/admin/gitmerge.el index a214dcbcb74..25bed949ad9 100644 --- a/admin/gitmerge.el +++ b/admin/gitmerge.el | |||
| @@ -135,7 +135,7 @@ If nil, the function `gitmerge-default-branch' guesses.") | |||
| 135 | (defun gitmerge-get-sha1 () | 135 | (defun gitmerge-get-sha1 () |
| 136 | "Get SHA1 from commit at point." | 136 | "Get SHA1 from commit at point." |
| 137 | (save-excursion | 137 | (save-excursion |
| 138 | (goto-char (point-at-bol)) | 138 | (goto-char (line-beginning-position)) |
| 139 | (when (looking-at "^[A-Z ]\\s-*\\([a-f0-9]+\\)") | 139 | (when (looking-at "^[A-Z ]\\s-*\\([a-f0-9]+\\)") |
| 140 | (match-string 1)))) | 140 | (match-string 1)))) |
| 141 | 141 | ||
| @@ -187,7 +187,7 @@ If nil, the function `gitmerge-default-branch' guesses.") | |||
| 187 | skip) | 187 | skip) |
| 188 | (when commit | 188 | (when commit |
| 189 | (save-excursion | 189 | (save-excursion |
| 190 | (goto-char (point-at-bol)) | 190 | (goto-char (line-beginning-position)) |
| 191 | (when (looking-at "^\\([A-Z ]\\)\\s-*\\([a-f0-9]+\\)") | 191 | (when (looking-at "^\\([A-Z ]\\)\\s-*\\([a-f0-9]+\\)") |
| 192 | (setq skip (string= (match-string 1) " ")) | 192 | (setq skip (string= (match-string 1) " ")) |
| 193 | (goto-char (match-beginning 2)) | 193 | (goto-char (match-beginning 2)) |
| @@ -195,7 +195,7 @@ If nil, the function `gitmerge-default-branch' guesses.") | |||
| 195 | (dolist (ct gitmerge--commits) | 195 | (dolist (ct gitmerge--commits) |
| 196 | (when (string-match commit (car ct)) | 196 | (when (string-match commit (car ct)) |
| 197 | (setcdr ct (when skip "M")))) | 197 | (setcdr ct (when skip "M")))) |
| 198 | (goto-char (point-at-bol)) | 198 | (goto-char (line-beginning-position)) |
| 199 | (setq buffer-read-only nil) | 199 | (setq buffer-read-only nil) |
| 200 | (delete-char 1) | 200 | (delete-char 1) |
| 201 | (insert (if skip "M" " ")) | 201 | (insert (if skip "M" " ")) |