mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
refactor: replace point-at-{b,e}ol
These were deprecated in 29.1. We'll switch to pol-bol and pos-eol if/when we drop 28.x support.
This commit is contained in:
@ -2349,9 +2349,10 @@ The alist's CAR are lists of formatted switches plus their arguments, e.g.
|
||||
(let ((lead (current-indentation))
|
||||
(buffer (current-buffer)))
|
||||
(while (not (eobp))
|
||||
(let ((heading (string-trim (buffer-substring (point-at-bol) (point-at-eol))))
|
||||
(beg (point-at-bol 2))
|
||||
end)
|
||||
(let ((heading (string-trim
|
||||
(buffer-substring (line-beginning-position)
|
||||
(line-end-position))))
|
||||
(beg (line-beginning-position 2)))
|
||||
(forward-line 1)
|
||||
(while (and (not (eobp))
|
||||
(/= (current-indentation) lead)
|
||||
|
Reference in New Issue
Block a user