From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: [PATCH 0/9] Support Win32 GUI in Cygwin Emacs Date: Tue, 07 Aug 2012 01:19:27 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1344327599 908 80.91.229.3 (7 Aug 2012 08:19:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 08:19:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 07 10:20:00 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Syf1A-0003NN-H6 for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2012 10:19:56 +0200 Original-Received: from localhost ([::1]:51166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syf19-0001QG-LJ for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2012 04:19:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syf0s-0000gR-8i for emacs-devel@gnu.org; Tue, 07 Aug 2012 04:19:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Syf0n-0007k0-Rn for emacs-devel@gnu.org; Tue, 07 Aug 2012 04:19:38 -0400 Original-Received: from dancol.org ([96.126.100.184]:37129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syf0n-0007iY-Lm for emacs-devel@gnu.org; Tue, 07 Aug 2012 04:19:33 -0400 Original-Received: from dancol by dancol.org with local (Exim 4.72) (envelope-from ) id 1Syf0h-0006pn-40 for emacs-devel@gnu.org; Tue, 07 Aug 2012 01:19:27 -0700 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 96.126.100.184 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152239 Archived-At: This set of patches allows a Cygwin Emacs to use the w32 window-system instead of X11. (The ability to use X11 with Cygwin is retained.) This patchset also fixes a few bugs in the Windows code and makes the window-system configuration mechanism more generic, eliminating inclusion of window-system specific headers in most of the code. This is the second version of this patch set. This version is rebased onto the current Emacs trunk. Daniel Colascione (9): Under Remote Desktop, NUMCOLORS is unreliable; workaround Refactor window-system configuration Implement cygw32 Fix emacsclient to work with cygw32 Prevent crash if w32 used before it's initialized Rename `w32' local to `nt' for clarity Add alt_display to emacsclient for w32, ns Generalize fork+exec logic, add DAEMON_MUST_EXEC Detect window-system from display name configure.ac | 133 ++++++- lib-src/emacsclient.c | 198 ++++++----- lisp/battery.el | 2 +- lisp/faces.el | 2 +- lisp/frame.el | 55 ++-- lisp/international/mule-cmds.el | 3 +- lisp/loadup.el | 13 +- lisp/mouse.el | 2 +- lisp/server.el | 81 +++-- lisp/simple.el | 2 +- lisp/startup.el | 3 +- lisp/term/common-win.el | 2 +- lisp/term/ns-win.el | 4 +- lisp/term/w32-win.el | 49 ++- lisp/term/x-win.el | 5 + lisp/w32-common-fns.el | 130 +++++++ lisp/w32-fns.el | 105 +------ lisp/w32-vars.el | 22 +- src/Makefile.in | 34 ++- src/ccl.h | 2 + src/conf_post.h | 14 + src/cygw32.c | 169 +++++++++ src/cygw32.h | 59 +++ src/dispextern.h | 4 +- src/dispnew.c | 14 +- src/emacs.c | 78 +++-- src/font.c | 18 +- src/font.h | 4 +- src/fontset.c | 2 +- src/frame.c | 23 +- src/frame.h | 33 ++- src/gtkutil.h | 1 + src/image.c | 85 +++-- src/keyboard.c | 31 +- src/keyboard.h | 4 +- src/menu.c | 21 +- src/nsterm.h | 27 +-- src/process.c | 8 +- src/termhooks.h | 6 +- src/w32.c | 19 +- src/w32.h | 11 - src/w32console.c | 48 --- src/w32fns.c | 748 ++++++++++++++++++++++++++++++++------- src/w32font.c | 4 + src/w32font.h | 4 + src/w32inevt.c | 29 +-- src/w32menu.c | 22 ++- src/w32proc.c | 14 - src/w32select.c | 5 + src/w32select.h | 30 ++ src/w32term.c | 52 ++- src/w32term.h | 73 ++++- src/w32xfns.c | 34 ++- src/window.c | 2 +- src/xdisp.c | 6 +- src/xfaces.c | 36 +- src/xterm.h | 27 +- 57 files changed, 1804 insertions(+), 808 deletions(-) create mode 100644 lisp/w32-common-fns.el create mode 100644 src/cygw32.c create mode 100644 src/cygw32.h create mode 100644 src/w32select.h -- 1.7.2.5