diff options
| author | Thien-Thi Nguyen | 2005-05-02 02:45:39 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2005-05-02 02:45:39 +0000 |
| commit | 9a4798350aedb99a6ec498b92b577c9d8555d9eb (patch) | |
| tree | 089ef57dcfe45e17d9366efb291ff73726f18755 | |
| parent | 19a31306a06a28308bc6f38a2c6ccd81aa5235ce (diff) | |
| download | emacs-9a4798350aedb99a6ec498b92b577c9d8555d9eb.tar.gz emacs-9a4798350aedb99a6ec498b92b577c9d8555d9eb.zip | |
(rlogin): If there are option-like elements in the parsed args,
take the host to be the first arg immediately following them.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/net/rlogin.el | 7 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1fed88f666d..daa3ba63d66 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,8 +1,17 @@ | |||
| 1 | 2005-05-02 Thien-Thi Nguyen <ttn@gnu.org> | ||
| 2 | |||
| 3 | * net/rlogin.el (rlogin-parse-words): Delete func. | ||
| 4 | (rlogin): Use split-string, not rlogin-parse-words. | ||
| 5 | Also, if there are option-like elements in the parsed args, | ||
| 6 | take the host to be the first arg immediately following them. | ||
| 7 | Suggested by Michael Mauger. | ||
| 8 | |||
| 1 | 2005-05-01 Luc Teirlinck <teirllm@auburn.edu> | 9 | 2005-05-01 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 10 | ||
| 3 | * subr.el (executing-macro): Use `define-obsolete-variable-alias'. | 11 | * subr.el (executing-macro): Use `define-obsolete-variable-alias'. |
| 4 | 12 | ||
| 5 | 2005-05-02 Nick Roberts <nickrob@snap.net.nz> | 13 | 2005-05-02 Nick Roberts <nickrob@snap.net.nz> |
| 14 | |||
| 6 | * progmodes/cc-mode.el (cc-create-define-alist): Use a shell. | 15 | * progmodes/cc-mode.el (cc-create-define-alist): Use a shell. |
| 7 | (cc-mode-cpp-program): Rename to cc-define-list-program and | 16 | (cc-mode-cpp-program): Rename to cc-define-list-program and |
| 8 | move to cc-vars.el. | 17 | move to cc-vars.el. |
diff --git a/lisp/net/rlogin.el b/lisp/net/rlogin.el index b49e5bde10c..67521ca2e73 100644 --- a/lisp/net/rlogin.el +++ b/lisp/net/rlogin.el | |||
| @@ -182,7 +182,12 @@ variable." | |||
| 182 | (append (split-string input-args) | 182 | (append (split-string input-args) |
| 183 | rlogin-explicit-args) | 183 | rlogin-explicit-args) |
| 184 | (split-string input-args))) | 184 | (split-string input-args))) |
| 185 | (host (car args)) | 185 | (host (let ((tail args)) |
| 186 | ;; Find first arg that doesn't look like an option. | ||
| 187 | ;; This still loses for args that take values, feh. | ||
| 188 | (while (and tail (= ?- (aref (car tail) 0))) | ||
| 189 | (setq tail (cdr tail))) | ||
| 190 | (car tail))) | ||
| 186 | (user (or (car (cdr (member "-l" args))) | 191 | (user (or (car (cdr (member "-l" args))) |
| 187 | (user-login-name))) | 192 | (user-login-name))) |
| 188 | (buffer-name (if (string= user (user-login-name)) | 193 | (buffer-name (if (string= user (user-login-name)) |