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" <emacs-devel@gnu.org>
Subject: Re: Proposed function: x-display-usable-bounds
Date: Tue, 4 Dec 2007 14:10:07 +0300	[thread overview]
Message-ID: <55f7df060712040310i10db439q193cfd6b322dd088@mail.gmail.com> (raw)
In-Reply-To: <jwv63zfrfuv.fsf-monnier+emacs@gnu.org>

On Dec 3, 2007 5:56 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> > width height) for the usable screen area.  Since it seems relevant for
> > all platforms, it would seem appropriate to name this function with an
> > x- prefix, e.g., x-display-usable-bounds, and define it for all
> > platforms.  As a placeholder implementation, a list (0 0
>
> Actually, better *not* use an "x-" prefix for the main name.  I.e. name
> it "display-usable-bounds".  It's implementation may just check the
> display used by the selected frame and dispatch to
> x-display-usable-bounds,  w32-display-usable-bounds,
> mac-display-usable-bounds, ...

I followed the convention of x-display-pixel-width etc., which are a
class of lisp functions applicable on all windowing systems but called
directly as "x-..." from various places and very early, so that
aliasing didn't work (the Cocoa port tries to name its display
functions with a ns- prefix).

It seems the 'x-' prefix may sometimes mean "X-windows display
function" but is mostly used as "generic windowing system function".
Changing this might be good but it would make the most sense to do it
all at once after determining the best plan.

Note there is also an 'xw-' prefix used for some functions (e.g.
xw-color-defined-p).

  reply	other threads:[~2007-12-04 11:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-03  8:43 Proposed function: x-display-usable-bounds Adrian Robert
2007-12-03  9:40 ` Jan Djärv
2007-12-03 12:34   ` Adrian Robert
2007-12-03 14:36     ` YAMAMOTO Mitsuharu
2007-12-03  9:41 ` Andreas Schwab
2007-12-03 10:00   ` Jason Rumney
2007-12-03 14:56 ` Stefan Monnier
2007-12-04 11:10   ` Adrian Robert [this message]
2007-12-04 13:56     ` Stefan Monnier

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=55f7df060712040310i10db439q193cfd6b322dd088@mail.gmail.com \
    --to=adrian.b.robert@gmail.com \
    --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.