From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tfb@apocalypse.OCF.Berkeley.EDU (Thomas F. Burdick) Newsgroups: gmane.emacs.help Subject: Re: installing emacs and X11 on OS X Date: 27 Oct 2002 11:13:27 -0800 Organization: University of California, Berkeley Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <87elah9ril.fsf@bundalo.shootybangbang.com> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1035746457 11825 80.91.224.249 (27 Oct 2002 19:20:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 27 Oct 2002 19:20:57 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 185sxz-00034b-00 for ; Sun, 27 Oct 2002 20:20:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 185syX-0007bB-00; Sun, 27 Oct 2002 14:21:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!news-hog.berkeley.edu!ucberkeley!agate.berkeley.edu!agate!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-NNTP-Posting-Host: apocalypse.ocf.berkeley.edu Original-X-Trace: agate.berkeley.edu 1035746009 41137 128.32.191.249 (27 Oct 2002 19:13:29 GMT) Original-X-Complaints-To: usenet@agate.berkeley.edu Original-NNTP-Posting-Date: Sun, 27 Oct 2002 19:13:29 +0000 (UTC) X-Newsreader: Gnus v5.7/Emacs 20.7 Original-Xref: shelby.stanford.edu gnu.emacs.help:106440 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2990 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2990 Hugo Wolf writes: > In article , Eli > Zaretskii wrote: > > window-system ... is deprecated This sounds like a bad idea to me (see below) > Thank you. Finally a _sensible_ reason to avoid using this variable. > Not because it's semantically or morally wrong, as has been claimed so > far -- in fact, it's exactly right -- but because it's deprecated. I > probably shouldn't ask why this little issue wasn't mentioned earlier > in the discussion... > > > (and (eq system-type 'macos) (display-graphic-p)) > > There's no logical difference I can see between this and (eq > window-system 'mac) -- i.e., no circumstance I can imagine in which > one would be true and the other false. Can you think of one? But if > the emacs developer community is getting away from the use of > window-system, that's reason enough to switch. This doesn't let me differentiate between Carbon-Emacs on OS X, and X11-Emacs on the same OS. system-type is darwin on both, and display-graphic-p is t on both. However, it makes a lot of sense (to me) that someone might want to make the Carbon one behave more like a Carbon application, and the X11 one behave like an X11 application. If window-system goes away, I'd have to resort to something truly evil to determine which system I'm on. Out of curiosity, why is it depricated? Because people abuse it where specific feature tests would be better? If so, that seems like a bad reason ... people can abuse anything, but AFAIK, window-system is the only way to determine what window system you're on. Or is there a plan to replace this with a more competant introspection api? [ It would be cool to be able to have something like a window-system-p function, so I could ask (window-system-p 'carbon) or (window-system-p 'x11) or (window-system-p 'gtk). Especially because you could then be more specific, because a theoretical GTK-Emacs could run under X11 or a framebuffer or... ] -- /|_ .-----------------------. ,' .\ / | No to Imperialist war | ,--' _,' | Wage class war! | / / `-----------------------' ( -. | | ) | (`-. '--.) `. )----'