From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: Status of MAC/W32/X consolidation and some questions.
Date: 11 Mar 2003 02:01:01 +0100 [thread overview]
Message-ID: <5xfzpuemya.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <m31y1f3zm3.fsf@cicero.benny.turtle-trading.net>
Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de> writes:
> > Now, what I'm currently working on is to replace all mac* and w32*
> > specific names with the corresponding x* names,
> > e.g. FRAME_MAC_WINDOW is replaced by FRAME_X_WINDOW,
>
> I guess this is probably the fastest path and would mostly leave alone
> the X11 code. But wouldn't it in theory better to rename those items
> to a neutral FRAME_GUI_ANYTHING instead? When I look at code I find
> the tendency to re-use X11 names outside of X11 rather irritating.
I have been thinking about the same issue, and I am not very
satisfied with the overloading of the X names, either.
However, as the X version is really the "reference GUI platform", a
lot of the code which really isn't X-specific still use the x_ prefix
(or some other X-related name), so from that point of view, it does
make sense that the "reference gui" continues to use the X names, and
let the other (non-free) platforms overload the X-specific "reference
platform" functions.
>
> > * Does the W32 version support -nw?
>
> Yes.
>
> > If so, is FRAME_W32_P still true when specified?
>
> No. If I read the code right, FRAME_W32_P is based on output_method,
> and output_method can be interrogated as the result of the (framep)
> function. "(framep (selected-frame))" returns t (for "character-only
> terminal") in this situation.
Ok, thanks. So output_method is output_termcap for -nw on windows.
Then some of the emacs code really make no sense to me.
What does
(assoc 'font (frame-parameters nil))
return when you try it on W32 emacs -nw ?
If your assumption is correct is will return (font . "tty"),
but the code seems to be supposed to return (font . "w32term").
Also, in xdisp.c, the following test is used to check whether
emacs is running as a GUI or TTY program on W32, X, or MAC:
/* Don't do all this for graphical frames. */
#ifdef HAVE_NTGUI
if (!NILP (Vwindow_system))
return;
#endif
#if defined (USE_X_TOOLKIT) || defined (USE_GTK)
if (FRAME_X_P (f))
return;
#endif
#ifdef MAC_OS
if (FRAME_MAC_P (f))
return;
#endif
If your assumption is correct, the first test could be
replaced by
if (FRAME_W32_P (f))
> > which I hope some of you will assist me in solving (I hope/expect it
> > is just a matter of fixing some trivial compilation errors).
>
> I can probably help with that.
Thanks.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2003-03-11 1:01 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-10 12:13 Status of MAC/W32/X consolidation and some questions Kim F. Storm
2003-03-10 17:00 ` Andrew Choi
2003-03-11 1:06 ` Kim F. Storm
2003-03-11 15:31 ` Andrew Choi
2003-03-10 17:09 ` Andrew Choi
2003-03-11 1:04 ` Kim F. Storm
2003-03-11 15:40 ` Andrew Choi
2003-03-10 17:23 ` Benjamin Riefenstahl
2003-03-11 1:01 ` Kim F. Storm [this message]
2003-03-11 0:19 ` Juanma Barranquero
2003-03-11 10:35 ` Kim F. Storm
2003-03-11 10:07 ` Jason Rumney
2003-03-11 11:09 ` Kim F. Storm
2003-03-12 4:47 ` Miles Bader
2003-03-11 0:03 ` Jason Rumney
2003-03-11 1:47 ` Miles Bader
2003-03-11 19:03 ` Stefan Monnier
2003-03-12 4:44 ` Miles Bader
2004-07-22 15:11 ` Kim F. Storm
2004-07-22 21:40 ` Miles Bader
2003-03-11 14:19 ` Kim F. Storm
2003-03-12 19:27 ` Eli Zaretskii
2003-03-12 23:01 ` Kim F. Storm
2003-03-16 22:00 ` Status of MAC/W32/X consolidation -- first major patch committed Kim F. Storm
2003-03-16 22:27 ` Jason Rumney
2003-03-16 23:59 ` Kim F. Storm
2003-03-17 8:56 ` Jason Rumney
2003-03-17 11:40 ` Kim F. Storm
2003-03-17 14:56 ` Benjamin Riefenstahl
[not found] ` <1047913554.3e75e4529bc88@webmail.freedom2surf.net>
2003-03-17 16:43 ` Benjamin Riefenstahl
2003-03-17 19:01 ` Juanma Barranquero
2003-03-21 15:10 ` Status of MAC/W32/X consolidation -- second " Kim F. Storm
2003-03-21 16:46 ` Juanma Barranquero
2003-03-21 22:48 ` Kim F. Storm
2003-03-24 20:07 ` Andrew Choi
2003-03-31 22:16 ` Status of MAC/W32/X consolidation -- third " Kim F. Storm
2003-04-01 1:13 ` Andrew Choi
2003-04-01 9:27 ` Kim F. Storm
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=5xfzpuemya.fsf@kfs2.cua.dk \
--to=storm@cua.dk \
--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.