tweak: disable tty optimization in debug mode
If an error occurs before tty-run-terminal-initialization does (producing a backtrace window), it can leave Emacs in a garbled, unreadable state.
This commit is contained in:
parent
7a9f8b18ab
commit
493a049dff
1 changed files with 1 additions and 1 deletions
|
@ -439,7 +439,7 @@ Otherwise, `en/disable-command' (in novice.el.gz) is hardcoded to write them to
|
||||||
;; reason; inexplicably doubling startup time for terminal Emacs. Keeping
|
;; reason; inexplicably doubling startup time for terminal Emacs. Keeping
|
||||||
;; it disabled will have nasty side-effects, so we simply delay it instead,
|
;; it disabled will have nasty side-effects, so we simply delay it instead,
|
||||||
;; and invoke it later, at which point it runs quickly; how mysterious!
|
;; and invoke it later, at which point it runs quickly; how mysterious!
|
||||||
(unless (daemonp)
|
(unless (or (daemonp) init-file-debug)
|
||||||
(advice-add #'tty-run-terminal-initialization :override #'ignore)
|
(advice-add #'tty-run-terminal-initialization :override #'ignore)
|
||||||
(add-hook! 'window-setup-hook
|
(add-hook! 'window-setup-hook
|
||||||
(defun doom-init-tty-h ()
|
(defun doom-init-tty-h ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue