aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Marshall1995-12-11 13:52:09 +0000
committerSimon Marshall1995-12-11 13:52:09 +0000
commit6152f5f0708d0c185a67ea1aeab13d40de21c63f (patch)
tree7a686ecc7365ed3438d4246917b580689c77a56b
parent7d7d915a20ee9c54e284c03848bd8c49f10939d0 (diff)
downloademacs-6152f5f0708d0c185a67ea1aeab13d40de21c63f.tar.gz
emacs-6152f5f0708d0c185a67ea1aeab13d40de21c63f.zip
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."
1434 1434
1435(defun send-invisible (str) 1435(defun send-invisible (str)
1436 "Read a string without echoing. 1436 "Read a string without echoing.
1437Then send it to the process running in the current buffer. A new-line 1437Then send it to the process running in the current buffer.
1438is additionally sent. String is not saved on comint input history list. 1438The string is sent using `comint-input-sender'.
1439Security bug: your string can still be temporarily recovered with 1439Security bug: your string can still be temporarily recovered with
1440\\[view-lossage]." 1440\\[view-lossage]."
1441 (interactive "P") ; Defeat snooping via C-x esc 1441 (interactive "P") ; Defeat snooping via C-x esc
1442 (let ((proc (get-buffer-process (current-buffer)))) 1442 (let ((proc (get-buffer-process (current-buffer))))
1443 (if (not proc) 1443 (if (not proc)
1444 (error "Current buffer has no process") 1444 (error "Current buffer has no process")
1445 (comint-send-string 1445 (funcall comint-input-sender proc
1446 proc (if (stringp str) str (comint-read-noecho "Non-echoed text: " t))) 1446 (if (stringp str) str (comint-read-noecho "Non-echoed text: " t))))))
1447 (comint-send-string proc "\n"))))
1448 1447
1449(defun comint-watch-for-password-prompt (string) 1448(defun comint-watch-for-password-prompt (string)
1450 "Prompt in the minibuffer for password and send without echoing. 1449 "Prompt in the minibuffer for password and send without echoing.