aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/faces.el
diff options
context:
space:
mode:
authorGlenn Morris2014-02-25 00:41:47 -0800
committerGlenn Morris2014-02-25 00:41:47 -0800
commit98bd6b321c3efbb5d7c5d3c0dbbcecbccf5fda3f (patch)
tree360d2816c6a875d5920a1f26c01cc4de437c38b1 /lisp/faces.el
parenta038bd8769ec54ecf7d7241ccef8decc0dc712b5 (diff)
downloademacs-98bd6b321c3efbb5d7c5d3c0dbbcecbccf5fda3f.tar.gz
emacs-98bd6b321c3efbb5d7c5d3c0dbbcecbccf5fda3f.zip
Doc updates related to tty-setup-hook
* doc/emacs/custom.texi (Terminal Init): Replace term-setup-hook with tty-setup-hook. * doc/lispref/display.texi (Window Systems): * doc/lispref/hooks.texi (Standard Hooks): Replace term-setup-hook with tty-setup-hook. * doc/lispref/os.texi (Startup Summary, Init File, Terminal-Specific): Replace term-setup-hook with tty-setup-hook, and update. * doc/misc/edt.texi (Quick start, Starting emulation): * doc/misc/efaq.texi (Fullscreen mode on MS-Windows) (Terminal setup code works after Emacs has begun): Update hook details. * doc/misc/vip.texi (Loading VIP): Fix hook example. * lisp/faces.el (tty-setup-hook, tty-run-terminal-initialization): Doc fixes. * lisp/startup.el (term-setup-hook): Doc fix. Make obsolete. * lisp/emulation/edt.el: Comment update. * lisp/term/sun.el (sun-raw-prefix-hooks): Use tty-setup-hook instead of term-setup-hook. (terminal-init-sun): Construct message from bytecomp plist. * lisp/term/wyse50.el (enable-arrow-keys): Doc fix. * etc/refcards/vipcard.tex: Hook fix. * etc/NEWS: Related edit.
Diffstat (limited to 'lisp/faces.el')
-rw-r--r--lisp/faces.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 3394c721f04..985355ade09 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -2107,12 +2107,16 @@ the above example."
2107 2107
2108(defvar tty-setup-hook nil 2108(defvar tty-setup-hook nil
2109 "Hook run after running the initialization function of a new text terminal. 2109 "Hook run after running the initialization function of a new text terminal.
2110Specifically, `tty-run-terminal-initialization' runs this.
2110This can be used to fine tune the `input-decode-map', for example.") 2111This can be used to fine tune the `input-decode-map', for example.")
2111 2112
2112(defun tty-run-terminal-initialization (frame &optional type) 2113(defun tty-run-terminal-initialization (frame &optional type)
2113 "Run the special initialization code for the terminal type of FRAME. 2114 "Run the special initialization code for the terminal type of FRAME.
2114The optional TYPE parameter may be used to override the autodetected 2115The optional TYPE parameter may be used to override the autodetected
2115terminal type to a different value." 2116terminal type to a different value. As a final step, this runs the
2117hook `tty-setup-hook'.
2118
2119If you set `term-file-prefix' to nil, this function does nothing."
2116 (setq type (or type (tty-type frame))) 2120 (setq type (or type (tty-type frame)))
2117 ;; Load library for our terminal type. 2121 ;; Load library for our terminal type.
2118 ;; User init file can set term-file-prefix to nil to prevent this. 2122 ;; User init file can set term-file-prefix to nil to prevent this.