aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1995-05-12 17:51:12 +0000
committerRoland McGrath1995-05-12 17:51:12 +0000
commitcd17ae3fe7b9d33d6eda8b1a07c9a5f6cda8cf55 (patch)
treecafa5df36e9d2b8d81af1893bc1a21260836397e
parenteae2c972e7c10088ced31c2d89b68eddd35773c3 (diff)
downloademacs-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.el7
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
134function `rlogin-directory-tracking-mode' rather than simply setting the 136function `rlogin-directory-tracking-mode' rather than simply setting the
135variable." 137variable."
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)