summaryrefslogtreecommitdiff
path: root/lisp/eshell/esh-mode.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-07-16 12:59:04 +0000
committerGerd Moellmann <gerd@gnu.org>2001-07-16 12:59:04 +0000
commita07c7ade250d6c2f5ef7230fcc3aeb23905298ce (patch)
treea644ed83797f1694644cb01bc6e131cebf4be222 /lisp/eshell/esh-mode.el
parent3c3e43ef063d8305b4d615d746fd943d0fc01fff (diff)
downloademacs-a07c7ade250d6c2f5ef7230fcc3aeb23905298ce.tar.gz
(eshell-send-invisible): Renamed from
send-invisible, which is already defined in Comint. (eshell-watch-for-password-prompt): Use it.
Diffstat (limited to 'lisp/eshell/esh-mode.el')
-rw-r--r--lisp/eshell/esh-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index c284f6f3ffc..acf8b22fecf 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -1,6 +1,6 @@
;;; esh-mode.el --- user interface
-;; Copyright (C) 1999, 2000 Free Software Foundation
+;; Copyright (C) 1999, 2000, 2001 Free Software Foundation
;; Author: John Wiegley <johnw@gnu.org>
@@ -1017,7 +1017,7 @@ a key."
(custom-add-option 'eshell-output-filter-functions
'eshell-truncate-buffer)
-(defun send-invisible (str)
+(defun eshell-send-invisible (str)
"Read a string without echoing.
Then send it to the process running in the current buffer."
(interactive "P") ; Defeat snooping via C-x ESC ESC
@@ -1031,7 +1031,7 @@ Then send it to the process running in the current buffer."
(defun eshell-watch-for-password-prompt ()
"Prompt in the minibuffer for password and send without echoing.
-This function uses `send-invisible' to read and send a password to the
+This function uses `eshell-send-invisible' to read and send a password to the
buffer's process if STRING contains a password prompt defined by
`eshell-password-prompt-regexp'.
@@ -1042,7 +1042,7 @@ This function could be in the list `eshell-output-filter-functions'."
(beginning-of-line)
(if (re-search-forward eshell-password-prompt-regexp
eshell-last-output-end t)
- (send-invisible nil)))))
+ (eshell-send-invisible nil)))))
(custom-add-option 'eshell-output-filter-functions
'eshell-watch-for-password-prompt)