From: Mark Oteiza <mvoteiza@udel.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org
Subject: bug#28591: 27.0.50; xterm-set-window-title
Date: Sat, 30 Sep 2017 15:27:34 -0400 [thread overview]
Message-ID: <20170930192734.5qwfmncd4j3d4ngc@logos.localdomain> (raw)
In-Reply-To: <83d16976rh.fsf@gnu.org>
On 29/09/17 at 08:29pm, Eli Zaretskii wrote:
> > Date: Fri, 29 Sep 2017 07:57:00 -0400
> > From: Mark Oteiza <mvoteiza@udel.edu>
> > Cc: yamaoka@jpl.org, 28591@debbugs.gnu.org
> >
> > Everything except foregrounding a client works (I did not test this),
> > where the following occurs:
> >
> > Error in post-command-hook (xterm-set-window-title): (error "Terminal
> > is currently suspended")
>
> This error comes from here:
>
> DEFUN ("send-string-to-terminal", Fsend_string_to_terminal,
> Ssend_string_to_terminal, 1, 2, 0,
> doc: /* Send STRING to the terminal without alteration.
> Control characters in STRING will have terminal-dependent effects.
>
> Optional parameter TERMINAL specifies the tty terminal device to use.
> It may be a terminal object, a frame, or nil for the terminal used by
> the currently selected frame. In batch mode, STRING is sent to stdout
> when TERMINAL is nil. */)
> (Lisp_Object string, Lisp_Object terminal)
> {
>
> ...
> if (! tty->output)
> error ("Terminal is currently suspended");
>
> So one way of fixing it would be to have a suspend-hook set some flag
> which your post-command-hook would check, and avoid calling
> send-string-to-terminal when the terminal is suspended.
>
> Another possibility would be to add a utility function, called
> 'tty-suspended-p', which you could then test in your
> post-command-hook. Its implementation should test the tty->output
> value.
>
> Would any of this make sense?
It would, but I ended up taking Martin's suggestion and replacing the
use of post-command-hook with instead using buffer-list-update-hook,
which doesn't have this problem.
prev parent reply other threads:[~2017-09-30 19:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-25 9:43 bug#28591: 27.0.50; xterm-set-window-title Katsumi Yamaoka
2017-09-25 12:15 ` Mark Oteiza
2017-09-25 17:24 ` Mark Oteiza
2017-09-26 0:45 ` Katsumi Yamaoka
2017-09-26 4:08 ` Mark Oteiza
2017-09-29 10:45 ` Eli Zaretskii
2017-09-29 11:57 ` Mark Oteiza
2017-09-29 12:51 ` martin rudalics
2017-09-29 13:03 ` Mark Oteiza
2017-09-29 13:05 ` martin rudalics
2017-09-29 13:05 ` Mark Oteiza
2017-09-29 17:34 ` Eli Zaretskii
2017-09-30 19:26 ` Mark Oteiza
2017-10-05 10:16 ` Eli Zaretskii
2017-10-08 20:21 ` Mark Oteiza
2017-10-09 6:23 ` Eli Zaretskii
2017-10-09 12:40 ` Mark Oteiza
2020-08-24 13:39 ` Lars Ingebrigtsen
2017-09-29 17:29 ` Eli Zaretskii
2017-09-30 19:27 ` Mark Oteiza [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170930192734.5qwfmncd4j3d4ngc@logos.localdomain \
--to=mvoteiza@udel.edu \
--cc=28591@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=yamaoka@jpl.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).