comparison lisp/rlogin.el @ 11805:95a2506fba60

(rlogin-history): New defvar. (rlogin): Use rlogin-history as history var in read-from-minibuffer.
author Roland McGrath <roland@gnu.org>
date Fri, 12 May 1995 17:51:12 +0000
parents 7b78e66e6e3d
children 0b0b0c2e5254
comparison
equal deleted inserted replaced
11804:7a7da7fca594 11805:95a2506fba60
18 ;; 18 ;;
19 ;; You should have received a copy of the GNU General Public License 19 ;; You should have received a copy of the GNU General Public License
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
27 ;; Support for remote logins using `rlogin'. 27 ;; Support for remote logins using `rlogin'.
28 ;; This program is layered on top of shell.el; the code here only accounts 28 ;; This program is layered on top of shell.el; the code here only accounts
100 (define-key rlogin-mode-map "\C-i" 'rlogin-tab-or-complete))) 100 (define-key rlogin-mode-map "\C-i" 'rlogin-tab-or-complete)))
101 101
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.
108 Input is sent line-at-a-time to the remote connection. 110 Input is sent line-at-a-time to the remote connection.
109 111
132 134
133 If you wish to change directory tracking styles during a session, use the 135 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)
141 (args (if rlogin-explicit-args 144 (args (if rlogin-explicit-args
142 (append (rlogin-parse-words input-args) 145 (append (rlogin-parse-words input-args)