Fix #4977: inhibit xterm-set-window-title in GUI emacs
This commit is contained in:
parent
5d7526a224
commit
52fba3fa60
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue