(let* ((process-connection-type rlogin-process-connection-type)
(args (if rlogin-explicit-args
- (append (rlogin-parse-words input-args)
+ (append (split-string input-args)
rlogin-explicit-args)
- (rlogin-parse-words input-args)))
+ (split-string input-args)))
(host (car args))
(user (or (car (cdr (member "-l" args)))
(user-login-name)))
(goto-char orig-point)))))))
\f
-;; Parse a line into its constituent parts (words separated by
-;; whitespace). Return a list of the words.
-(defun rlogin-parse-words (line)
- (let ((list nil)
- (posn 0)
- (match-data (match-data)))
- (while (string-match "[^ \t\n]+" line posn)
- (setq list (cons (substring line (match-beginning 0) (match-end 0))
- list))
- (setq posn (match-end 0)))
- (set-match-data (match-data))
- (nreverse list)))
-
(defun rlogin-send-Ctrl-C ()
(interactive)
(process-send-string nil "\C-c"))