summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-11-15 07:45:52 -0800
committerFranck Cuny <franck@fcuny.net>2022-11-15 07:45:52 -0800
commit62f6069e0694147cdc7188fd1e255bd4cf2fe1a8 (patch)
tree233f65d6a58eb90ad564a76a13eedb661cef9094
parentfeat(envrc): add a new package: envrc (diff)
downloademacs.d-62f6069e0694147cdc7188fd1e255bd4cf2fe1a8.tar.gz
fix(eshell): use correct function
`point-at-bol` is deprecated and `pos-bol` is recommended.

Change-Id: I2a447ca5832ac52af15cf37708308368bb006cb8
-rw-r--r--emacs/custom/my-eshell.el4
1 files changed, 2 insertions, 2 deletions
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)))))