aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-23 03:45:19 +0000
committerRichard M. Stallman1997-05-23 03:45:19 +0000
commitbdd8ea0b448e5dc9b80b9bba89ef35b197082a4d (patch)
treec2d22c24c2d88367dc7aa1446470151a821aad03
parent50041737f9207e917092f16c35814c9e55bef679 (diff)
downloademacs-bdd8ea0b448e5dc9b80b9bba89ef35b197082a4d.tar.gz
emacs-bdd8ea0b448e5dc9b80b9bba89ef35b197082a4d.zip
Use defgroup and defcustom.
-rw-r--r--lisp/terminal.el36
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
50terminal-emulator. This character acts as a prefix for commands 55terminal-emulator. This character acts as a prefix for commands
51to the emulator program itself. Type this character twice to send 56to the emulator program itself. Type this character twice to send
52it through the emulator. Type ? after typing it for a list of 57it through the emulator. Type ? after typing it for a list of
53possible commands. 58possible commands.
54This variable is local to each terminal-emulator buffer.") 59This 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
58past the bottom of the screen. If nil, output will win and `wrap' to the top 65past the bottom of the screen. If nil, output will win and `wrap' to the top
59of the screen. 66of the screen.
60This variable is local to each terminal-emulator buffer.") 67This 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.
64This variable is local to each terminal-emulator buffer.") 73This 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
71terminal-emulator before a screen redisplay is forced. 82terminal-emulator before a screen redisplay is forced.
72Set this to a large value for greater throughput, 83Set this to a large value for greater throughput,
73set it smaller for more frequent updates but overall slower 84set it smaller for more frequent updates but overall slower
74performance.") 85performance."
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)