GNU bug report logs - #6758
23.2; xterm.el: please provide an option to not discard input in terminal-init-xterm

Previous Next

Package: emacs;

Reported by: Jim Paris <jim <at> jtan.com>

Date: Thu, 29 Jul 2010 20:32:02 UTC

Severity: normal

Merged with 8482, 11129

Found in versions 23.2, 23.4

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 6758 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jim Paris <jim <at> jtan.com>
Cc: 6758 <at> debbugs.gnu.org, Johan Bockgård <bojohan <at> gnu.org>
Subject: Re: bug#6758: 23.2;
	xterm.el: please provide an option to not discard input in
	terminal-init-xterm
Date: Sat, 11 Sep 2010 16:08:38 +0200
> Any thoughts on this patch?
> I've found further problems with doing aynchronous terminal queries:
> minibuffer prompts get aborted by the xterm response.  For example,
> when opening up a large file:

> 1) Emacs loads and sends "\e[>0c"
> 2) Emacs prints the "File x is large (123MB), really open? (y or n)" prompt
> 3) Xterm sends the "\e[>0;253;0c" response, aborting the prompt

Indeed.  But this one is "easy": y-or-n-p should use read-key rather
than read-event, so that input-decode-map will be obeyed.  Of course,
that probably requires moving y-or-n-p from C to Elisp.


        Stefan




This bug report was last modified 12 years and 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.