Xref: utzoo gnu.emacs.help:374 comp.emacs:9564 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!eurotherm.co.uk!mt00 From: mt00@eurotherm.co.uk (Martin Tomes) Newsgroups: gnu.emacs.help,comp.emacs Subject: window-system-version not set. Message-ID: <26153.9011201714@jackdaw.eurotherm.co.uk> Date: 20 Nov 90 17:14:11 GMT Sender: daemon@tut.cis.ohio-state.edu Followup-To: gnu.emacs.help Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu Lines: 39 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