help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 23.1 flushes stdin on startup


From: Johan Bockgård
Subject: Re: Emacs 23.1 flushes stdin on startup
Date: Wed, 05 Aug 2009 00:33:56 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux)

"David F. Skoll" <dfs@roaringpenguin.com> writes:

> I've noticed a behavior change in 23.1 that doesn't seem to be documented:
> If I start Emacs in text mode (eg: "emacs -nw") and type stuff before
> Emacs has started up, the stuff I type is lost.  Version 22 would not
> flush the input, and my pre-startup stuff would appear in the buffer.

It's caused by the xterm init code (info "(elisp) Terminal-Specific")
for finding out if the terminal is modern enough to support the
`modifyOtherKeys' feature; see term/xterm.el.

      [...]
      ;; Pending input can be mistakenly returned by the calls to
      ;; read-event below.  Discard it.
      (discard-input)
      ;; Try to find out the type of terminal by sending a "Secondary
      ;; Device Attributes (DA)" query.
      (send-string-to-terminal "\e[>0c")

> I really miss the old behavior.  Is there any way to convince Emacs 23.1
> not to flush stdin on startup?

There's no simple knob, unfortunately, but there's always some way.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]