From a583d69ae10829faac39fef133186a64208c56d7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 29 May 2019 23:44:23 -0400 Subject: [PATCH] Fix #1442: void-function eshell-input-filter-initial-space eshell-input-filter-initial-space was introduced in Emacs 26. I've inlined its definition, at least until we drop 25.x support. --- modules/term/eshell/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/term/eshell/config.el b/modules/term/eshell/config.el index c8a65540b..8739067e5 100644 --- a/modules/term/eshell/config.el +++ b/modules/term/eshell/config.el @@ -62,7 +62,8 @@ You should use `det-eshell-alias!' to change this.") eshell-kill-processes-on-exit t eshell-hist-ignoredups t ;; don't record command in history if prefixed with whitespace - eshell-input-filter #'eshell-input-filter-initial-space + ;; TODO Use `eshell-input-filter-initial-space' when Emacs 25 support is dropped + eshell-input-filter (lambda (input) (not (string-match-p "\\`\\s-+" input))) ;; em-prompt eshell-prompt-regexp "^.* λ " eshell-prompt-function #'+eshell-default-prompt