[gnu.emacs] Problems with emacs under X windows

cowan@spanky.sps.mot.com (02/06/90)

Netters,

I have been trying desperately to get emacs 18.55 to work correctly under
X windows, but to no avail.  I have even posted questions previous to this
and worked with the clues some of you nice folk gave me.  Yet, I still see
some weird things with my version of 18.55.

First weirdness:  Why do I only see what apparently is a subset of the
possible X related emacs functions when I do a M-x x-(file completion)?
When I use completion to list all the X functions this is what I see:

  Possible completions are:
  x-flip-color						x-flush-mouse-queue
  x-new-display						x-set-background-color
  x-set-bell						x-set-border-color
  x-set-border-width				x-set-cursor-color
  x-set-font						x-set-foreground-color
  x-set-internal-border-width		x-set-mouse-color
  x-store-cut-buffer

Thats it.  Is this what you see?  I suspect that many critical functions are
missing from my list, but I have no idea if this is true.  If it is true, why
am I only getting these functions?

To help answere these questions, here are some word counts from some of the 
critical files.  Check them against your files to see if I've got the
right stuff:

wc src/x*.c
	 897    2662   22421 x11fns.c
	2398    6312   53218 x11term.c
	2039    8239   57449 xdisp.c
	1401    4566   38193 xfns.c
	 419    1553   11952 xmenu.c
	1921    6029   46341 xterm.c
wc lisp/x*.el
	 146     631    5259 lisp/x-menu.el
	 279    1091   10679 lisp/x-mouse.el
	 864    3067   30906 lisp/xscheme.el
wc lisp/term/x*.el
	 222    1016    7889 x-win.el
	   2      13      89 xterm.el

I am compiling with the following config.h settings:
	#include "s-sunos4.h"
	#include "m-sparc.h"
	#define HAVE_X_WINDOWS
	#define X11
	#define HAVE_X_MENU

Other weirdness:  There is some other weirdness happening, but
I think its all related to the weirdness I've described above.

Anyone got a clue for me?

-AC
 Andy Cowan
 cowan@soleil.sps.mot.com
 (602)821-4942

raveling@isi.edu (Paul Raveling) (02/08/90)

	This is an inquiry about a different problem that's
	proving elusive to locate.

	The GNU emacs code is version 18.54 on an HP 9000/370
	running HP-UX 6.5 with a patched C compiler.  When X11R4
	arrived I deleted src/x11term.o and src/x11fns.o, and
	remade emacs with R4 includes and libraries.  No emacs
	source code has changed, and the only these two object
	modules have changed.  I've done the remake twice, once
	using +O2 (-O) for the compilations, and once using +O1.
	Changing fro +O2 to +O1 did NOT change emacs' behavior.

	The problem happens intermittently when starting emacs.
	Perhaps 2/3 of the time it starts normally.  Sometimes it
	appears to either hang or loop after its window is mapped
	but before anything is drawn into the window.  When it
	does this, it usually sits there benignly.  On occasion
	it appears to go wild in some way that floods the system
	with page-swapping activity.  On rare occasions this
	will virtually disable the system.

	On one of those rare occasions I tried an extreme abort
	by hitting control-shift-reset to abort X.  To my amazement
	it didn't abort X, but it DID cure the problem -- the emacs
	window suddenly came to life; it initialized, loaded the
	file to be edited, and operated normally.

	This problem is intermittent.  It seems possible that
	cursor motion or window manager functions might be involved,
	but I haven't been able to prove that yet.

	If anyone else has experienced this problem, or has
	a clue to its cause, I'd appreciate hearing about it.
	An email message would be best -- I'll be out of town
	for ~1.5 weeks.


----------------
Paul Raveling
Raveling@isi.edu