mt00@eurotherm.co.uk (Martin Tomes) (11/21/90)
I have tracked down why window-system-version is not set when I run
emacs. I think that it is because my emacs is not dumped. The window
system version is set in x_term_init() called from init_display()
called from main. Later main calls dispnew.c:syms_of_display() which
promptly sets it back to nil!
DEFVAR_LISP ("window-system-version", &Vwindow_system_version,
"Version number of the window system Emacs is running under.");
Vwindow_system_version = Qnil;
Now, if my theory is right, and a dumped emacs works (I have not tried
this) the following patch will fix it:
------------------------------------------------------------------------------
*** dispnew.c-dist Tue Nov 20 16:59:17 1990
--- dispnew.c Tue Nov 20 16:59:18 1990
***************
*** 1480,1486 ****
--- 1480,1488 ----
\(such as `x'), or nil if emacs is running on an ordinary terminal.");
DEFVAR_LISP ("window-system-version", &Vwindow_system_version,
"Version number of the window system Emacs is running under.");
+ #ifndef CANNOT_DUMP
Vwindow_system_version = Qnil;
+ #endif
DEFVAR_BOOL ("cursor-in-echo-area", &cursor_in_echo_area,
"Non-nil means put cursor in minibuffer after any message displayed there.
");
------------------------------------------------------------------------------
... but if not could you let me know what the fix should be.
Martin Tomes
Janet: mtomes@uk.co.eurotherm | Eurotherm Limited, Faraday Close,
Internet: mtomes@eurotherm.co.uk | Durrington, Worthing, W.Sussex, England.
UUCP: {ukc,uunet}!etherm!mtomes | Phone: +44 903 68500 Fax: +44 903 65982