all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* question about testing for toolkit
@ 2007-12-30 15:56 Drew Adams
  2007-12-30 22:58 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2007-12-30 15:56 UTC (permalink / raw)
  To: Emacs-Devel

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-03  9:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-30 15:56 question about testing for toolkit Drew Adams
2007-12-30 22:58 ` Richard Stallman
2008-01-02  2:54   ` Stefan Monnier
2008-01-03  9:50     ` Richard Stallman

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.