Mercurial > emacs
comparison lisp/startup.el @ 83800:0505ccaa9eba
(normal-top-level): Set $TERM to `dumb' so that unless
stated otherwise, subprocesses do not send back escape sequences
corresponding to the terminal from which Emacs was started.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 31 Aug 2007 06:57:25 +0000 |
parents | 27d11c1d4e46 |
children | 5e1dbcacecd3 |
comparison
equal
deleted
inserted
replaced
83799:6aa4d1effd67 | 83800:0505ccaa9eba |
---|---|
484 (font-menu-add-default)) | 484 (font-menu-add-default)) |
485 (and window-setup-hook | 485 (and window-setup-hook |
486 (run-hooks 'window-setup-hook)) | 486 (run-hooks 'window-setup-hook)) |
487 (or menubar-bindings-done | 487 (or menubar-bindings-done |
488 (if (display-popup-menus-p) | 488 (if (display-popup-menus-p) |
489 (precompute-menubar-bindings))))))) | 489 (precompute-menubar-bindings))))) |
490 ;; Subprocesses of Emacs do not have direct access to the terminal, so | |
491 ;; unless told otherwise they should only assume a dumb terminal. | |
492 ;; We are careful to do it late (after term-setup-hook), although the | |
493 ;; new multi-tty code does not use $TERM any more there anyway. | |
494 (setenv "TERM" "dumb"))) | |
490 | 495 |
491 ;; Precompute the keyboard equivalents in the menu bar items. | 496 ;; Precompute the keyboard equivalents in the menu bar items. |
492 (defun precompute-menubar-bindings () | 497 (defun precompute-menubar-bindings () |
493 (let ((submap (lookup-key global-map [menu-bar]))) | 498 (let ((submap (lookup-key global-map [menu-bar]))) |
494 (while submap | 499 (while submap |