From ce50ddd563758bd39a7f9e48b1fd96e2cd2047ec Mon Sep 17 00:00:00 2001 From: Benjamin Andresen Date: Sat, 22 Jul 2017 00:12:04 +0200 Subject: [PATCH] Fix: tools/eshell: get rid of compile warnings in quit-or-delete-char --- modules/tools/eshell/autoload/eshell.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tools/eshell/autoload/eshell.el b/modules/tools/eshell/autoload/eshell.el index c65d95215..33d219037 100644 --- a/modules/tools/eshell/autoload/eshell.el +++ b/modules/tools/eshell/autoload/eshell.el @@ -38,9 +38,9 @@ module to be loaded." ;;;###autoload (defun +eshell/quit-or-delete-char (arg) (interactive "p") - (if (and (eolp) (looking-back eshell-prompt-regexp)) + (if (and (eolp) (looking-back eshell-prompt-regexp nil)) (eshell-life-is-too-much) - (delete-forward-char arg))) + (delete-char arg))) (defun +eshell--outside-prompt-p () (< (point) eshell-last-output-end))