From: Lars Ingebrigtsen <larsi@gnus.org>
To: Knut Anders Hatlen <kahatlen@gmail.com>
Cc: 49932@debbugs.gnu.org
Subject: bug#49932: 28.0.50; Error in GUI frames when xterm-set-window-title is set
Date: Mon, 09 Aug 2021 15:43:37 +0200 [thread overview]
Message-ID: <87wnou3f92.fsf@gnus.org> (raw)
In-Reply-To: <87im0h0xgh.fsf@dell.mail-host-address-is-not-set> (Knut Anders Hatlen's message of "Sat, 07 Aug 2021 23:14:06 +0200")
Knut Anders Hatlen <kahatlen@gmail.com> writes:
> 5. Start a new GUI frame with 'emacsclient -c', and again observe that
> "Device 1 is not a termcap terminal device" is reported.
>
> I believe xterm-set-window-title should not affect GUI frames.
The problem seems to be:
(defun xterm-set-window-title (&optional terminal)
"Set the window title of the Xterm TERMINAL.
The title is constructed from `frame-title-format'."
(send-string-to-terminal
(format "\e]2;%s\a" (format-mode-line frame-title-format))
terminal))
Debugger entered: nil
xterm-set-window-title()
xterm--init-frame-title()
xterm--init()
terminal-init-xterm()
tty-run-terminal-initialization(#<frame F11 0x5631310b99f0> nil t)
tty-create-frame-with-faces(((client . #<process server <15>>) (environment "_=./$
#f(compiled-function (params) #<bytecode -0x1d5fbf53102d34d1>)(((client . #<proce$
apply(#f(compiled-function (params) #<bytecode -0x1d5fbf53102d34d1>) ((client . #$
frame-creation-function(((client . #<process server <15>>) (environment "_=./li
That is, it's not specifying what terminal to set the title in -- so
it's set in all terminals, no matter what, all the time? That is:
(add-hook 'post-command-hook 'xterm-set-window-title)
(add-hook 'minibuffer-exit-hook 'xterm-set-window-title))
Which just seems less than optimal in many ways -- running this from
post-command-hook seems pretty excessive? But...
Anyway, I've now just made the function not do anything on graphical
displays, which should make the problem go away, but perhaps this should
be implemented a different way?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-08-09 13:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-07 21:14 bug#49932: 28.0.50; Error in GUI frames when xterm-set-window-title is set Knut Anders Hatlen
2021-08-09 13:43 ` Lars Ingebrigtsen [this message]
2021-08-09 18:39 ` Knut Anders Hatlen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnou3f92.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=49932@debbugs.gnu.org \
--cc=kahatlen@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.