From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Adrian Robert" Newsgroups: gmane.emacs.devel Subject: Re: Proposed function: x-display-usable-bounds Date: Tue, 4 Dec 2007 14:10:07 +0300 Message-ID: <55f7df060712040310i10db439q193cfd6b322dd088@mail.gmail.com> References: <55f7df060712030043t22ac4321hf18c47f40611f20b@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196766638 21008 80.91.229.12 (4 Dec 2007 11:10:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2007 11:10:38 +0000 (UTC) To: "emacs- devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 04 12:10:47 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IzVfk-0002aq-8L for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 12:10:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzVfT-0005V1-JS for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 06:10:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzVfO-0005RZ-MR for emacs-devel@gnu.org; Tue, 04 Dec 2007 06:10:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzVfJ-0005NK-Hw for emacs-devel@gnu.org; Tue, 04 Dec 2007 06:10:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzVfJ-0005NH-95 for emacs-devel@gnu.org; Tue, 04 Dec 2007 06:10:13 -0500 Original-Received: from rv-out-0910.google.com ([209.85.198.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IzVfI-0004lQ-FZ for emacs-devel@gnu.org; Tue, 04 Dec 2007 06:10:12 -0500 Original-Received: by rv-out-0910.google.com with SMTP id c27so4261918rvf for ; Tue, 04 Dec 2007 03:10:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=xGfNWQr30iGyxc4ZN/yEPL8a1lmwMsdzAjwCY7S/faY=; b=FaoG49nqpy0PdB8SbdivwGL12wcdqJHCi4Ibo99W3iGslaOVITehnNNYQ4QVJQMxRO2R8VMdDJJW30TsR2BI6Q5F0jQlWZJSR0183Fj/7hzCFGV92Xa+JXjxyU8WI7kNfSxOejaWr/wLfXCg3/8/AASmOGWaPHPdG21onnEFI1A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ol0xRG7tFVri9ImtTfr0ucHVmnSsVBzlMrh2TpHzsnqx17Ta0AHbLAlLr5Y7BF+iBPx7MJN8c1prmPdrp0vHT/kDXEt5R/8495PS9DzTsigy+mlfja7+VMpL82w6a/F2wglmBe6uFM2HlPDQxXugHsE4u20ViBnDeydF3Ig4VE4= Original-Received: by 10.141.99.4 with SMTP id b4mr214849rvm.1196766607480; Tue, 04 Dec 2007 03:10:07 -0800 (PST) Original-Received: by 10.141.84.8 with HTTP; Tue, 4 Dec 2007 03:10:07 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84647 Archived-At: On Dec 3, 2007 5:56 PM, Stefan Monnier 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).