* 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
* Re: question about testing for toolkit
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
0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2007-12-30 22:58 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs-devel
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)))
I think that is the best one. If a toolkit is used,
which toolkit does not matter.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question about testing for toolkit
2007-12-30 22:58 ` Richard Stallman
@ 2008-01-02 2:54 ` Stefan Monnier
2008-01-03 9:50 ` Richard Stallman
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2008-01-02 2:54 UTC (permalink / raw)
To: rms; +Cc: Drew Adams, emacs-devel
> 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)))
> I think that is the best one. If a toolkit is used,
> which toolkit does not matter.
I wish no test at all were needed: i.e. the behavior should be the same
regardless.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: question about testing for toolkit
2008-01-02 2:54 ` Stefan Monnier
@ 2008-01-03 9:50 ` Richard Stallman
0 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2008-01-03 9:50 UTC (permalink / raw)
To: Stefan Monnier; +Cc: drew.adams, emacs-devel
> I think that is the best one. If a toolkit is used,
> which toolkit does not matter.
I wish no test at all were needed: i.e. the behavior should be the same
regardless.
Ideally I agree it would be better to change non-toolkit builds to
work the way the toolkit builds to: turning menu bar on or off does
not alter the number of lines available for text. But does anyone
want to do that much work redesigning non-toolkit X usage?
At some point we might want to desupport that mode instead.
But first we should ask the users how many would be unhappy.
^ 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.