all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: question about testing for toolkit
Date: Sun, 30 Dec 2007 07:56:17 -0800	[thread overview]
Message-ID: <DHEEKFAFJEFOJHLCFPFDIEEGCDAA.drew.adams@oracle.com> (raw)

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.

             reply	other threads:[~2007-12-30 15:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-30 15:56 Drew Adams [this message]
2007-12-30 22:58 ` question about testing for toolkit Richard Stallman
2008-01-02  2:54   ` Stefan Monnier
2008-01-03  9:50     ` Richard Stallman

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=DHEEKFAFJEFOJHLCFPFDIEEGCDAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.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.