From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH 3/4] Implement cygw32 Date: Fri, 30 Dec 2011 13:16:07 +0200 Message-ID: <83r4zmtimg.fsf@gnu.org> References: <5624badc7ef2eea96f90da1a823144757a5f0290.1325166472.git.dancol@dancol.org> <83oburuvzt.fsf@gnu.org> <4EFCA8FF.5080200@dancol.org> <83fwg3uts8.fsf@gnu.org> <4EFCE0A8.1080305@dancol.org> <83zkeatnto.fsf@gnu.org> <4EFD8603.3060402@dancol.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1325243839 26183 80.91.229.12 (30 Dec 2011 11:17:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2011 11:17:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 30 12:17:12 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RgaSU-0004ci-9o for ged-emacs-devel@m.gmane.org; Fri, 30 Dec 2011 12:17:10 +0100 Original-Received: from localhost ([::1]:33956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgaST-00047F-KM for ged-emacs-devel@m.gmane.org; Fri, 30 Dec 2011 06:17:09 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgaSP-00044G-Rc for emacs-devel@gnu.org; Fri, 30 Dec 2011 06:17:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgaSO-0007NY-HZ for emacs-devel@gnu.org; Fri, 30 Dec 2011 06:17:05 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:59758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgaSO-0007NQ-B9 for emacs-devel@gnu.org; Fri, 30 Dec 2011 06:17:04 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LX000800KLVGM00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 30 Dec 2011 13:16:06 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.18.76]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LX0005ORKMTV131@a-mtaout22.012.net.il>; Fri, 30 Dec 2011 13:16:06 +0200 (IST) In-reply-to: <4EFD8603.3060402@dancol.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 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:147047 Archived-At: > Date: Fri, 30 Dec 2011 01:36:03 -0800 > From: Daniel Colascione > CC: emacs-devel@gnu.org > > ~/software/emacs/cyg.w32/lib-src > $ ./emacsclient --eval '(window-system)' > nil > > ~/software/emacs/cyg.w32/lib-src > $ ./emacsclient --eval 'window-system' > nil > > ~/software/emacs/cyg.w32/lib-src > $ ./emacsclient --eval "(featurep 'w32)" > t Sorry, I don't see the relevance: daemon needs special handling anyway. E.g., featurep will be irrelevant if emacsclient is invoked to create a text-mode frame. > I agree that using window-system where appropriate is best. That said, > window-system isn't always appropriate. It answers the question "what > window system am I using right now?". The featurep query answers "what > window system is this copy of Emacs capable of using?". Sometimes, the > latter question is of greater interest. But in an Emacs that is capable of creating _both_ w32 and X frames, the values of (featurep 'x) and (featurep 'w32) are not mutually exclusive. If we don't want to go through the pains we went through when multi-tty was introduced, we should never again add code that makes assumptions about which window systems can or cannot coexist.