From 62f6069e0694147cdc7188fd1e255bd4cf2fe1a8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 15 Nov 2022 07:45:52 -0800 Subject: fix(eshell): use correct function `point-at-bol` is deprecated and `pos-bol` is recommended. Change-Id: I2a447ca5832ac52af15cf37708308368bb006cb8 --- emacs/custom/my-eshell.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'emacs/custom') diff --git a/emacs/custom/my-eshell.el b/emacs/custom/my-eshell.el index a5cc33b..f382241 100644 --- a/emacs/custom/my-eshell.el +++ b/emacs/custom/my-eshell.el @@ -55,7 +55,7 @@ "Capture last command prompt and its output." (let ((beg (save-excursion (goto-char (eshell-beginning-of-input)) - (goto-char (point-at-bol))))) + (goto-char (pos-bol))))) (when (derived-mode-p 'eshell-mode) (buffer-substring-no-properties beg (eshell-end-of-output))))) @@ -71,7 +71,7 @@ append to it, while separating multiple outputs with (goto-char (point-max)) (unless (eq (point-min) (point-max)) (insert (format "\n%s\n\n" my/eshell-output-delimiter))) - (goto-char (point-at-bol)) + (goto-char (pos-bol)) (insert eshell-output) (switch-to-buffer-other-window (current-buffer))))) -- cgit 1.4.1