delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/02/23:54:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
From: Haojun Bao <baohaojun AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: `run emacs' in win32 console cause bad emacs performance
Date: Fri, 03 Jul 2009 11:54:31 +0800
Message-ID: <831voye808.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (cygwin)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

hi, 

When I start emacs (alternated to emacs-X11) with `run emacs' on the
Windows console (started with the Cygwin.bat shortcut), the emacs
performance is not good (moving the cursor up/down is not smooth), and
not stable (hang/crash sometimes).

But if started directly with `emacs' or from the Start Menu shortcut of
emacs (C:\cygwin\bin\run.exe -p /usr/X11R6/bin emacs -display 127.0.0.1:0.0),
then all is good. Also good if started with `run emacs' in a
RXVT/PUTTY-CYG console.

One difference I see is the /proc/`emacs pid'/fd, in the former way,
there is only one fd:

    lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 0 -> socket:[1608]=

I believe this fd is the connection to X server; if started otherwise,
the fd list is:

    lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 0 -> /dev/console
    lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 1 -> /dev/console
    lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 2 -> /dev/console
    lrwxrwxrwx 1 bhj None 0 2006-12-01 08:00 3 -> socket:[1624]=
    
or with /dev/console changed to /dev/ttyN.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019