fix: rename {b,e}ol functions to pos-{b,e}ol

These two functions were introduced in emacs-mirror/emacs@f117b5df4d
as `bol` and `eol`, but were renamed to `pos-bol` and `pos-eol` in
emacs-mirror/emacs@2614e53216.

Close: #8242
This commit is contained in:
Henrik Lissner
2025-01-14 13:52:41 -05:00
parent 93ef81bfd4
commit 373b7aa976
5 changed files with 10 additions and 9 deletions

View File

@ -200,7 +200,7 @@ narrowing doesn't affect other windows displaying the same buffer. Call
Inspired from http://demonastery.org/2013/04/emacs-evil-narrow-region/"
(interactive (if (region-active-p)
(list (doom-region-beginning) (doom-region-end))
(list (bol) (eol))))
(list (pos-bol) (pos-eol))))
(deactivate-mark)
(let ((orig-buffer (current-buffer)))
(with-current-buffer (switch-to-buffer (clone-indirect-buffer nil nil))
@ -241,7 +241,7 @@ If the current buffer is not an indirect buffer, it is `widen'ed."
"Narrow the buffer to BEG END. If narrowed, widen it."
(interactive (if (region-active-p)
(list (doom-region-beginning) (doom-region-end))
(list (bol) (eol))))
(list (pos-bol) (pos-eol))))
(if (buffer-narrowed-p)
(widen)
(narrow-to-region beg end)))