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.
This commit is contained in:
Henrik Lissner 2019-05-29 23:44:23 -04:00
parent c9493038a0
commit a583d69ae1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -62,7 +62,8 @@ You should use `det-eshell-alias!' to change this.")
eshell-kill-processes-on-exit t eshell-kill-processes-on-exit t
eshell-hist-ignoredups t eshell-hist-ignoredups t
;; don't record command in history if prefixed with whitespace ;; 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 ;; em-prompt
eshell-prompt-regexp "^.* λ " eshell-prompt-regexp "^.* λ "
eshell-prompt-function #'+eshell-default-prompt eshell-prompt-function #'+eshell-default-prompt