X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 	tests=AWL,BAYES_00,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <4A4F8774.9070307@cornell.edu>
Date: Sat, 04 Jul 2009 12:46:44 -0400
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: `run emacs' in win32 console cause bad emacs performance
References: <831voye808.fsf@gmail.com> <4A4DFE7B.1050500@cornell.edu> 	<7veisxsonu.fsf@gmail.com> <4A4F3D39.4070908@cornell.edu> <7v63e8efl0.fsf@gmail.com>
In-Reply-To: <7v63e8efl0.fsf@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 7/4/2009 9:35 AM, Haojun Bao wrote:
> Cygwin is 1.7, I update very often, and I can reproduce it both at home
> and in office.
> 
> Here's the steps to reproduce it:
> 
> 0. Start X, and set DISPLAY:
>   $startxwin.sh
>   $export DISPLAY=:0
> 
> 1. start bash from cygwin.bat:
>    $cygstart /Cygwin.bat
> 
> 2. In the cygwin.bat console window, start emacs-X11 using run.exe:
>   $run emacs-X11.exe -q
> 
> 
> 3. In the emacs window, move cursor up/down, take a note it's speed,

OK, I can reproduce it now.  The fix is to make sure your CYGWIN 
environment variable contains tty before starting the console.  I use a 
modified Cygwin.bat that does this.  (That's why I couldn't reproduce 
your problem the first time I tried.)

$ cat bin/Cygwin.bat
@echo off
C:
chdir C:\cygwin-1.7\bin
SET CYGWIN=%CYGWIN% tty
bash --login -i

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

