diff options
| author | Glenn Morris | 2014-03-27 21:39:30 -0400 |
|---|---|---|
| committer | Glenn Morris | 2014-03-27 21:39:30 -0400 |
| commit | 6638d67cd23f5266274b6a15c0b0ae215a2505d2 (patch) | |
| tree | 5e11e4efde031aa1220274e8b88cc3ff3d34123f | |
| parent | 95de732d843a80a5061842d230a739190d00dfee (diff) | |
| download | emacs-6638d67cd23f5266274b6a15c0b0ae215a2505d2.tar.gz emacs-6638d67cd23f5266274b6a15c0b0ae215a2505d2.zip | |
Make term-file-aliases into a defcustom; tweaks previous change
| -rw-r--r-- | doc/lispref/os.texi | 8 | ||||
| -rw-r--r-- | lisp/faces.el | 36 |
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. | |||
| 465 | You could use this hook to define initializations for terminals that do not | 465 | You could use this hook to define initializations for terminals that do not |
| 466 | have their own libraries. @xref{Hooks}. | 466 | have 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 |
| 470 | If the value of this variable is non-@code{nil}, Emacs loads a | 470 | If the value of this variable is non-@code{nil}, Emacs loads a |
| 471 | terminal-specific initialization file as follows: | 471 | terminal-specific initialization file as follows: |
| @@ -480,14 +480,14 @@ init file if you do not wish to load the | |||
| 480 | terminal-initialization file. | 480 | terminal-initialization file. |
| 481 | 481 | ||
| 482 | On MS-DOS, Emacs sets the @env{TERM} environment variable to @samp{internal}. | 482 | On 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 |
| 486 | This variable is an an association list mapping terminal types to | 486 | This variable is an an association list mapping terminal types to |
| 487 | their aliases. For example, an element of the form @code{("vt102" | 487 | their 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 |
| 489 | type @samp{vt100}. | 489 | type @samp{vt100}. |
| 490 | @end defvar | 490 | @end defopt |
| 491 | 491 | ||
| 492 | @defvar tty-setup-hook | 492 | @defvar tty-setup-hook |
| 493 | This variable is a normal hook that Emacs runs after initializing a | 493 | This 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. | ||
| 51 | Entries are of the form (TYPE . ALIAS), where both elements are strings. | ||
| 52 | This 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." | |||
| 2110 | Specifically, `tty-run-terminal-initialization' runs this. | 2130 | Specifically, `tty-run-terminal-initialization' runs this. |
| 2111 | This can be used to fine tune the `input-decode-map', for example.") | 2131 | This 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. | ||
| 2126 | Entries are of the form (TYPE . ALIAS), where both elements are strings. | ||
| 2127 | This 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. |
| 2131 | The optional TYPE parameter may be used to override the autodetected | 2135 | The optional TYPE parameter may be used to override the autodetected |