all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Adrian Robert" <adrian.b.robert@gmail.com>
To: emacs-devel@gnu.org
Cc: Dan Nicolaescu <dann@ics.uci.edu>
Subject: Re: Emacs.app (Cocoa/GNUstep port) release and feature list
Date: Sat, 1 Dec 2007 15:30:56 +0300	[thread overview]
Message-ID: <55f7df060712010430s167704capce5d46fb624a0a0d@mail.gmail.com> (raw)
In-Reply-To: <55f7df060711240239p651eecp50739107676ff941@mail.gmail.com>

> > The new #defines: HAVE_NS GNUSTEP COCOA COCOA_EXPERIMENTAL_CTRL_G
> >
> > Why not HAVE_GNUSTEP and HAVE_COCOA too?
>
> HAVE_XX seems to be standard for the overall windowing system / port
> being used: HAVE_XWINDOWS, HAVE_NTGUI.  GNUSTEP and COCOA are platform
> indicators, like DARWIN, MAC_OS8, GNU_LINUX, or VMS.  I would use
> "MAC_OSX" instead of COCOA, but that is already used by the Carbon
> port to mean essentially HAVE_CARBONGUI.
>
>
>
> > Also it seems that !GNUSTEP is the same as COCOA. Why not just use one
> > of them?
>
> I'm fine to make this change if people think it's easier to read.

I tried this, but on second thought there are two problems.  First,
GNUSTEP and COCOA are both implementations of the NeXTstep API.  There
are others out there, and if Emacs.app one day supports them then it
will need more than GNUSTEP and !GNUSTEP.  Also, it is not sufficient
to assume if MAC_OSX then COCOA, because GNUstep (and possibly other
implementations) can and are installed and used under OS X.

Second, it seems less readable to use "#ifndef XXX" for blocks of code
that are enabled on platform YYY. " #if YYY" (without the negative) is
clearer, even at the cost of additional identifiers.

I could rename them to something like NS_IMPL_GNUSTEP, NS_IMPL_COCOA
(or NS_VENDOR_GNU, NS_VENDOR_APPLE) to make their meaning clearer.

  parent reply	other threads:[~2007-12-01 12:30 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-23 10:41 Emacs.app (Cocoa/GNUstep port) release and feature list Adrian Robert
2007-11-23 14:56 ` David Reitter
2007-11-23 15:25   ` YAMAMOTO Mitsuharu
2007-11-23 15:38   ` Adrian Robert
2007-11-23 15:29 ` Stefan Monnier
2007-11-23 16:10   ` Adrian Robert
2007-11-23 16:24     ` Stefan Monnier
2007-11-23 17:40       ` CHENG Gao
2007-11-25  6:58       ` Adrian Robert
2007-11-23 23:00 ` Dan Nicolaescu
2007-11-24 10:39   ` Adrian Robert
2007-11-24 16:33     ` Dan Nicolaescu
2007-11-25 11:17       ` Adrian Robert
2007-11-25 17:09         ` Dan Nicolaescu
2007-11-24 23:32     ` YAMAMOTO Mitsuharu
2007-12-01 12:30     ` Adrian Robert [this message]
2007-12-01 20:49       ` Stefan Monnier
2007-12-10 16:47         ` MAC_OS_X cpp macro? Stefan Monnier
2007-12-11  1:08           ` YAMAMOTO Mitsuharu
2007-12-11 18:57             ` Stefan Monnier
2007-12-12  0:07               ` YAMAMOTO Mitsuharu
2007-12-10 17:04         ` admin/CPP-DEFINES Stefan Monnier
2007-12-14 12:42           ` admin/CPP-DEFINES Eli Zaretskii
2007-11-24 11:37 ` Emacs.app (Cocoa/GNUstep port) release and feature list William Xu
2007-11-24 12:47   ` YAMAMOTO Mitsuharu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55f7df060712010430s167704capce5d46fb624a0a0d@mail.gmail.com \
    --to=adrian.b.robert@gmail.com \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.