aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Porter2024-06-02 13:07:10 -0700
committerJim Porter2024-06-03 20:23:35 -0700
commitcd7dd3e675ef2e3ae6e30ee70523ceb7f1fd1d67 (patch)
tree3620497f3f9b09f7983758dd9019d80168277f48
parent991600a82c7678fa15301e609f259cf3ec184089 (diff)
downloademacs-cd7dd3e675ef2e3ae6e30ee70523ceb7f1fd1d67.tar.gz
emacs-cd7dd3e675ef2e3ae6e30ee70523ceb7f1fd1d67.zip
Check for a real process when trying to find password prompts in Eshell
* lisp/eshell/esh-mode.el (eshell-watch-for-password-prompt): Use 'eshell-head-process'.
-rw-r--r--lisp/eshell/esh-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index ea2ccb08be1..e6f3cb5f6ad 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -952,7 +952,7 @@ buffer's process if STRING contains a password prompt defined by
952`eshell-password-prompt-regexp'. 952`eshell-password-prompt-regexp'.
953 953
954This function could be in the list `eshell-output-filter-functions'." 954This function could be in the list `eshell-output-filter-functions'."
955 (when eshell-foreground-command 955 (when (eshell-head-process)
956 (save-excursion 956 (save-excursion
957 (let ((case-fold-search t)) 957 (let ((case-fold-search t))
958 (goto-char eshell-last-output-block-begin) 958 (goto-char eshell-last-output-block-begin)