summaryrefslogtreecommitdiff
path: root/lisp/faces.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-03-27 21:39:30 -0400
committerGlenn Morris <rgm@gnu.org>2014-03-27 21:39:30 -0400
commit6638d67cd23f5266274b6a15c0b0ae215a2505d2 (patch)
tree5e11e4efde031aa1220274e8b88cc3ff3d34123f /lisp/faces.el
parent95de732d843a80a5061842d230a739190d00dfee (diff)
downloademacs-6638d67cd23f5266274b6a15c0b0ae215a2505d2.tar.gz
Make term-file-aliases into a defcustom; tweaks previous change
Diffstat (limited to 'lisp/faces.el')
-rw-r--r--lisp/faces.el36
1 files changed, 20 insertions, 16 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 4a1fa687dee..755de8e3fcd 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -35,6 +35,26 @@ the terminal-initialization file to be loaded."
(string :tag "Name of directory with term files"))
:group 'terminals)
+(defcustom term-file-aliases
+ '(("apollo" . "vt100")
+ ("vt102" . "vt100")
+ ("vt125" . "vt100")
+ ("vt201" . "vt200")
+ ("vt220" . "vt200")
+ ("vt240" . "vt200")
+ ("vt300" . "vt200")
+ ("vt320" . "vt200")
+ ("vt400" . "vt200")
+ ("vt420" . "vt200")
+ )
+ "Alist of terminal type aliases.
+Entries are of the form (TYPE . ALIAS), where both elements are strings.
+This means to treat a terminal of type TYPE as if it were of type ALIAS."
+ :type '(alist :key-type (string :tag "Terminal")
+ :value-type (string :tag "Alias"))
+ :group 'terminals
+ :version "24.5")
+
(declare-function xw-defined-colors "term/common-win" (&optional frame))
(defvar help-xref-stack-item)
@@ -2110,22 +2130,6 @@ the above example."
Specifically, `tty-run-terminal-initialization' runs this.
This can be used to fine tune the `input-decode-map', for example.")
-(defvar term-file-aliases
- '(("apollo" . "vt100")
- ("vt102" . "vt100")
- ("vt125" . "vt100")
- ("vt201" . "vt200")
- ("vt220" . "vt200")
- ("vt240" . "vt200")
- ("vt300" . "vt200")
- ("vt320" . "vt200")
- ("vt400" . "vt200")
- ("vt420" . "vt200")
- )
- "Alist of terminal type aliases.
-Entries are of the form (TYPE . ALIAS), where both elements are strings.
-This means to treat a terminal of type TYPE as if it were of type ALIAS.")
-
(defun tty-run-terminal-initialization (frame &optional type run-hook)
"Run the special initialization code for the terminal type of FRAME.
The optional TYPE parameter may be used to override the autodetected