From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Cygwin emacs - does it work? Date: Tue, 05 Aug 2008 23:26:48 +0200 Message-ID: <4898C598.5070806@alice.it> References: <489869F1.9030103@alice.it> <48986CE4.8050008@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217971652 21285 80.91.229.12 (5 Aug 2008 21:27:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2008 21:27:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 05 23:28:23 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KQU4r-00056Y-JP for ged-emacs-devel@m.gmane.org; Tue, 05 Aug 2008 23:28:21 +0200 Original-Received: from localhost ([127.0.0.1]:45739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQU3w-0005mn-1n for ged-emacs-devel@m.gmane.org; Tue, 05 Aug 2008 17:27:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQU3s-0005mi-GU for emacs-devel@gnu.org; Tue, 05 Aug 2008 17:27:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQU3q-0005mW-Gw for emacs-devel@gnu.org; Tue, 05 Aug 2008 17:27:19 -0400 Original-Received: from [199.232.76.173] (port=38820 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQU3q-0005mT-CB for emacs-devel@gnu.org; Tue, 05 Aug 2008 17:27:18 -0400 Original-Received: from smtp-out05a.alice.it ([85.33.3.5]:3103) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KQU3q-0001jX-1R for emacs-devel@gnu.org; Tue, 05 Aug 2008 17:27:18 -0400 Original-Received: from FBCMMO02.fbc.local ([192.168.68.196]) by smtp-OUT05A.alice.it with Microsoft SMTPSVC(6.0.3790.1830); Tue, 5 Aug 2008 23:25:35 +0200 Original-Received: from FBCMCL01B04.fbc.local ([192.168.69.85]) by FBCMMO02.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 5 Aug 2008 23:27:16 +0200 Original-Received: from [87.3.234.116] ([87.3.234.116]) by FBCMCL01B04.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 5 Aug 2008 23:27:15 +0200 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <48986CE4.8050008@gmail.com> X-OriginalArrivalTime: 05 Aug 2008 21:27:15.0595 (UTC) FILETIME=[081B05B0:01C8F742] X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102104 Archived-At: Lennart Borgman (gmail) ha scritto: > Eric Hanchrow wrote: >> I think you need to set an environment variable before starting Cygwin >> -- "set CYGWIN=tty" might do it. > That is frustrating too ;-) >> In general though, I've found Cygwin emacs to be too frustrating to use; >> I instead use the native Win32 emacs, but with lots of Cygwin tools such >> as bash, coreutils, and find. Why 'frustrating'? I start the GTK build of Emacs trunk (and the X server if needs) with a link on the Desktop. The target of the link is: C:\cygwin\bin\run.exe bash -l start_emacs-X.sh and $ $ cat /usr/local/bin/start_emacs-X.sh #!/bin/bash #export DISPLAY=127.0.0.1:0.0 export DISPLAY=:0 #export PATH=/usr/X11R6/bin:"$PATH" # export XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults # export XCMSDB=/usr/X11R6/lib/X11/Xcms.txt # export XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB # export XNLSPATH=/usr/X11R6/lib/X11/locale ## -------------------------------------------------------- start_XWin() { # Cleanup from last run. rm -rf /tmp/.X11-unix XWin -multiwindow -clipboard -silent-dup-error +bs & } /usr/bin/checkX || start_XWin ## -------------------------------------------------------- ## Workaround to use GTK build of Emacs export G_SLICE=always-malloc exec /usr/local/bin/emacs ================================================================== The link can be created automatically running: ## Emacs mkshortcut -A \ -n Emacs \ -D /usr/bin/run.exe \ -a 'bash -l start_emacs-X.sh' \ -i /usr/local/bin/emacs.ico \ -d "Editor di testo" \ -w '' Cheers, Angelo. --- Tu proverai si' come sa di sale lo pane altrui, e come e' duro calle lo scendere e 'l salir per l'altrui scale. . DANTE, Paradiso, xvii 58-60