From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: Disable certain commands in non window mode Date: Thu, 25 Sep 2008 18:21:08 +0200 Message-ID: References: <16c4e049-5c92-42f2-bfa9-a731c6d0bd03@k37g2000hsf.googlegroups.com> <1222358048.9439.45.camel@pitcairn.cambridgebroadband.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222359709 660 80.91.229.12 (25 Sep 2008 16:21:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2008 16:21:49 +0000 (UTC) Cc: MiH , help-gnu-emacs@gnu.org To: Alex Bennee Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 18:22:45 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kitbx-0001lO-NB for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 18:22:38 +0200 Original-Received: from localhost ([127.0.0.1]:49569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kitav-0001NV-HC for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2008 12:21:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kitaa-0001NA-Nk for help-gnu-emacs@gnu.org; Thu, 25 Sep 2008 12:21:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KitaZ-0001Mk-Ag for help-gnu-emacs@gnu.org; Thu, 25 Sep 2008 12:21:12 -0400 Original-Received: from [199.232.76.173] (port=44657 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KitaZ-0001Mh-62 for help-gnu-emacs@gnu.org; Thu, 25 Sep 2008 12:21:11 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:49933) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KitaZ-0001k7-6R for help-gnu-emacs@gnu.org; Thu, 25 Sep 2008 12:21:11 -0400 Original-Received: from thursday (BAH4787.bah.pppool.de [77.135.71.135]) by dd18200.kasserver.com (Postfix) with ESMTP id 0679918077EDC; Thu, 25 Sep 2008 18:21:13 +0200 (CEST) In-Reply-To: <1222358048.9439.45.camel@pitcairn.cambridgebroadband.com> (Alex Bennee's message of "Thu\, 25 Sep 2008 16\:54\:07 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58079 Archived-At: Alex Bennee wrote: > (defvar I-am-in-X (eval 'window-system)); Why don't you just: (defvar I-am-in-X window-system) > (defvar I-am-on-MacOSX (string-match "Carbon" (emacs-version))) Since Emacs 23 is abandoning Carbon, the following should be more safe for the future: (defvar I-am-on-MacOSX (eq system-type 'darwin)) regards, Nikolaj Schumacher