diff options
| author | Richard M. Stallman | 1997-05-23 03:45:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-23 03:45:19 +0000 |
| commit | bdd8ea0b448e5dc9b80b9bba89ef35b197082a4d (patch) | |
| tree | c2d22c24c2d88367dc7aa1446470151a821aad03 | |
| parent | 50041737f9207e917092f16c35814c9e55bef679 (diff) | |
| download | emacs-bdd8ea0b448e5dc9b80b9bba89ef35b197082a4d.tar.gz emacs-bdd8ea0b448e5dc9b80b9bba89ef35b197082a4d.zip | |
Use defgroup and defcustom.
| -rw-r--r-- | lisp/terminal.el | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/lisp/terminal.el b/lisp/terminal.el index 8f8da8a14f6..d6138aa8ea2 100644 --- a/lisp/terminal.el +++ b/lisp/terminal.el | |||
| @@ -45,33 +45,46 @@ | |||
| 45 | 45 | ||
| 46 | (require 'ehelp) | 46 | (require 'ehelp) |
| 47 | 47 | ||
| 48 | (defvar terminal-escape-char ?\C-^ | 48 | (defgroup terminal nil |
| 49 | "Terminal emulator for Emacs." | ||
| 50 | :group 'terminals) | ||
| 51 | |||
| 52 | |||
| 53 | (defcustom terminal-escape-char ?\C-^ | ||
| 49 | "*All characters except for this are passed verbatim through the | 54 | "*All characters except for this are passed verbatim through the |
| 50 | terminal-emulator. This character acts as a prefix for commands | 55 | terminal-emulator. This character acts as a prefix for commands |
| 51 | to the emulator program itself. Type this character twice to send | 56 | to the emulator program itself. Type this character twice to send |
| 52 | it through the emulator. Type ? after typing it for a list of | 57 | it through the emulator. Type ? after typing it for a list of |
| 53 | possible commands. | 58 | possible commands. |
| 54 | This variable is local to each terminal-emulator buffer.") | 59 | This variable is local to each terminal-emulator buffer." |
| 60 | :type 'character | ||
| 61 | :group 'terminal) | ||
| 55 | 62 | ||
| 56 | (defvar terminal-scrolling t ;;>> Setting this to T sort-of defeats my whole aim in writing this package... | 63 | (defcustom terminal-scrolling t ;;>> Setting this to T sort-of defeats my whole aim in writing this package... |
| 57 | "*If non-nil, the terminal-emulator will losingly `scroll' when output occurs | 64 | "*If non-nil, the terminal-emulator will losingly `scroll' when output occurs |
| 58 | past the bottom of the screen. If nil, output will win and `wrap' to the top | 65 | past the bottom of the screen. If nil, output will win and `wrap' to the top |
| 59 | of the screen. | 66 | of the screen. |
| 60 | This variable is local to each terminal-emulator buffer.") | 67 | This variable is local to each terminal-emulator buffer." |
| 68 | :type 'boolean | ||
| 69 | :group 'terminal) | ||
| 61 | 70 | ||
| 62 | (defvar terminal-more-processing t | 71 | (defcustom terminal-more-processing t |
| 63 | "*If non-nil, do more-processing. | 72 | "*If non-nil, do more-processing. |
| 64 | This variable is local to each terminal-emulator buffer.") | 73 | This variable is local to each terminal-emulator buffer." |
| 74 | :type 'boolean | ||
| 75 | :group 'terminal) | ||
| 65 | 76 | ||
| 66 | ;; If you are the sort of loser who uses scrolling without more breaks | 77 | ;; If you are the sort of loser who uses scrolling without more breaks |
| 67 | ;; and expects to actually see anything, you should probably set this to | 78 | ;; and expects to actually see anything, you should probably set this to |
| 68 | ;; around 400 | 79 | ;; around 400 |
| 69 | (defvar terminal-redisplay-interval 5000 | 80 | (defcustom terminal-redisplay-interval 5000 |
| 70 | "*Maximum number of characters which will be processed by the | 81 | "*Maximum number of characters which will be processed by the |
| 71 | terminal-emulator before a screen redisplay is forced. | 82 | terminal-emulator before a screen redisplay is forced. |
| 72 | Set this to a large value for greater throughput, | 83 | Set this to a large value for greater throughput, |
| 73 | set it smaller for more frequent updates but overall slower | 84 | set it smaller for more frequent updates but overall slower |
| 74 | performance.") | 85 | performance." |
| 86 | :type 'integer | ||
| 87 | :group 'terminal) | ||
| 75 | 88 | ||
| 76 | (defvar terminal-more-break-insertion | 89 | (defvar terminal-more-break-insertion |
| 77 | "*** More break -- Press space to continue ***") | 90 | "*** More break -- Press space to continue ***") |
| @@ -1044,8 +1057,11 @@ move to start of new line, clear to end of line." | |||
| 1044 | ;; This used to have `new' in it, but that loses outside BSD | 1057 | ;; This used to have `new' in it, but that loses outside BSD |
| 1045 | ;; and it's apparently not needed in BSD. | 1058 | ;; and it's apparently not needed in BSD. |
| 1046 | 1059 | ||
| 1047 | (defvar explicit-shell-file-name nil | 1060 | (defcustom explicit-shell-file-name nil |
| 1048 | "*If non-nil, is file name to use for explicitly requested inferior shell.") | 1061 | "*If non-nil, is file name to use for explicitly requested inferior shell." |
| 1062 | :type '(choice (const :tag "None" nil) | ||
| 1063 | file) | ||
| 1064 | :group 'terminal) | ||
| 1049 | 1065 | ||
| 1050 | ;;;###autoload | 1066 | ;;;###autoload |
| 1051 | (defun terminal-emulator (buffer program args &optional width height) | 1067 | (defun terminal-emulator (buffer program args &optional width height) |