summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marshall <simon@gnu.org>1995-12-11 13:52:09 +0000
committerSimon Marshall <simon@gnu.org>1995-12-11 13:52:09 +0000
commit4676637ac131fa5031385fee880c67714c9fe682 (patch)
treecb5170eb954a69c44ad014076211e20bb42c14f6
parente3cae79f6382cef90a84d26abecbdaac3d8b9150 (diff)
downloademacs-4676637ac131fa5031385fee880c67714c9fe682.tar.gz
Use comint-input-sender to send text (Peter Gabriel <gabriel@or.iabg.de>).
-rw-r--r--lisp/comint.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 4d5d1a14bfe..fe15c80b120 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1434,17 +1434,16 @@ applications."
(defun send-invisible (str)
"Read a string without echoing.
-Then send it to the process running in the current buffer. A new-line
-is additionally sent. String is not saved on comint input history list.
+Then send it to the process running in the current buffer.
+The string is sent using `comint-input-sender'.
Security bug: your string can still be temporarily recovered with
\\[view-lossage]."
(interactive "P") ; Defeat snooping via C-x esc
(let ((proc (get-buffer-process (current-buffer))))
(if (not proc)
(error "Current buffer has no process")
- (comint-send-string
- proc (if (stringp str) str (comint-read-noecho "Non-echoed text: " t)))
- (comint-send-string proc "\n"))))
+ (funcall comint-input-sender proc
+ (if (stringp str) str (comint-read-noecho "Non-echoed text: " t))))))
(defun comint-watch-for-password-prompt (string)
"Prompt in the minibuffer for password and send without echoing.