aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-03-27 21:39:30 -0400
committerGlenn Morris2014-03-27 21:39:30 -0400
commit6638d67cd23f5266274b6a15c0b0ae215a2505d2 (patch)
tree5e11e4efde031aa1220274e8b88cc3ff3d34123f
parent95de732d843a80a5061842d230a739190d00dfee (diff)
downloademacs-6638d67cd23f5266274b6a15c0b0ae215a2505d2.tar.gz
emacs-6638d67cd23f5266274b6a15c0b0ae215a2505d2.zip
Make term-file-aliases into a defcustom; tweaks previous change
-rw-r--r--doc/lispref/os.texi8
-rw-r--r--lisp/faces.el36
2 files changed, 24 insertions, 20 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 8706d898888..cad5d7ec544 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -465,7 +465,7 @@ a normal hook that Emacs runs after initializing a new text terminal.
465You could use this hook to define initializations for terminals that do not 465You could use this hook to define initializations for terminals that do not
466have their own libraries. @xref{Hooks}. 466have their own libraries. @xref{Hooks}.
467 467
468@defvar term-file-prefix 468@defopt term-file-prefix
469@cindex @env{TERM} environment variable 469@cindex @env{TERM} environment variable
470If the value of this variable is non-@code{nil}, Emacs loads a 470If the value of this variable is non-@code{nil}, Emacs loads a
471terminal-specific initialization file as follows: 471terminal-specific initialization file as follows:
@@ -480,14 +480,14 @@ init file if you do not wish to load the
480terminal-initialization file. 480terminal-initialization file.
481 481
482On MS-DOS, Emacs sets the @env{TERM} environment variable to @samp{internal}. 482On MS-DOS, Emacs sets the @env{TERM} environment variable to @samp{internal}.
483@end defvar 483@end defopt
484 484
485@defvar term-file-aliases 485@defopt term-file-aliases
486This variable is an an association list mapping terminal types to 486This variable is an an association list mapping terminal types to
487their aliases. For example, an element of the form @code{("vt102" 487their aliases. For example, an element of the form @code{("vt102"
488. "vt100")} means to treat a terminal of type @samp{vt102} like one of 488. "vt100")} means to treat a terminal of type @samp{vt102} like one of
489type @samp{vt100}. 489type @samp{vt100}.
490@end defvar 490@end defopt
491 491
492@defvar tty-setup-hook 492@defvar tty-setup-hook
493This variable is a normal hook that Emacs runs after initializing a 493This variable is a normal hook that Emacs runs after initializing a
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."
35 (string :tag "Name of directory with term files")) 35 (string :tag "Name of directory with term files"))
36 :group 'terminals) 36 :group 'terminals)
37 37
38(defcustom term-file-aliases
39 '(("apollo" . "vt100")
40 ("vt102" . "vt100")
41 ("vt125" . "vt100")
42 ("vt201" . "vt200")
43 ("vt220" . "vt200")
44 ("vt240" . "vt200")
45 ("vt300" . "vt200")
46 ("vt320" . "vt200")
47 ("vt400" . "vt200")
48 ("vt420" . "vt200")
49 )
50 "Alist of terminal type aliases.
51Entries are of the form (TYPE . ALIAS), where both elements are strings.
52This means to treat a terminal of type TYPE as if it were of type ALIAS."
53 :type '(alist :key-type (string :tag "Terminal")
54 :value-type (string :tag "Alias"))
55 :group 'terminals
56 :version "24.5")
57
38(declare-function xw-defined-colors "term/common-win" (&optional frame)) 58(declare-function xw-defined-colors "term/common-win" (&optional frame))
39 59
40(defvar help-xref-stack-item) 60(defvar help-xref-stack-item)
@@ -2110,22 +2130,6 @@ the above example."
2110Specifically, `tty-run-terminal-initialization' runs this. 2130Specifically, `tty-run-terminal-initialization' runs this.
2111This can be used to fine tune the `input-decode-map', for example.") 2131This can be used to fine tune the `input-decode-map', for example.")
2112 2132
2113(defvar term-file-aliases
2114 '(("apollo" . "vt100")
2115 ("vt102" . "vt100")
2116 ("vt125" . "vt100")
2117 ("vt201" . "vt200")
2118 ("vt220" . "vt200")
2119 ("vt240" . "vt200")
2120 ("vt300" . "vt200")
2121 ("vt320" . "vt200")
2122 ("vt400" . "vt200")
2123 ("vt420" . "vt200")
2124 )
2125 "Alist of terminal type aliases.
2126Entries are of the form (TYPE . ALIAS), where both elements are strings.
2127This means to treat a terminal of type TYPE as if it were of type ALIAS.")
2128
2129(defun tty-run-terminal-initialization (frame &optional type run-hook) 2133(defun tty-run-terminal-initialization (frame &optional type run-hook)
2130 "Run the special initialization code for the terminal type of FRAME. 2134 "Run the special initialization code for the terminal type of FRAME.
2131The optional TYPE parameter may be used to override the autodetected 2135The optional TYPE parameter may be used to override the autodetected