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: `xterm-mouse-mode' has a bogus Custom group Date: Wed, 13 Apr 2005 08:28:19 +0300 Message-ID: <01c53fe9$Blat.v2.4$bf59f240@zahav.net.il> References: <200504020351.j323ppS16391@raven.dms.auburn.edu> <16974.11752.332998.125628@farnswood.snap.net.nz> <200504021346.j32Dk3e19471@raven.dms.auburn.edu> <16978.12100.857894.861739@farnswood.snap.net.nz> <200504060000.j3600bm15264@raven.dms.auburn.edu> <16979.20638.871209.55398@farnswood.snap.net.nz> <200504070045.j370j0J27252@raven.dms.auburn.edu> <16981.58243.428189.615765@farnswood.snap.net.nz> <200504081605.j38G5ia15320@raven.dms.auburn.edu> <16982.64939.154130.463783@farnswood.snap.net.nz> <200504090406.j3946HQ22712@raven.dms.auburn.edu> <01c53d89$Blat.v2.4$96f0bb20@zahav.net.il> <200504101318.j3ADID528159@raven.dms.auburn.edu> <200504120104.j3C14tS11315@raven.dms.auburn.edu> <200504130124.j3D1Onf19799@raven.d Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1113370511 32243 80.91.229.2 (13 Apr 2005 05:35:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Apr 2005 05:35:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 13 07:35:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DLaWM-0001zf-8o for ged-emacs-devel@m.gmane.org; Wed, 13 Apr 2005 07:34:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DLa6o-0008L3-Jr for ged-emacs-devel@m.gmane.org; Wed, 13 Apr 2005 01:08:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DLa5o-0007eg-Un for emacs-devel@gnu.org; Wed, 13 Apr 2005 01:07:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DLa5g-0007ao-1o for emacs-devel@gnu.org; Wed, 13 Apr 2005 01:07:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DLa5e-0007Zp-AK for emacs-devel@gnu.org; Wed, 13 Apr 2005 01:07:02 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DLaUy-0007mr-Ne for emacs-devel@gnu.org; Wed, 13 Apr 2005 01:33:13 -0400 Original-Received: from zaretski (IGLD-84-228-140-110.inter.net.il [84.228.140.110]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id AYZ56871 (AUTH halo1); Wed, 13 Apr 2005 08:32:48 +0300 (IDT) Original-To: "Jan D." X-Mailer: emacs 22.0.50 (via feedmail 8 I) and Blat ver 2.4 In-reply-to: <15947f67f74b05170937dfdb4aa7c27f@swipnet.se> (jan.h.d@swipnet.se) 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:35927 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35927 > Cc: emacs-devel@gnu.org, eliz@gnu.org, rms@gnu.org > From: "Jan D." > Date: Wed, 13 Apr 2005 06:58:04 +0200 > > > But how do you check whether configure was invoked with `--without-x' > > from Lisp and from C? > > #ifndef HAVE_X_WINDOWS Actually, I'd suggest #ifdef HAVE_WINDOW_SYSTEM because the latter will catch non-X windowed versions (e.g., MS-Windows) as well. Unless the code is in X-specific file, like xfns.c, where non-X toolkits are a non-issue. > You can check window-system in Lisp (it is nil), but it doesn't tell if > the running Emacs was configured with --without-x, only that it is > currently running without X. I.e. it could be emacs -nw, or simply > running without an X display. Does it make any difference? Yes, it makes a difference: Emacs compiled with --without-x cannot invoke code that calls X-specific primitives, because that would signal errors complaining about void functions. Emacs that does have X support but runs with -nw will silently do nothing when such code is invoked because (modulo bugs) these features are coded to do nothing when the required graphic display facilities are not available.