diff options
| author | Roland McGrath | 1995-05-12 17:51:12 +0000 |
|---|---|---|
| committer | Roland McGrath | 1995-05-12 17:51:12 +0000 |
| commit | cd17ae3fe7b9d33d6eda8b1a07c9a5f6cda8cf55 (patch) | |
| tree | cafa5df36e9d2b8d81af1893bc1a21260836397e | |
| parent | eae2c972e7c10088ced31c2d89b68eddd35773c3 (diff) | |
| download | emacs-cd17ae3fe7b9d33d6eda8b1a07c9a5f6cda8cf55.tar.gz emacs-cd17ae3fe7b9d33d6eda8b1a07c9a5f6cda8cf55.zip | |
(rlogin-history): New defvar.
(rlogin): Use rlogin-history as history var in read-from-minibuffer.
| -rw-r--r-- | lisp/rlogin.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/rlogin.el b/lisp/rlogin.el index 243714bd1cd..30a3fcb3f43 100644 --- a/lisp/rlogin.el +++ b/lisp/rlogin.el | |||
| @@ -20,7 +20,7 @@ | |||
| 20 | ;; along with this program; if not, write to: The Free Software Foundation, | 20 | ;; along with this program; if not, write to: The Free Software Foundation, |
| 21 | ;; Inc.; 675 Massachusetts Avenue.; Cambridge, MA 02139, USA. | 21 | ;; Inc.; 675 Massachusetts Avenue.; Cambridge, MA 02139, USA. |
| 22 | 22 | ||
| 23 | ;; $Id: rlogin.el,v 1.26 1995/04/07 22:17:06 friedman Exp friedman $ | 23 | ;; $Id: rlogin.el,v 1.27 1995/04/07 22:27:24 friedman Exp roland $ |
| 24 | 24 | ||
| 25 | ;;; Commentary: | 25 | ;;; Commentary: |
| 26 | 26 | ||
| @@ -102,6 +102,8 @@ this variable is set from that.") | |||
| 102 | 102 | ||
| 103 | ;;;###autoload (add-hook 'same-window-regexps "^\\*rlogin-.*\\*\\(\\|<[0-9]+>\\)") | 103 | ;;;###autoload (add-hook 'same-window-regexps "^\\*rlogin-.*\\*\\(\\|<[0-9]+>\\)") |
| 104 | 104 | ||
| 105 | (defvar rlogin-history nil) | ||
| 106 | |||
| 105 | ;;;###autoload | 107 | ;;;###autoload |
| 106 | (defun rlogin (input-args &optional prefix) | 108 | (defun rlogin (input-args &optional prefix) |
| 107 | "Open a network login connection to HOST via the `rlogin' program. | 109 | "Open a network login connection to HOST via the `rlogin' program. |
| @@ -134,7 +136,8 @@ If you wish to change directory tracking styles during a session, use the | |||
| 134 | function `rlogin-directory-tracking-mode' rather than simply setting the | 136 | function `rlogin-directory-tracking-mode' rather than simply setting the |
| 135 | variable." | 137 | variable." |
| 136 | (interactive (list | 138 | (interactive (list |
| 137 | (read-from-minibuffer "rlogin arguments (hostname first): ") | 139 | (read-from-minibuffer "rlogin arguments (hostname first): " |
| 140 | nil nil nil 'rlogin-history) | ||
| 138 | current-prefix-arg)) | 141 | current-prefix-arg)) |
| 139 | 142 | ||
| 140 | (let* ((process-connection-type rlogin-process-connection-type) | 143 | (let* ((process-connection-type rlogin-process-connection-type) |