mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -344,7 +344,7 @@ based on the print level of the message. For example:
|
||||
(letf! (defun current-fill-column ()
|
||||
(let ((target (funcall current-fill-column)))
|
||||
(save-excursion
|
||||
(goto-char (line-beginning-position))
|
||||
(goto-char (pos-bol))
|
||||
(let ((n 0)
|
||||
(c 0))
|
||||
(while (and (not (eolp)) (<= n target))
|
||||
|
@ -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)))
|
||||
|
Reference in New Issue
Block a user