diff options
| author | Richard M. Stallman | 1997-04-12 02:53:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-12 02:53:36 +0000 |
| commit | c4cfc3dc6e331019428d08ab0c6cc6cde83c1b34 (patch) | |
| tree | fa75d616ceaeab94647e91b930024fd585463b41 | |
| parent | cd482e0573c6e9b4fe1be13c25d9f0f3f8626cb8 (diff) | |
| download | emacs-c4cfc3dc6e331019428d08ab0c6cc6cde83c1b34.tar.gz emacs-c4cfc3dc6e331019428d08ab0c6cc6cde83c1b34.zip | |
Add defgroup's; use defcustom for user vars.
| -rw-r--r-- | lisp/rlogin.el | 53 |
1 files changed, 38 insertions, 15 deletions
diff --git a/lisp/rlogin.el b/lisp/rlogin.el index a197133d63b..db4433a0268 100644 --- a/lisp/rlogin.el +++ b/lisp/rlogin.el | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 23 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 24 | ;; Boston, MA 02111-1307, USA. | 24 | ;; Boston, MA 02111-1307, USA. |
| 25 | 25 | ||
| 26 | ;; $Id: rlogin.el,v 1.34 1996/06/20 17:30:41 friedman Exp friedman $ | 26 | ;; $Id: rlogin.el,v 1.35 1996/06/23 04:31:17 friedman Exp rms $ |
| 27 | 27 | ||
| 28 | ;;; Commentary: | 28 | ;;; Commentary: |
| 29 | 29 | ||
| @@ -42,24 +42,39 @@ | |||
| 42 | (require 'comint) | 42 | (require 'comint) |
| 43 | (require 'shell) | 43 | (require 'shell) |
| 44 | 44 | ||
| 45 | (defvar rlogin-program "rlogin" | 45 | (defgroup rlogin nil |
| 46 | "*Name of program to invoke rlogin") | 46 | "Remote login interface" |
| 47 | :group 'processes | ||
| 48 | :group 'unix) | ||
| 47 | 49 | ||
| 48 | (defvar rlogin-explicit-args nil | ||
| 49 | "*List of arguments to pass to rlogin on the command line.") | ||
| 50 | 50 | ||
| 51 | (defvar rlogin-mode-hook nil | 51 | (defcustom rlogin-program "rlogin" |
| 52 | "*Hooks to run after setting current buffer to rlogin-mode.") | 52 | "*Name of program to invoke rlogin" |
| 53 | :type 'string | ||
| 54 | :group 'rlogin) | ||
| 53 | 55 | ||
| 54 | (defvar rlogin-process-connection-type nil | 56 | (defcustom rlogin-explicit-args nil |
| 57 | "*List of arguments to pass to rlogin on the command line." | ||
| 58 | :type '(repeat (string :tag "Argument")) | ||
| 59 | :group 'rlogin) | ||
| 60 | |||
| 61 | (defcustom rlogin-mode-hook nil | ||
| 62 | "*Hooks to run after setting current buffer to rlogin-mode." | ||
| 63 | :type 'hook | ||
| 64 | :group 'rlogin) | ||
| 65 | |||
| 66 | (defcustom rlogin-process-connection-type nil | ||
| 55 | "*If non-`nil', use a pty for the local rlogin process. | 67 | "*If non-`nil', use a pty for the local rlogin process. |
| 56 | If `nil', use a pipe (if pipes are supported on the local system). | 68 | If `nil', use a pipe (if pipes are supported on the local system). |
| 57 | 69 | ||
| 58 | Generally it is better not to waste ptys on systems which have a static | 70 | Generally it is better not to waste ptys on systems which have a static |
| 59 | number of them. On the other hand, some implementations of `rlogin' assume | 71 | number of them. On the other hand, some implementations of `rlogin' assume |
| 60 | a pty is being used, and errors will result from using a pipe instead.") | 72 | a pty is being used, and errors will result from using a pipe instead." |
| 73 | :type '(choice (const :tag "ptys" t) | ||
| 74 | (const :tag "pipes" nil)) | ||
| 75 | :group 'rlogin) | ||
| 61 | 76 | ||
| 62 | (defvar rlogin-directory-tracking-mode 'local | 77 | (defcustom rlogin-directory-tracking-mode 'local |
| 63 | "*Control whether and how to do directory tracking in an rlogin buffer. | 78 | "*Control whether and how to do directory tracking in an rlogin buffer. |
| 64 | 79 | ||
| 65 | nil means don't do directory tracking. | 80 | nil means don't do directory tracking. |
| @@ -75,18 +90,26 @@ This variable becomes local to a buffer when set in any fashion for it. | |||
| 75 | It is better to use the function of the same name to change the behavior of | 90 | It is better to use the function of the same name to change the behavior of |
| 76 | directory tracking in an rlogin session once it has begun, rather than | 91 | directory tracking in an rlogin session once it has begun, rather than |
| 77 | simply setting this variable, since the function does the necessary | 92 | simply setting this variable, since the function does the necessary |
| 78 | re-synching of directories.") | 93 | re-synching of directories." |
| 94 | :type '(choice (const :tag "off" nil) | ||
| 95 | (const :tag "ftp" t) | ||
| 96 | (const :tag "local" local)) | ||
| 97 | :group 'rlogin) | ||
| 79 | 98 | ||
| 80 | (make-variable-buffer-local 'rlogin-directory-tracking-mode) | 99 | (make-variable-buffer-local 'rlogin-directory-tracking-mode) |
| 81 | 100 | ||
| 82 | (defvar rlogin-host nil | 101 | (defcustom rlogin-host nil |
| 83 | "*The name of the remote host. This variable is buffer-local.") | 102 | "*The name of the remote host. This variable is buffer-local." |
| 103 | :type '(choice (const nil) string) | ||
| 104 | :group 'rlogin) | ||
| 84 | 105 | ||
| 85 | (defvar rlogin-remote-user nil | 106 | (defcustom rlogin-remote-user nil |
| 86 | "*The username used on the remote host. | 107 | "*The username used on the remote host. |
| 87 | This variable is buffer-local and defaults to your local user name. | 108 | This variable is buffer-local and defaults to your local user name. |
| 88 | If rlogin is invoked with the `-l' option to specify the remote username, | 109 | If rlogin is invoked with the `-l' option to specify the remote username, |
| 89 | this variable is set from that.") | 110 | this variable is set from that." |
| 111 | :type '(choice (const nil) string) | ||
| 112 | :group 'rlogin) | ||
| 90 | 113 | ||
| 91 | ;; Initialize rlogin mode map. | 114 | ;; Initialize rlogin mode map. |
| 92 | (defvar rlogin-mode-map '()) | 115 | (defvar rlogin-mode-map '()) |