mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #4977: inhibit xterm-set-window-title in GUI emacs
This commit is contained in:
@ -3,6 +3,10 @@
|
|||||||
;; Keep window title up-to-date; should fail gracefully in non-xterm terminals.
|
;; Keep window title up-to-date; should fail gracefully in non-xterm terminals.
|
||||||
;; Only works in Emacs 27+.
|
;; Only works in Emacs 27+.
|
||||||
(setq xterm-set-window-title t)
|
(setq xterm-set-window-title t)
|
||||||
|
(defadvice! +tty--only-set-window-title-in-tty-a (&optional terminal)
|
||||||
|
"`xterm-set-window-title' fails in GUI Emacs. Stop that. Get some help."
|
||||||
|
:before-until #'xterm-set-window-title
|
||||||
|
(not (display-graphic-p terminal)))
|
||||||
|
|
||||||
;; Some terminals offer two different cursors: a "visible" static cursor and a
|
;; Some terminals offer two different cursors: a "visible" static cursor and a
|
||||||
;; "very visible" blinking one. By default, Emacs uses the very visible cursor
|
;; "very visible" blinking one. By default, Emacs uses the very visible cursor
|
||||||
|
Reference in New Issue
Block a user