help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disable certain commands in non window mode


From: Nikolaj Schumacher
Subject: Re: Disable certain commands in non window mode
Date: Thu, 25 Sep 2008 18:21:08 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin)

Alex Bennee <ajb-ml@cbnl.com> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]