From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: question about testing for toolkit Date: Sun, 30 Dec 2007 07:56:17 -0800 Message-ID: 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 1199030238 14205 80.91.229.12 (30 Dec 2007 15:57:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Dec 2007 15:57:18 +0000 (UTC) To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 30 16:57:32 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 1J90XY-0000JY-Bt for ged-emacs-devel@m.gmane.org; Sun, 30 Dec 2007 16:57:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J90XC-0004D5-UE for ged-emacs-devel@m.gmane.org; Sun, 30 Dec 2007 10:57:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J90X9-0004Cg-6S for emacs-devel@gnu.org; Sun, 30 Dec 2007 10:57:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J90X7-0004CS-Av for emacs-devel@gnu.org; Sun, 30 Dec 2007 10:57:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J90X7-0004CP-4v for emacs-devel@gnu.org; Sun, 30 Dec 2007 10:57:01 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J90X7-0006ZZ-7t for emacs-devel@gnu.org; Sun, 30 Dec 2007 10:57:01 -0500 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id lBUFuowk019431 for ; Sun, 30 Dec 2007 09:56:50 -0600 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id lBTJ2MCY027538 for ; Sun, 30 Dec 2007 08:56:49 -0700 Original-Received: from dhcp-amer-csvpn-gw2-141-144-72-26.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 3469338181199030159; Sun, 30 Dec 2007 07:55:59 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:85692 Archived-At: Richard has explained to me that when Emacs uses "X Window with no toolkit, `set-frame-size' includes the menu-bar, since it is displayed using ordinary text lines. In other window system cases it does not include the menu bar." I want to test this use of X without toolkit. This is code from `emacs-version': (cond ((featurep 'motif) (concat ", " (substring motif-version-string 4))) ((featurep 'gtk) (concat ", GTK+ Version " gtk-version-string)) ((featurep 'x-toolkit) ", X toolkit") ((boundp 'mac-carbon-version-string) (concat ", Carbon Version " mac-carbon-version-string)) (t "")) Which of the following would be a suitable test to determine whether the menu-bar is treated as ordinary text lines by `set-frame-size'? (and (not (eq system-type 'windows-nt))) (not (featurep 'x-toolkit))) (or (featurep 'motif) (featurep 'gtk) (boundp 'mac-carbon-version-string)) (or (featurep 'motif) (featurep 'gtk)) Or, if some other test is preferable, please let me know. Thx.