unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jim Paris <jim@jtan.com>
Cc: 6758@debbugs.gnu.org
Subject: bug#6758: 23.2; xterm.el: please provide an option to not discard input in terminal-init-xterm
Date: Mon, 02 Aug 2010 01:03:02 +0200	[thread overview]
Message-ID: <jwvbp9m7xfe.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87r5im11u9.fsf@psychosis.jim.sh> (Jim Paris's message of "Thu, 29 Jul 2010 16:15:42 -0400")

> I can also imagine a more complete fix that would involve not flushing
> the input buffer, and interpreting the Xterm responses in a more
> asynchronous fashion:
> - Don't discard input
> - Send the \e[>0c probe
> - Allow input into the buffer as usual, but for the next few seconds,
>   interpret \e[>0;251;0c responses and perform
>   (xterm-turn-on-modify-other-keys) etc. as necessary.

Time-dependent processing is considered brittle (especially when
working remotely via something like SSH), so we prefer to avoid it.
Especially since coding it right could prove pretty darn tricky.

OTOH, I thought we had agreed that we need to add a configuration
variable xterm-turn-on-modify-other-keys which could be set to t or nil
to force the modifyOtherKeys feature of Xterm ON or OFF without first
checking whether the current xterm indeed supports it or not.
Its default value would be `auto', which would first check for support
and then turn it ON if applicable.
Since the "discard input" is needed for the check, this would solve
your problem.

Now, I don't see such a variable, so either I misremeber, or the patch
was never written, or never committed, ...


        Stefan





  reply	other threads:[~2010-08-01 23:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-29 20:15 bug#6758: 23.2; xterm.el: please provide an option to not discard input in terminal-init-xterm Jim Paris
2010-08-01 23:03 ` Stefan Monnier [this message]
2010-08-02 20:38   ` Johan Bockgård
2010-08-02 20:59   ` Jim Paris
2010-08-02 21:27     ` Andreas Schwab
2010-08-02 21:36       ` Jim Paris
2010-08-02 22:21     ` Stefan Monnier
2010-08-03 20:14       ` Jim Paris
2010-08-24  0:48         ` Jim Paris
2010-09-11 14:08           ` Stefan Monnier
2010-09-11 14:59           ` Stefan Monnier
2013-03-11 14:12           ` Stefan Monnier
2012-06-17  5:28 ` Chong Yidong
2012-06-19  4:03 ` bug#6758: So what do I need to do to keep emacs from eating my typeahead? Karl O. Pinc
2012-06-19  7:51   ` Glenn Morris

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=jwvbp9m7xfe.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=6758@debbugs.gnu.org \
    --cc=jim@jtan.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 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).